Class PathElement

java.lang.Object
org.openscience.cdk.renderer.elements.path.PathElement
Direct Known Subclasses:
Close, CubicTo, LineTo, MoveTo, QuadTo

public abstract class PathElement extends Object
A path element.
Author:
Arvid
Source code:
main
Belongs to CDK module:
renderbasic
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final Type
    the type of the path element.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Create a path element.
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract float[]
    Deprecated.
    abstract void
    points(double[] coords)
    Load the provided array with the specified coordinates of this path element.
    Get the type of the path element.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • type

      public final Type type
      the type of the path element.
  • Constructor Details

    • PathElement

      public PathElement(Type type)
      Create a path element.
      Parameters:
      type - Type of this path element
  • Method Details

    • type

      public Type type()
      Get the type of the path element.
      Returns:
      the type of the path element
    • points

      @Deprecated public abstract float[] points()
      Deprecated.
      Get the points in the path.
      Returns:
      a list of points
    • points

      public abstract void points(double[] coords)
      Load the provided array with the specified coordinates of this path element.
      Parameters:
      coords - coordinates (length = 6)