de.erichseifert.gral.plots.lines
Class DiscreteLineRenderer2D
- java.lang.Object
-
- de.erichseifert.gral.plots.lines.AbstractLineRenderer2D
-
- de.erichseifert.gral.plots.lines.DiscreteLineRenderer2D
-
- All Implemented Interfaces:
- LineRenderer, java.io.Serializable
public class DiscreteLineRenderer2D extends AbstractLineRenderer2D
Class that connectsDataPoints with a stair-like line.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description DiscreteLineRenderer2D()Initializes a newDiscreteLineRenderer2Dinstance with default settings.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.NumbergetAscendingPoint()Returns the relative distance between two points, i.e. the "step" of a stair.OrientationgetAscentDirection()Returns the primary direction of the "steps".DrawablegetLine(java.util.List<DataPoint> points, java.awt.Shape shape)Returns a graphical representation for the line defined bypoints.java.awt.ShapegetLineShape(java.util.List<DataPoint> points)Returns the geometric shape for this line.voidsetAscendingPoint(java.lang.Number ascendingPoint)Sets the relative distance between two points, i.e. the "step" of a stair.voidsetAscentDirection(Orientation ascentDirection)Sets the primary direction of the "steps".-
Methods inherited from class de.erichseifert.gral.plots.lines.AbstractLineRenderer2D
getColor, getGap, getStroke, isGapRounded, setColor, setGap, setGapRounded, setStroke
-
-
-
-
Constructor Detail
-
DiscreteLineRenderer2D
public DiscreteLineRenderer2D()
Initializes a newDiscreteLineRenderer2Dinstance with default settings.
-
-
Method Detail
-
getLine
public Drawable getLine(java.util.List<DataPoint> points, java.awt.Shape shape)
Returns a graphical representation for the line defined bypoints.- Parameters:
points- Points to be used for creating the line.shape- Geometric shape for this line.- Returns:
- Representation of the line.
-
getLineShape
public java.awt.Shape getLineShape(java.util.List<DataPoint> points)
Returns the geometric shape for this line.- Parameters:
points- Points used for creating the line.- Returns:
- Geometric shape for this line.
-
getAscentDirection
public Orientation getAscentDirection()
Returns the primary direction of the "steps".- Returns:
- Orientation of the "steps".
-
setAscentDirection
public void setAscentDirection(Orientation ascentDirection)
Sets the primary direction of the "steps".- Parameters:
ascentDirection- Orientation of the "steps".
-
getAscendingPoint
public java.lang.Number getAscendingPoint()
Returns the relative distance between two points, i.e. the "step" of a stair.- Returns:
- Relative point distance.
-
setAscendingPoint
public void setAscendingPoint(java.lang.Number ascendingPoint)
Sets the relative distance between two points, i.e. the "step" of a stair.- Parameters:
ascendingPoint- Relative point distance.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG