Abscissa
- Represents the type of the abscissa (the x axis).Ordinate
- Represents the type of the ordinate (the y axis).Note: When using the Date type the ticks that annotate the axis show only the day, month and year. It is possible when using the same date but with different hours or for dates that are close to each other for the points to be distinct but annotated with the same date.
public class AxisData<Abscissa,Ordinate> extends AbstractAxisData<Abscissa,Ordinate>
Constructor and Description |
---|
AxisData(Class<Abscissa> abscissaClass,
Class<Ordinate> ordinateClass)
The constructor for the axis data.
|
Modifier and Type | Method and Description |
---|---|
void |
addLine(Line<Abscissa,Ordinate> line)
Adds a line to the current axis.
|
setAbscissaLabel, setOrdinateLabel
public AxisData(Class<Abscissa> abscissaClass, Class<Ordinate> ordinateClass)
The reason class parameters are required is because Java does not persist type information at
runtime.
This class is used to automatically set the appropriate axis options, and also perform a
validation check in case of unsupported types.
abscissaClass
- the class representing the x axis typeordinateClass
- the class representing the y axis type