com.ijchart.xychart.axis.value
Class NumberValueAxis3D

java.lang.Object
  extended by com.ijchart.xychart.axis.AbstractAxis
      extended by com.ijchart.xychart.axis.value.AbstractValueAxis
          extended by com.ijchart.xychart.axis.value.NumberValueAxis
              extended by com.ijchart.xychart.axis.value.NumberValueAxis3D
All Implemented Interfaces:
IAxis, IMarkerChangeListener, IEffect3D, java.io.Serializable, java.lang.Cloneable, java.util.EventListener

public class NumberValueAxis3D
extends NumberValueAxis
implements java.lang.Cloneable, java.io.Serializable, IEffect3D

Title: IJChart

Description: a chart library for the Java(tm) platform.

An axis that displays values (Y-Axis) (in 3D).

Copyright: Copyright (c) 2013

Company:

Version:
1.0
Author:
zhang feng min,shanghai china. Contract me by email.
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.ijchart.xychart.axis.value.NumberValueAxis
DEFAULT_NUMBER_TICK_UNIT, numberTicks, tickLabels, tickUnit, valueTicks
 
Fields inherited from class com.ijchart.xychart.axis.value.AbstractValueAxis
DEFAULT_AXIS_TICK_INCLUDE_ZERO, DEFAULT_CROSSHAIR_PAINT, DEFAULT_CROSSHAIR_STROKE, DEFAULT_GRID_BAND_ALTERNATE_PAINT, DEFAULT_GRID_BAND_PAINT, DEFAULT_GRID_BAND_VISIBLE, DEFAULT_INVERTED, DEFAULT_VALUE_LINE_VISIBLE, DEFAULT_VALUE_PAINT, INVALID_COORDINATE_VALUE
 
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
 
Constructor Summary
NumberValueAxis3D(IMatrixDataset dataset, IEffect3D effect3D)
           Constructs an axis using a dataset.
NumberValueAxis3D(java.lang.String label, IMatrixDataset dataset, IEffect3D effect3D)
           Constructs an axis using label and a dataset.
 
Method Summary
 java.lang.Object clone()
           Creates and returns a copy of this object.
protected  IChartShape createValueLineShape(double x1, double y1, double x2, double y2)
           Create a value line shape.
protected  double drawAxisLine(java.awt.geom.Rectangle2D axisArea, RectangleEdge edge, AxisShapeCollection shapeCollection)
           Draws an axis line in a specified area and edge.
 boolean equals(java.lang.Object obj)
           Indicates whether some other object is "equal to" this one.
 double getXOffset()
           Returns the x-offset (in Java2D units) for the 3D effect.
 double getYOffset()
           Returns the y-offset (in Java2D units) for the 3D effect.
 int hashCode()
           Returns a hash code value for the object.
 boolean isForce2D()
           Returns whether or not draw as 2D axis.
 void setForce2D(boolean flag)
           Sets whether or not draw as 2D axis and NOT send any event.
 java.lang.String toString()
           Returns a string representation of the object.
 
Methods inherited from class com.ijchart.xychart.axis.value.NumberValueAxis
calculateLabels, convertNumberTick, createChartShape, drawGridLine, drawTickLabel, drawTickLabelReally, drawTickMark, drawValueLine, estimateAxisWidth, getDatasetRange, 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, 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
 

Constructor Detail

NumberValueAxis3D

public NumberValueAxis3D(IMatrixDataset dataset,
                         IEffect3D effect3D)
Constructs an axis using a dataset.

Parameters:
dataset - IMatrixDataset The two dimension matrix dataset (null not permitted).
effect3D - IEffect3D The 3D effect.

NumberValueAxis3D

public NumberValueAxis3D(java.lang.String label,
                         IMatrixDataset dataset,
                         IEffect3D effect3D)
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).
effect3D - IEffect3D The 3D effect.
Method Detail

getXOffset

public double getXOffset()
Returns the x-offset (in Java2D units) for the 3D effect.

Specified by:
getXOffset in interface IEffect3D
Returns:
double The offset.

getYOffset

public double getYOffset()
Returns the y-offset (in Java2D units) for the 3D effect.

Specified by:
getYOffset in interface IEffect3D
Returns:
double The offset.

isForce2D

public boolean isForce2D()
Returns whether or not draw as 2D axis.

Returns:
boolean A boolean.

setForce2D

public void setForce2D(boolean flag)
Sets whether or not draw as 2D axis and NOT send any event.

Parameters:
flag - boolean A boolean.

drawAxisLine

protected double drawAxisLine(java.awt.geom.Rectangle2D axisArea,
                              RectangleEdge edge,
                              AxisShapeCollection shapeCollection)
Draws an axis line in a specified area and edge.

Overrides:
drawAxisLine in class AbstractAxis
Parameters:
axisArea - Rectangle2D The empty chart area.
edge - RectangleEdge The axis position.
shapeCollection - AxisShapeCollection Collects information about the axis (null permitted).
Returns:
double The cursor location.

createValueLineShape

protected IChartShape createValueLineShape(double x1,
                                           double y1,
                                           double x2,
                                           double y2)
Create a value line shape.

Overrides:
createValueLineShape in class NumberValueAxis
Parameters:
x1 - double The first point's x coordinate.
y1 - double The first point's y coordinate.
x2 - double The second point's x coordinate.
y2 - double The second point's y coordinate.
Returns:
IChartShape

equals

public boolean equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.

Overrides:
equals in class NumberValueAxis
Parameters:
obj - the reference object with which to compare.
Returns:
true if this object is the same as the obj argument; false otherwise.

hashCode

public int hashCode()
Returns a hash code value for the object.

Overrides:
hashCode in class NumberValueAxis
Returns:
int A hash code value for this object.

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Creates and returns a copy of this object.

Overrides:
clone in class NumberValueAxis
Returns:
object a clone of this instance.
Throws:
java.lang.CloneNotSupportedException - if the object's class does not support the Cloneable interface. Subclasses that override the clone method can also throw this exception to indicate that an instance cannot be cloned.

toString

public java.lang.String toString()
Returns a string representation of the object.

Overrides:
toString in class NumberValueAxis
Returns:
a string representation of the object.