com.ijchart.xychart.axis.value
Class GranttValueAxis
java.lang.Object
com.ijchart.xychart.axis.AbstractAxis
com.ijchart.xychart.axis.value.AbstractValueAxis
com.ijchart.xychart.axis.value.NumberValueAxis
com.ijchart.xychart.axis.value.DateValueAxis
com.ijchart.xychart.axis.value.GranttValueAxis
- All Implemented Interfaces:
- IAxis, IMarkerChangeListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener
public class GranttValueAxis
- extends DateValueAxis
- implements java.lang.Cloneable, java.io.Serializable
Title: IJChart
Description: a chart library for the Java(tm) platform.
The class for grantt axes that display dates. the date are
milliseconds since 1970-1-1 08:00:00.When displaying tick labels, the millisecond values are
converted back to dates using a DateFormat instance.
Copyright: Copyright (c) 2013
Company:
- Version:
- 1.0
- Author:
- zhang feng min,shanghai china.
Contract me by email.
- See Also:
- Serialized Form
Fields inherited from class com.ijchart.xychart.axis.AbstractAxis |
DEFAULT_3D_AXIS_FILL_PAINT, DEFAULT_AUTO_SELECT_TICK_LABEL_ALIGN, DEFAULT_AXIS_LABEL_FONT, DEFAULT_AXIS_LABEL_INSETS, DEFAULT_AXIS_LABEL_PAINT, DEFAULT_AXIS_LABEL_TYPE, DEFAULT_AXIS_LABEL_VISIBLE, DEFAULT_AXIS_LINE_PAINT, DEFAULT_AXIS_LINE_STROKE, DEFAULT_AXIS_LINE_VISIBLE, DEFAULT_AXIS_MARGIN, DEFAULT_AXIS_VISIBLE, DEFAULT_DRAW_EMPTY_LABEL_TICK_MARK, DEFAULT_FIXED_AXIS_SPACE, DEFAULT_GRID_LINE_VISIBLE, DEFAULT_LABEL_HORIZONTAL_ALIGNMENT, DEFAULT_MAXIMUM_CATEGORY_LABEL_WIDTH_RATIO, DEFAULT_TICK_LABEL_FONT, DEFAULT_TICK_LABEL_HORIZONTAL_ALIGNMENT, DEFAULT_TICK_LABEL_INSETS, DEFAULT_TICK_LABEL_PAINT, DEFAULT_TICK_LABEL_VERTICAL_ALIGNMENT, DEFAULT_TICK_LABELS_VISIBLE, DEFAULT_TICK_MARK_INSIDE_LENGTH, DEFAULT_TICK_MARK_OUTSIDE_LENGTH, DEFAULT_TICK_MARK_PAINT, DEFAULT_TICK_MARK_STROKE, DEFAULT_TICK_MARKS_VISIBLE, WIDTH_TICK_MARK_AND_TICK_LABEL |
Method Summary |
java.lang.Object |
clone()
Creates a clone of the axis. |
boolean |
equals(java.lang.Object obj)
Tests this axis for equality with an arbitrary object. |
NumberRange |
getDatasetRange()
Returns the value range of a dataset. |
int |
hashCode()
Returns a hash code for this object. |
java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class com.ijchart.xychart.axis.value.NumberValueAxis |
calculateLabels, convertNumberTick, createChartShape, createValueLineShape, drawGridLine, drawTickLabel, drawTickLabelReally, drawTickMark, drawValueLine, estimateAxisWidth, getFormatedTickLabels, getLabelMaxDrawWidth, getNumberLabels, getNumberTicks, getTickLabels, getTickMarkCount, getTickRange, getTickUnit, getTimeZone, getUserDefineDatasetRange, getZoomDatasetRange, isLogTickUnit, isOffsetValueLine, isRangeIncludeZero, setTickUnit, setTimeZone, setUserDefineDatasetRange, setUserDefineDatasetRange, setZoomDatasetRange, valueToJava2D, valueToJava2D |
Methods inherited from class com.ijchart.xychart.axis.value.AbstractValueAxis |
addIntervalValueMarker, addValueMarker, clearIntervalValueMarkers, clearValueMarkers, getEmptyDatasetRange, getGridBandAlternatePaint, getGridBandPaint, getIntervalValueMarkers, getRender, getTickValueFormatter, getValueLinePaint, getValueLineStroke, getValueLineValue, getValueMarkers, isAxisRangeIncludeZero, isGridBandVisible, isInverted, isValueLineVisible, markerChanged, removeValueMarker, removeValueMarker, setAxisRangeIncludeZero, setEmptyDatasetRange, setGridBandAlternatePaint, setGridBandPaint, setGridBandVisible, setInverted, setRender, setTickValueFormatter, setValueLinePaint, setValueLineStroke, setValueLineValue, setValueLineVisible |
Methods inherited from class com.ijchart.xychart.axis.AbstractAxis |
addChangeListener, calculateAxisSpace, calculateLabelBound, createAxisLabelChartShape, dawAxisLabel, draw, drawAxis3DLine, drawAxisLine, fireAxisChanged, getAxis3DFillPaint, getAxisLabel, getAxisLabelAngle, getAxisLabelFont, getAxisLabelHorizontalAlign, getAxisLabelInsets, getAxisLabelPaint, getAxisLabelType, getAxisLinePaint, getAxisLineStroke, getColKeyFormatter, getDataFormatter, getDataset, getFixedAxisSpace, getLowerMargin, getMaximumCategoryLabelWidthRatio, getRowKeyFormatter, getTickLabelAngle, getTickLabelFont, getTickLabelFont, getTickLabelHorizontalAlign, getTickLabelInsets, getTickLabelLines, getTickLabelPaint, getTickLabelPaint, getTickLabelRotateBound, getTickLabelVerticalAlign, getTickMarkInsideLength, getTickMarkOutsideLength, getTickMarkPaint, getTickMarkStroke, getUpperMargin, hasListener, isAutoSelectTickLabelAlign, isAxisLabelVisible, isAxisLineVisible, isDrawEmptyLabelTickMark, isGridLineVisible, isTickLabelsVisible, isTickMarkVisible, isVisible, notifyListeners, removeAllChangeListener, removeChangeListener, setAutoSelectTickLabelAlign, setAxis3DFillPaint, setAxisLabel, setAxisLabelAngle, setAxisLabelFont, setAxisLabelHorizontalAlign, setAxisLabelInsets, setAxisLabelPaint, setAxisLabelType, setAxisLabelVisible, setAxisLinePaint, setAxisLineStroke, setAxisLineVisible, setColKeyFormatter, setDataFormatter, setDataset, setDrawEmptyLabelTickMark, setFixedAxisSpace, setGridLineVisible, setLowerMargin, setMaximumCategoryLabelWidthRatio, setRowKeyFormatter, setTickLabelAngle, setTickLabelFont, setTickLabelFont, setTickLabelHorizontalAlign, setTickLabelInsets, setTickLabelPaint, setTickLabelPaint, setTickLabelsVisible, setTickLabelVerticalAlign, setTickMarkInsideLength, setTickMarkOutsideLength, setTickMarkPaint, setTickMarkStroke, setTickMarkVisible, setUpperMargin, setVisible |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
GranttValueAxis
public GranttValueAxis(IMatrixDataset dataset)
-
Constructs an axis using a dataset.
- Parameters:
dataset
- IMatrixDataset
The two dimension matrix dataset (null not permitted).
GranttValueAxis
public GranttValueAxis(java.lang.String label,
IMatrixDataset dataset)
-
Constructs an axis using label and a dataset.
- Parameters:
label
-
The axis label (null permitted).dataset
- IMatrixDataset
The two dimension matrix dataset (null not permitted).
getDatasetRange
public NumberRange getDatasetRange()
-
Returns the value range of a dataset.
- Overrides:
getDatasetRange
in class DateValueAxis
- Returns:
- NumberRange
The value range of a dataset (never null).
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
-
Creates a clone of the axis.
- Overrides:
clone
in class DateValueAxis
- Returns:
- A clone.
- Throws:
java.lang.CloneNotSupportedException
- if some component of the axis does
not support cloning.
equals
public boolean equals(java.lang.Object obj)
-
Tests this axis for equality with an arbitrary object.
- Overrides:
equals
in class DateValueAxis
- Parameters:
obj
-
The object (null permitted).
- Returns:
- A boolean.
hashCode
public int hashCode()
-
Returns a hash code for this object.
- Overrides:
hashCode
in class DateValueAxis
- Returns:
-
A hash code.
toString
public java.lang.String toString()
-
Returns a string representation of the object.
- Overrides:
toString
in class DateValueAxis
- Returns:
- A string representation of the object.