public class PositionHint extends Object implements Hint
Hint capsulating two GraphPoints.| Modifier and Type | Field and Description |
|---|---|
static String |
ORIGIN_KEY
Configuration parameter key.
|
static String |
POSITION_KEY
Configuration parameter key.
|
| Constructor and Description |
|---|
PositionHint(ConfigParameters config)
Creates an instance from the specified configuration parameters.
|
PositionHint(GraphPoint origin,
GraphPoint position)
Creates an instance based on two points.
|
| Modifier and Type | Method and Description |
|---|---|
GraphPoint |
getOrigin()
Returns the origin.
|
GraphPoint |
getPosition()
Returns the position.
|
public static final String POSITION_KEY
public static final String ORIGIN_KEY
public PositionHint(ConfigParameters config)
| 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. |
public PositionHint(GraphPoint origin, GraphPoint position)
origin - The origin.position - The position.public GraphPoint getPosition()
public GraphPoint getOrigin()
Copyright © 2016. All Rights Reserved.