Package io.keikai.model.impl
Class ChartAxisImpl
- java.lang.Object
-
- io.keikai.model.impl.AbstractChartAxisAdv
-
- io.keikai.model.impl.ChartAxisImpl
-
- All Implemented Interfaces:
SChartAxis
,Serializable
- Direct Known Subclasses:
CategoryAxisImpl
,DateAxisImpl
,ValueAxisImpl
public abstract class ChartAxisImpl extends AbstractChartAxisAdv implements Serializable
- Author:
- henri
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.keikai.model.impl.AbstractChartAxisAdv
AbstractChartAxisAdv.Crosses, AbstractChartAxisAdv.Orientation, AbstractChartAxisAdv.Position, AbstractChartAxisAdv.TickLabelPosition, AbstractChartAxisAdv.TickMark
-
Nested classes/interfaces inherited from interface io.keikai.model.SChartAxis
SChartAxis.SChartAxisType
-
-
Constructor Summary
Constructors Constructor Description ChartAxisImpl(long id, AbstractChartAxisAdv.Position position, Double min, Double max, String format, AbstractChartAxisAdv.Orientation orientation, AbstractChartAxisAdv.TickLabelPosition tickLabelPosition, long crossAxisId, AbstractChartAxisAdv.Crosses axisCrosses, boolean majorGridline, boolean visible)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractChartAxisAdv.Crosses
getAxisCrosses()
Returns the possible crossing points for the axis.long
getCrossAxisId()
Returns the id of the axis cross another axisString
getFormat()
Returns the tick label in excel format; null if no such info.long
getId()
Double
getMax()
Returns the maximum value on this axis.Double
getMin()
Returns the minimum value on this axis.AbstractChartAxisAdv.Orientation
getOrientation()
Returns the orientation of the values.AbstractChartAxisAdv.Position
getPosition()
Returns the position of this axis.AbstractChartAxisAdv.TickLabelPosition
getTickLabelPosition()
Returns the position of the tick label.boolean
hasMajorGridline()
Returns if this axis has major gridlineboolean
isVisible()
Returns if this axis is visiblevoid
setCrossAxisId(long crossAxisId)
Sets the id of the axis cross another axisvoid
setFormat(String format)
void
setMax(Double max)
void
setMin(Double min)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.keikai.model.SChartAxis
getType
-
-
-
-
Constructor Detail
-
ChartAxisImpl
public ChartAxisImpl(long id, AbstractChartAxisAdv.Position position, Double min, Double max, String format, AbstractChartAxisAdv.Orientation orientation, AbstractChartAxisAdv.TickLabelPosition tickLabelPosition, long crossAxisId, AbstractChartAxisAdv.Crosses axisCrosses, boolean majorGridline, boolean visible)
-
-
Method Detail
-
getId
public long getId()
- Specified by:
getId
in interfaceSChartAxis
-
isVisible
public boolean isVisible()
Description copied from class:AbstractChartAxisAdv
Returns if this axis is visible- Specified by:
isVisible
in classAbstractChartAxisAdv
- Returns:
- visible if the axis is visible
-
getPosition
public AbstractChartAxisAdv.Position getPosition()
Description copied from class:AbstractChartAxisAdv
Returns the position of this axis.- Specified by:
getPosition
in classAbstractChartAxisAdv
- Returns:
- position the position of this axis
-
hasMajorGridline
public boolean hasMajorGridline()
Description copied from class:AbstractChartAxisAdv
Returns if this axis has major gridline- Specified by:
hasMajorGridline
in classAbstractChartAxisAdv
- Returns:
- majorGridline if the axis has major gridline
-
getOrientation
public AbstractChartAxisAdv.Orientation getOrientation()
Description copied from class:AbstractChartAxisAdv
Returns the orientation of the values.- Specified by:
getOrientation
in classAbstractChartAxisAdv
- Returns:
- orientation the orientation of the values
-
getTickLabelPosition
public AbstractChartAxisAdv.TickLabelPosition getTickLabelPosition()
Description copied from class:AbstractChartAxisAdv
Returns the position of the tick label.- Specified by:
getTickLabelPosition
in classAbstractChartAxisAdv
- Returns:
- tickLabelPosition the position of the tick label.
-
getMax
public Double getMax()
Description copied from interface:SChartAxis
Returns the maximum value on this axis.- Specified by:
getMax
in interfaceSChartAxis
-
setMax
public void setMax(Double max)
- Specified by:
setMax
in interfaceSChartAxis
-
getMin
public Double getMin()
Description copied from interface:SChartAxis
Returns the minimum value on this axis.- Specified by:
getMin
in interfaceSChartAxis
-
setMin
public void setMin(Double min)
- Specified by:
setMin
in interfaceSChartAxis
-
getFormat
public String getFormat()
Description copied from interface:SChartAxis
Returns the tick label in excel format; null if no such info.- Specified by:
getFormat
in interfaceSChartAxis
-
setFormat
public void setFormat(String format)
- Specified by:
setFormat
in interfaceSChartAxis
-
getCrossAxisId
public long getCrossAxisId()
Description copied from class:AbstractChartAxisAdv
Returns the id of the axis cross another axis- Specified by:
getCrossAxisId
in classAbstractChartAxisAdv
-
setCrossAxisId
public void setCrossAxisId(long crossAxisId)
Description copied from class:AbstractChartAxisAdv
Sets the id of the axis cross another axis- Specified by:
setCrossAxisId
in classAbstractChartAxisAdv
-
getAxisCrosses
public AbstractChartAxisAdv.Crosses getAxisCrosses()
Description copied from class:AbstractChartAxisAdv
Returns the possible crossing points for the axis.- Specified by:
getAxisCrosses
in classAbstractChartAxisAdv
- Returns:
- axisCrosses the possible crossing points for the axis
-
-