public class DiscreteLineRenderer2D extends AbstractLineRenderer2D
DataPoint
s with a stair-like line.Constructor and Description |
---|
DiscreteLineRenderer2D()
Initializes a new
DiscreteLineRenderer2D instance with default
settings. |
Modifier and Type | Method and Description |
---|---|
java.lang.Number |
getAscendingPoint()
Returns the relative distance between two points, i.e. the "step" of a stair.
|
Orientation |
getAscentDirection()
Returns the primary direction of the "steps".
|
Drawable |
getLine(java.util.List<DataPoint> points,
java.awt.Shape shape)
Returns a graphical representation for the line defined by
points . |
java.awt.Shape |
getLineShape(java.util.List<DataPoint> points)
Returns the geometric shape for this line.
|
void |
setAscendingPoint(java.lang.Number ascendingPoint)
Sets the relative distance between two points, i.e. the "step" of a stair.
|
void |
setAscentDirection(Orientation ascentDirection)
Sets the primary direction of the "steps".
|
getColor, getGap, getStroke, isGapRounded, punch, setColor, setGap, setGapRounded, setStroke
public DiscreteLineRenderer2D()
DiscreteLineRenderer2D
instance with default
settings.public Drawable getLine(java.util.List<DataPoint> points, java.awt.Shape shape)
points
.points
- Points to be used for creating the line.shape
- Geometric shape for this line.public java.awt.Shape getLineShape(java.util.List<DataPoint> points)
points
- Points used for creating the line.public Orientation getAscentDirection()
public void setAscentDirection(Orientation ascentDirection)
ascentDirection
- Orientation of the "steps".public java.lang.Number getAscendingPoint()
public void setAscendingPoint(java.lang.Number ascendingPoint)
ascendingPoint
- Relative point distance.