| java.lang.Object org.jfree.chart.axis.Axis org.jfree.chart.axis.ValueAxis org.jfree.chart.axis.NumberAxis org.jfree.chart.axis.ModuloAxis
ModuloAxis | public class ModuloAxis extends NumberAxis (Code) | | An axis that displays numerical values within a fixed range using a modulo
calculation.
|
Method Summary | |
protected void | autoAdjustRange() This method should calculate a range that will show all the data values. | public double | getDisplayEnd() Returns the display end value. | public double | getDisplayStart() Returns the display start value. | public double | java2DToValue(double java2DValue, Rectangle2D area, RectangleEdge edge) Translates a Java2D coordinate into a data value.
Parameters: java2DValue - the Java2D coordinate. Parameters: area - the area. Parameters: edge - the edge. | public double | lengthToJava2D(double length, Rectangle2D area, RectangleEdge edge) Converts a length in data coordinates into the corresponding length in
Java2D coordinates.
Parameters: length - the length. Parameters: area - the plot area. Parameters: edge - the edge along which the axis lies. | public 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. | public 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. | public void | setDisplayRange(double start, double end) Sets the display range. | public double | valueToJava2D(double value, Rectangle2D area, RectangleEdge edge) Translates a data value to a Java2D coordinate.
Parameters: value - the value. Parameters: area - the area. Parameters: edge - the edge. |
ModuloAxis | public ModuloAxis(String label, Range fixedRange)(Code) | | Creates a new axis.
Parameters: label - the axis label (null permitted). Parameters: fixedRange - the fixed range (null not permitted). |
autoAdjustRange | protected void autoAdjustRange()(Code) | | This method should calculate a range that will show all the data values.
For now, it just sets the axis range to the fixedRange.
|
getDisplayEnd | public double getDisplayEnd()(Code) | | Returns the display end value.
The display end value. |
getDisplayStart | public double getDisplayStart()(Code) | | Returns the display start value.
The display start value. |
java2DToValue | public double java2DToValue(double java2DValue, Rectangle2D area, RectangleEdge edge)(Code) | | Translates a Java2D coordinate into a data value.
Parameters: java2DValue - the Java2D coordinate. Parameters: area - the area. Parameters: edge - the edge. The Java2D coordinate. |
lengthToJava2D | public double lengthToJava2D(double length, Rectangle2D area, RectangleEdge edge)(Code) | | Converts a length in data coordinates into the corresponding length in
Java2D coordinates.
Parameters: length - the length. Parameters: area - the plot area. Parameters: edge - the edge along which the axis lies. The length in Java2D coordinates. |
resizeRange | public void resizeRange(double percent)(Code) | | Increases or decreases the axis range by the specified percentage about
the central value and sends an
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).
Parameters: percent - the resize factor. |
resizeRange | public void resizeRange(double percent, double anchorValue)(Code) | | Increases or decreases the axis range by the specified percentage about
the specified anchor value and sends an
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).
Parameters: percent - the resize factor. Parameters: anchorValue - the new central value after the resize. |
setDisplayRange | public void setDisplayRange(double start, double end)(Code) | | Sets the display range. The values will be mapped to the fixed range if
necessary.
Parameters: start - the start value. Parameters: end - the end value. |
valueToJava2D | public double valueToJava2D(double value, Rectangle2D area, RectangleEdge edge)(Code) | | Translates a data value to a Java2D coordinate.
Parameters: value - the value. Parameters: area - the area. Parameters: edge - the edge. A Java2D coordinate. |
Methods inherited from org.jfree.chart.axis.NumberAxis | protected void autoAdjustRange()(Code)(Java Doc) protected double calculateHighestVisibleTickValue()(Code)(Java Doc) protected double calculateLowestVisibleTickValue()(Code)(Java Doc) protected int calculateVisibleTickCount()(Code)(Java Doc) public Object clone() throws CloneNotSupportedException(Code)(Java Doc) public void configure()(Code)(Java Doc) public static TickUnitSource createIntegerTickUnits()(Code)(Java Doc) public static TickUnitSource createIntegerTickUnits(Locale locale)(Code)(Java Doc) public static TickUnitSource createStandardTickUnits()(Code)(Java Doc) public static TickUnitSource createStandardTickUnits(Locale locale)(Code)(Java Doc) public AxisState draw(Graphics2D g2, double cursor, Rectangle2D plotArea, Rectangle2D dataArea, RectangleEdge edge, PlotRenderingInfo plotState)(Code)(Java Doc) public boolean equals(Object obj)(Code)(Java Doc) protected double estimateMaximumTickLabelHeight(Graphics2D g2)(Code)(Java Doc) protected double estimateMaximumTickLabelWidth(Graphics2D g2, TickUnit unit)(Code)(Java Doc) public boolean getAutoRangeIncludesZero()(Code)(Java Doc) public boolean getAutoRangeStickyZero()(Code)(Java Doc) public MarkerAxisBand getMarkerBand()(Code)(Java Doc) public NumberFormat getNumberFormatOverride()(Code)(Java Doc) public RangeType getRangeType()(Code)(Java Doc) public NumberTickUnit getTickUnit()(Code)(Java Doc) public int hashCode()(Code)(Java Doc) public double java2DToValue(double java2DValue, Rectangle2D area, RectangleEdge edge)(Code)(Java Doc) public List refreshTicks(Graphics2D g2, AxisState state, Rectangle2D dataArea, RectangleEdge edge)(Code)(Java Doc) protected List refreshTicksHorizontal(Graphics2D g2, Rectangle2D dataArea, RectangleEdge edge)(Code)(Java Doc) protected List refreshTicksVertical(Graphics2D g2, Rectangle2D dataArea, RectangleEdge edge)(Code)(Java Doc) protected void selectAutoTickUnit(Graphics2D g2, Rectangle2D dataArea, RectangleEdge edge)(Code)(Java Doc) protected void selectHorizontalAutoTickUnit(Graphics2D g2, Rectangle2D dataArea, RectangleEdge edge)(Code)(Java Doc) protected void selectVerticalAutoTickUnit(Graphics2D g2, Rectangle2D dataArea, RectangleEdge edge)(Code)(Java Doc) public void setAutoRangeIncludesZero(boolean flag)(Code)(Java Doc) public void setAutoRangeStickyZero(boolean flag)(Code)(Java Doc) public void setMarkerBand(MarkerAxisBand band)(Code)(Java Doc) public void setNumberFormatOverride(NumberFormat formatter)(Code)(Java Doc) public void setRangeType(RangeType rangeType)(Code)(Java Doc) public void setTickUnit(NumberTickUnit unit)(Code)(Java Doc) public void setTickUnit(NumberTickUnit unit, boolean notify, boolean turnOffAutoSelect)(Code)(Java Doc) public double valueToJava2D(double value, Rectangle2D area, RectangleEdge edge)(Code)(Java Doc)
|
Methods inherited from org.jfree.chart.axis.ValueAxis | abstract protected void autoAdjustRange()(Code)(Java Doc) protected float[] calculateAnchorPoint(ValueTick tick, double cursor, Rectangle2D dataArea, RectangleEdge edge)(Code)(Java Doc) public void centerRange(double value)(Code)(Java Doc) public Object clone() throws CloneNotSupportedException(Code)(Java Doc) protected void drawAxisLine(Graphics2D g2, double cursor, Rectangle2D dataArea, RectangleEdge edge)(Code)(Java Doc) protected AxisState drawTickMarksAndLabels(Graphics2D g2, double cursor, Rectangle2D plotArea, Rectangle2D dataArea, RectangleEdge edge)(Code)(Java Doc) public boolean equals(Object obj)(Code)(Java Doc) protected double findMaximumTickLabelHeight(List ticks, Graphics2D g2, Rectangle2D drawArea, boolean vertical)(Code)(Java Doc) protected double findMaximumTickLabelWidth(List ticks, Graphics2D g2, Rectangle2D drawArea, boolean vertical)(Code)(Java Doc) public double getAutoRangeMinimumSize()(Code)(Java Doc) protected int getAutoTickIndex()(Code)(Java Doc) public Range getDefaultAutoRange()(Code)(Java Doc) public Shape getDownArrow()(Code)(Java Doc) public double getFixedAutoRange()(Code)(Java Doc) public Shape getLeftArrow()(Code)(Java Doc) public double getLowerBound()(Code)(Java Doc) public double getLowerMargin()(Code)(Java Doc) public Range getRange()(Code)(Java Doc) public Shape getRightArrow()(Code)(Java Doc) public TickUnitSource getStandardTickUnits()(Code)(Java Doc) public Shape getUpArrow()(Code)(Java Doc) public double getUpperBound()(Code)(Java Doc) public double getUpperMargin()(Code)(Java Doc) public boolean isAutoRange()(Code)(Java Doc) public boolean isAutoTickUnitSelection()(Code)(Java Doc) public boolean isInverted()(Code)(Java Doc) public boolean isNegativeArrowVisible()(Code)(Java Doc) public boolean isPositiveArrowVisible()(Code)(Java Doc) public boolean isVerticalTickLabels()(Code)(Java Doc) abstract public double java2DToValue(double java2DValue, Rectangle2D area, RectangleEdge edge)(Code)(Java Doc) public double lengthToJava2D(double length, Rectangle2D area, RectangleEdge edge)(Code)(Java Doc) public AxisSpace reserveSpace(Graphics2D g2, Plot plot, Rectangle2D plotArea, RectangleEdge edge, AxisSpace space)(Code)(Java Doc) public void resizeRange(double percent)(Code)(Java Doc) public void resizeRange(double percent, double anchorValue)(Code)(Java Doc) public void setAutoRange(boolean auto)(Code)(Java Doc) protected void setAutoRange(boolean auto, boolean notify)(Code)(Java Doc) public void setAutoRangeMinimumSize(double size)(Code)(Java Doc) public void setAutoRangeMinimumSize(double size, boolean notify)(Code)(Java Doc) protected void setAutoTickIndex(int index)(Code)(Java Doc) public void setAutoTickUnitSelection(boolean flag)(Code)(Java Doc) public void setAutoTickUnitSelection(boolean flag, boolean notify)(Code)(Java Doc) public void setDefaultAutoRange(Range range)(Code)(Java Doc) public void setDownArrow(Shape arrow)(Code)(Java Doc) public void setFixedAutoRange(double length)(Code)(Java Doc) public void setInverted(boolean flag)(Code)(Java Doc) public void setLeftArrow(Shape arrow)(Code)(Java Doc) public void setLowerBound(double min)(Code)(Java Doc) public void setLowerMargin(double margin)(Code)(Java Doc) public void setNegativeArrowVisible(boolean visible)(Code)(Java Doc) public void setPositiveArrowVisible(boolean visible)(Code)(Java Doc) public void setRange(Range range)(Code)(Java Doc) public void setRange(Range range, boolean turnOffAutoRange, boolean notify)(Code)(Java Doc) public void setRange(double lower, double upper)(Code)(Java Doc) public void setRangeAboutValue(double value, double length)(Code)(Java Doc) public void setRangeWithMargins(Range range)(Code)(Java Doc) public void setRangeWithMargins(Range range, boolean turnOffAutoRange, boolean notify)(Code)(Java Doc) public void setRangeWithMargins(double lower, double upper)(Code)(Java Doc) public void setRightArrow(Shape arrow)(Code)(Java Doc) public void setStandardTickUnits(TickUnitSource source)(Code)(Java Doc) public void setUpArrow(Shape arrow)(Code)(Java Doc) public void setUpperBound(double max)(Code)(Java Doc) public void setUpperMargin(double margin)(Code)(Java Doc) public void setVerticalTickLabels(boolean flag)(Code)(Java Doc) abstract public double valueToJava2D(double value, Rectangle2D area, RectangleEdge edge)(Code)(Java Doc) public void zoomRange(double lowerPercent, double upperPercent)(Code)(Java Doc)
|
Methods inherited from org.jfree.chart.axis.Axis | public void addChangeListener(AxisChangeListener listener)(Code)(Java Doc) public Object clone() throws CloneNotSupportedException(Code)(Java Doc) abstract public void configure()(Code)(Java Doc) abstract public AxisState draw(Graphics2D g2, double cursor, Rectangle2D plotArea, Rectangle2D dataArea, RectangleEdge edge, PlotRenderingInfo plotState)(Code)(Java Doc) protected void drawAxisLine(Graphics2D g2, double cursor, Rectangle2D dataArea, RectangleEdge edge)(Code)(Java Doc) protected AxisState drawLabel(String label, Graphics2D g2, Rectangle2D plotArea, Rectangle2D dataArea, RectangleEdge edge, AxisState state)(Code)(Java Doc) public boolean equals(Object obj)(Code)(Java Doc) public Paint getAxisLinePaint()(Code)(Java Doc) public Stroke getAxisLineStroke()(Code)(Java Doc) public double getFixedDimension()(Code)(Java Doc) public String getLabel()(Code)(Java Doc) public double getLabelAngle()(Code)(Java Doc) protected Rectangle2D getLabelEnclosure(Graphics2D g2, RectangleEdge edge)(Code)(Java Doc) public Font getLabelFont()(Code)(Java Doc) public RectangleInsets getLabelInsets()(Code)(Java Doc) public Paint getLabelPaint()(Code)(Java Doc) public Plot getPlot()(Code)(Java Doc) public Font getTickLabelFont()(Code)(Java Doc) public RectangleInsets getTickLabelInsets()(Code)(Java Doc) public Paint getTickLabelPaint()(Code)(Java Doc) public float getTickMarkInsideLength()(Code)(Java Doc) public float getTickMarkOutsideLength()(Code)(Java Doc) public Paint getTickMarkPaint()(Code)(Java Doc) public Stroke getTickMarkStroke()(Code)(Java Doc) public boolean hasListener(EventListener listener)(Code)(Java Doc) public boolean isAxisLineVisible()(Code)(Java Doc) public boolean isTickLabelsVisible()(Code)(Java Doc) public boolean isTickMarksVisible()(Code)(Java Doc) public boolean isVisible()(Code)(Java Doc) protected void notifyListeners(AxisChangeEvent event)(Code)(Java Doc) abstract public List refreshTicks(Graphics2D g2, AxisState state, Rectangle2D dataArea, RectangleEdge edge)(Code)(Java Doc) public void removeChangeListener(AxisChangeListener listener)(Code)(Java Doc) abstract public AxisSpace reserveSpace(Graphics2D g2, Plot plot, Rectangle2D plotArea, RectangleEdge edge, AxisSpace space)(Code)(Java Doc) public void setAxisLinePaint(Paint paint)(Code)(Java Doc) public void setAxisLineStroke(Stroke stroke)(Code)(Java Doc) public void setAxisLineVisible(boolean visible)(Code)(Java Doc) public void setFixedDimension(double dimension)(Code)(Java Doc) public void setLabel(String label)(Code)(Java Doc) public void setLabelAngle(double angle)(Code)(Java Doc) public void setLabelFont(Font font)(Code)(Java Doc) public void setLabelInsets(RectangleInsets insets)(Code)(Java Doc) public void setLabelPaint(Paint paint)(Code)(Java Doc) public void setPlot(Plot plot)(Code)(Java Doc) public void setTickLabelFont(Font font)(Code)(Java Doc) public void setTickLabelInsets(RectangleInsets insets)(Code)(Java Doc) public void setTickLabelPaint(Paint paint)(Code)(Java Doc) public void setTickLabelsVisible(boolean flag)(Code)(Java Doc) public void setTickMarkInsideLength(float length)(Code)(Java Doc) public void setTickMarkOutsideLength(float length)(Code)(Java Doc) public void setTickMarkPaint(Paint paint)(Code)(Java Doc) public void setTickMarkStroke(Stroke stroke)(Code)(Java Doc) public void setTickMarksVisible(boolean flag)(Code)(Java Doc) public void setVisible(boolean flag)(Code)(Java Doc)
|
|
|