Class MoveTo

java.lang.Object
org.openscience.cdk.renderer.elements.path.PathElement
org.openscience.cdk.renderer.elements.path.MoveTo

public class MoveTo extends PathElement
A MoveTo path element moves the drawing 'pen' without making any lines or curves and is commonly used to start a path or make gaps in the path.
Author:
Arvid
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final double[]
    The point to move to.

    Fields inherited from class PathElement

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

    Constructors
    Constructor
    Description
    MoveTo(double[] coords)
    Make a move to path element.
    MoveTo(double x, double y)
    Make a move to path element.
    MoveTo(javax.vecmath.Point2d point)
    Make a move to path element.
  • Method Summary

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

    Methods inherited from class PathElement

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

    Methods inherited from class Object

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

    • coords

      public final double[] coords
      The point to move to.
  • Constructor Details

    • MoveTo

      public MoveTo(javax.vecmath.Point2d point)
      Make a move to path element.
      Parameters:
      point - the point to move to
    • MoveTo

      public MoveTo(double[] coords)
      Make a move to path element.
      Parameters:
      coords - the x,y coordinates in index 0,1
    • MoveTo

      public MoveTo(double x, double y)
      Make a move to path element.
      Parameters:
      x - x coord
      y - y coord
  • Method Details

    • points

      public float[] points()
      Get the points in the path.
      Specified by:
      points in class PathElement
      Returns:
      a list of points
    • points

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