public class ModuloAxis extends NumberAxis
DEFAULT_AUTO_RANGE_INCLUDES_ZERO, DEFAULT_AUTO_RANGE_STICKY_ZERO, DEFAULT_TICK_UNIT, DEFAULT_VERTICAL_TICK_LABELS
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
DEFAULT_AXIS_LABEL_FONT, DEFAULT_AXIS_LABEL_INSETS, DEFAULT_AXIS_LABEL_PAINT, DEFAULT_AXIS_LINE_PAINT, DEFAULT_AXIS_LINE_STROKE, DEFAULT_AXIS_VISIBLE, DEFAULT_TICK_LABEL_FONT, DEFAULT_TICK_LABEL_INSETS, DEFAULT_TICK_LABEL_PAINT, 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
Constructor and Description |
---|
ModuloAxis(String label,
Range fixedRange)
Creates a new axis.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(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,
Rectangle2D area,
org.jfree.ui.RectangleEdge edge)
Translates a Java2D coordinate into a data value.
|
double |
lengthToJava2D(double length,
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,
Rectangle2D area,
org.jfree.ui.RectangleEdge edge)
Translates a data value to a Java2D coordinate.
|
clone, configure, createIntegerTickUnits, createIntegerTickUnits, createStandardTickUnits, createStandardTickUnits, draw, getAutoRangeIncludesZero, getAutoRangeStickyZero, getMarkerBand, getNumberFormatOverride, getRangeType, getTickUnit, hashCode, refreshTicks, setAutoRangeIncludesZero, setAutoRangeStickyZero, setMarkerBand, setNumberFormatOverride, setRangeType, setTickUnit, setTickUnit
centerRange, getAutoRangeMinimumSize, getDefaultAutoRange, getDownArrow, getFixedAutoRange, getLeftArrow, getLowerBound, getLowerMargin, getMinorTickCount, getRange, getRightArrow, getStandardTickUnits, getUpArrow, getUpperBound, getUpperMargin, isAutoRange, isAutoTickUnitSelection, isInverted, isNegativeArrowVisible, isPositiveArrowVisible, isVerticalTickLabels, pan, reserveSpace, resizeRange2, setAutoRange, setAutoRangeMinimumSize, setAutoRangeMinimumSize, setAutoTickUnitSelection, setAutoTickUnitSelection, setDefaultAutoRange, setDownArrow, setFixedAutoRange, setInverted, setLeftArrow, setLowerBound, setLowerMargin, setMinorTickCount, setNegativeArrowVisible, setPositiveArrowVisible, setRange, setRange, setRange, setRangeAboutValue, setRangeWithMargins, setRangeWithMargins, setRangeWithMargins, setRightArrow, setStandardTickUnits, setUpArrow, setUpperBound, setUpperMargin, setVerticalTickLabels, zoomRange
addChangeListener, createAttributedLabel, getAttributedLabel, getAxisLinePaint, getAxisLineStroke, getFixedDimension, getLabel, getLabelAngle, getLabelFont, getLabelInsets, getLabelLocation, getLabelPaint, getMinorTickMarkInsideLength, getMinorTickMarkOutsideLength, getPlot, getTickLabelFont, getTickLabelInsets, getTickLabelPaint, getTickMarkInsideLength, getTickMarkOutsideLength, getTickMarkPaint, getTickMarkStroke, hasListener, isAxisLineVisible, isMinorTickMarksVisible, isTickLabelsVisible, isTickMarksVisible, isVisible, removeChangeListener, setAttributedLabel, setAttributedLabel, setAxisLinePaint, setAxisLineStroke, setAxisLineVisible, setFixedDimension, setLabel, setLabelAngle, setLabelFont, setLabelInsets, setLabelInsets, setLabelLocation, setLabelPaint, setMinorTickMarkInsideLength, setMinorTickMarkOutsideLength, setMinorTickMarksVisible, setPlot, setTickLabelFont, setTickLabelInsets, setTickLabelPaint, setTickLabelsVisible, setTickMarkInsideLength, setTickMarkOutsideLength, setTickMarkPaint, setTickMarkStroke, setTickMarksVisible, setVisible
public double getDisplayStart()
public double getDisplayEnd()
public void setDisplayRange(double start, double end)
start
- the start value.end
- the end value.public double valueToJava2D(double value, Rectangle2D area, org.jfree.ui.RectangleEdge edge)
valueToJava2D
in class NumberAxis
value
- the value.area
- the area.edge
- the edge.NumberAxis.java2DToValue(double, Rectangle2D, RectangleEdge)
public double java2DToValue(double java2DValue, Rectangle2D area, org.jfree.ui.RectangleEdge edge)
java2DToValue
in class NumberAxis
java2DValue
- 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 ValueAxis
percent
- 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 ValueAxis
percent
- the resize factor.anchorValue
- the new central value after the resize.ValueAxis.resizeRange(double)
public double lengthToJava2D(double length, Rectangle2D area, org.jfree.ui.RectangleEdge edge)
lengthToJava2D
in class ValueAxis
length
- the length.area
- the plot area.edge
- the edge along which the axis lies.public boolean equals(Object obj)
equals
in class NumberAxis
obj
- the object (null
permitted).Jas4pp 1.5 © Java Analysis Studio for Particle Physics