Package jcckit.plot
Class PositionHint
java.lang.Object
jcckit.plot.PositionHint
- All Implemented Interfaces:
Hint
An immutable
Hint capsulating two GraphPoints.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPositionHint(GraphPoint origin, GraphPoint position) Creates an instance based on two points.PositionHint(ConfigParameters config) Creates an instance from the specified configuration parameters. -
Method Summary
Modifier and TypeMethodDescriptionReturns the origin.Returns the position.
-
Field Details
-
POSITION_KEY
Configuration parameter key.- See Also:
-
ORIGIN_KEY
Configuration parameter key.- See Also:
-
-
Constructor Details
-
PositionHint
Creates an instance from the specified configuration parameters.Key & Default Value Type Mandatory Description position = null double[] no Definition of position. origin = position or (0,0) if position undefined double[] no Definition of origin. -
PositionHint
Creates an instance based on two points.- Parameters:
origin- The origin.position- The position.
-
-
Method Details
-
getPosition
Returns the position. -
getOrigin
Returns the origin.
-