Package org.meteoinfo.chart.axis
Class TimeAxis
- java.lang.Object
-
- org.meteoinfo.chart.axis.Axis
-
- org.meteoinfo.chart.axis.TimeAxis
-
- All Implemented Interfaces:
java.lang.Cloneable
public class TimeAxis extends Axis implements java.lang.Cloneable
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()java.lang.StringgetTimeFormat()Get time formatTimeUnitgetTimeUnit()Get time unitbooleanisVarFormat()If variable time formatvoidsetTimeFormat(java.lang.String value)Set time formatvoidsetTimeUnit(TimeUnit value)Set time unitvoidsetVarFormat(boolean value)Set if variable formatvoidupdateTickLabels()Get tick labelsvoidupdateTickValues()Update time tick valuesvoidupdateTimeLabels_back()Update time labels-
Methods inherited from class org.meteoinfo.chart.axis.Axis
draw, getLabel, getLabelColor, getLabelFont, getLabelGap, getLineColor, getLineStroke, getLineStyle, getLineWidth, getLocation, getMaxLabelLength, getMaxLenLable, getMaxLenText, getMaxTickLableLines, getMaxValue, getMinorTickNum, getMinValue, getShift, getTickColor, getTickDeltaValue, getTickLabelAngle, getTickLabelColor, getTickLabelFont, getTickLabelGap, getTickLabels, getTickLabelText, getTickLength, getTickLocations, getTickSpace, getTickStartValue, getTickStroke, getTickValues, getXAxisHeight, getYAxisWidth, isAutoTick, isDrawLabel, isDrawTickLabel, isDrawTickLine, isInsideTick, isInverse, isMinorTickVisible, isVisible, isXAxis, setAutoTick, setColor_All, setDrawLabel, setDrawTickLabel, setDrawTickLine, setInsideTick, setInverse, setLabel, setLabel, setLabelColor, setLabelFont, setLineColor, setLineStyle, setLineWidth, setLocation, setMaxValue, setMinMaxValue, setMinorTickNum, setMinorTickVisible, setMinValue, setShift, setTickColor, setTickDeltaValue, setTickLabelAngle, setTickLabelColor, setTickLabelFont, setTickLabelGap, setTickLabels, setTickLabels_Number, setTickLabelText, setTickLength, setTickLocations, setTickLocations, setTickSpace, setTickStartValue, setTickStroke, setTickValues, setTickValues, setVisible, setXAxis, updateLabelGap
-
-
-
-
Constructor Detail
-
TimeAxis
public TimeAxis(java.lang.String label, boolean xAxis)Constructor- Parameters:
label- Axis labelxAxis- If is x axis
-
TimeAxis
public TimeAxis(Axis axis)
Constructor- Parameters:
axis- Axis
-
-
Method Detail
-
getTimeFormat
public java.lang.String getTimeFormat()
Get time format- Returns:
- Time format
-
setTimeFormat
public void setTimeFormat(java.lang.String value)
Set time format- Parameters:
value-
-
getTimeUnit
public TimeUnit getTimeUnit()
Get time unit- Returns:
- Time unit
-
setTimeUnit
public void setTimeUnit(TimeUnit value)
Set time unit- Parameters:
value- Time unit
-
isVarFormat
public boolean isVarFormat()
If variable time format- Returns:
- Boolean
-
setVarFormat
public void setVarFormat(boolean value)
Set if variable format- Parameters:
value- Boolean
-
updateTickLabels
public void updateTickLabels()
Get tick labels- Overrides:
updateTickLabelsin classAxis
-
updateTickValues
public void updateTickValues()
Update time tick values- Overrides:
updateTickValuesin classAxis
-
updateTimeLabels_back
public void updateTimeLabels_back()
Update time labels
-
-