|
Header
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jfree.chart.axis.Axis
org.jfree.chart.axis.ValueAxis
org.jfree.chart.axis.NumberAxis
org.jfree.chart.axis.ModuloAxis
public class ModuloAxis
An axis that displays numerical values within a fixed range using a modulo calculation.
| Field Summary |
|---|
| Fields inherited from class org.jfree.chart.axis.NumberAxis |
|---|
DEFAULT_AUTO_RANGE_INCLUDES_ZERO, DEFAULT_AUTO_RANGE_STICKY_ZERO, DEFAULT_TICK_UNIT, DEFAULT_VERTICAL_TICK_LABELS |
| Fields inherited from class org.jfree.chart.axis.ValueAxis |
|---|
DEFAULT_AUTO_RANGE, DEFAULT_AUTO_RANGE_MINIMUM_SIZE, DEFAULT_AUTO_TICK_UNIT_SELECTION, DEFAULT_INVERTED, DEFAULT_LOWER_BOUND, DEFAULT_LOWER_MARGIN, DEFAULT_RANGE, DEFAULT_UPPER_BOUND, DEFAULT_UPPER_MARGIN, MAXIMUM_TICK_COUNT |
| Constructor Summary | |
|---|---|
ModuloAxis(java.lang.String label,
Range fixedRange)
Creates a new axis. |
|
| Method Summary | |
|---|---|
protected void |
autoAdjustRange()
This method should calculate a range that will show all the data values. |
boolean |
equals(java.lang.Object obj)
Tests this axis for equality with an arbitrary object. |
double |
getDisplayEnd()
Returns the display end value. |
double |
getDisplayStart()
Returns the display start value. |
double |
java2DToValue(double java2DValue,
java.awt.geom.Rectangle2D area,
org.jfree.ui.RectangleEdge edge)
Translates a Java2D coordinate into a data value. |
double |
lengthToJava2D(double length,
java.awt.geom.Rectangle2D area,
org.jfree.ui.RectangleEdge edge)
Converts a length in data coordinates into the corresponding length in Java2D coordinates. |
void |
resizeRange(double percent)
Increases or decreases the axis range by the specified percentage about the central value and sends an AxisChangeEvent to all registered
listeners. |
void |
resizeRange(double percent,
double anchorValue)
Increases or decreases the axis range by the specified percentage about the specified anchor value and sends an AxisChangeEvent to all
registered listeners. |
void |
setDisplayRange(double start,
double end)
Sets the display range. |
double |
valueToJava2D(double value,
java.awt.geom.Rectangle2D area,
org.jfree.ui.RectangleEdge edge)
Translates a data value to a Java2D coordinate. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ModuloAxis(java.lang.String label,
Range fixedRange)
label - the axis label (null permitted).fixedRange - the fixed range (null not permitted).| Method Detail |
|---|
public double getDisplayStart()
public double getDisplayEnd()
public void setDisplayRange(double start,
double end)
start - the start value.end - the end value.protected void autoAdjustRange()
autoAdjustRange in class NumberAxis
public double valueToJava2D(double value,
java.awt.geom.Rectangle2D area,
org.jfree.ui.RectangleEdge edge)
valueToJava2D in class NumberAxisvalue - the value.area - the area.edge - the edge.
NumberAxis.java2DToValue(double, Rectangle2D, RectangleEdge)
public double java2DToValue(double java2DValue,
java.awt.geom.Rectangle2D area,
org.jfree.ui.RectangleEdge edge)
java2DToValue in class NumberAxisjava2DValue - the Java2D coordinate.area - the area.edge - the edge.
NumberAxis.valueToJava2D(double, Rectangle2D, RectangleEdge)public void resizeRange(double percent)
AxisChangeEvent to all registered
listeners.
To double the length of the axis range, use 200% (2.0). To halve the length of the axis range, use 50% (0.5).
resizeRange in class ValueAxispercent - the resize factor.ValueAxis.resizeRange(double, double)
public void resizeRange(double percent,
double anchorValue)
AxisChangeEvent to all
registered listeners.
To double the length of the axis range, use 200% (2.0). To halve the length of the axis range, use 50% (0.5).
resizeRange in class ValueAxispercent - the resize factor.anchorValue - the new central value after the resize.ValueAxis.resizeRange(double)
public double lengthToJava2D(double length,
java.awt.geom.Rectangle2D area,
org.jfree.ui.RectangleEdge edge)
lengthToJava2D in class ValueAxislength - the length.area - the plot area.edge - the edge along which the axis lies.
public boolean equals(java.lang.Object obj)
equals in class NumberAxisobj - the object (null permitted).
|
Footer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||