Package jcckit.plot

Class PositionHint

java.lang.Object
jcckit.plot.PositionHint
All Implemented Interfaces:
Hint

public class PositionHint extends Object implements Hint
An immutable Hint capsulating two GraphPoints.
  • Field Details

  • Constructor Details

    • PositionHint

      public PositionHint(ConfigParameters config)
      Creates an instance from the specified configuration parameters.
      Key & Default ValueTypeMandatory Description
      position = null double[]no Definition of position.
      origin = position or (0,0) if position undefined double[]no Definition of origin.
    • PositionHint

      public PositionHint(GraphPoint origin, GraphPoint position)
      Creates an instance based on two points.
      Parameters:
      origin - The origin.
      position - The position.
  • Method Details

    • getPosition

      public GraphPoint getPosition()
      Returns the position.
    • getOrigin

      public GraphPoint getOrigin()
      Returns the origin.