|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jfree.chart.axis.Axis | +--org.jfree.chart.axis.ValueAxis | +--org.jfree.chart.axis.NumberAxis | +--org.jfree.chart.axis.VerticalNumberAxis | +--org.jfree.chart.axis.VerticalLogarithmicAxis | +--org.jfree.chart.axis.VerticalLogarithmicColorBarAxis
A vertical ColorBar. This class extends the VerticalNumberAxis to provide a) tickmarks, b) ticklabels, c) axis label, d) mapping between java2D and plot units.
Field Summary | |
static int |
DEFAULT_COLORBAR_THICKNESS
The default color bar thickness. |
static double |
DEFAULT_COLORBAR_THICKNESS_PCT
The default color bar thickness as a percentage. |
static int |
DEFAULT_OUTERGAP
The default outer gap. |
Fields inherited from class org.jfree.chart.axis.VerticalLogarithmicAxis |
LOG10_VALUE, SMALL_LOG_VALUE |
Fields inherited from class org.jfree.chart.axis.VerticalNumberAxis |
DEFAULT_VERTICAL_LABEL |
Fields inherited from class org.jfree.chart.axis.NumberAxis |
DEFAULT_AUTO_RANGE_INCLUDES_ZERO, DEFAULT_AUTO_RANGE_STICKY_ZERO, DEFAULT_TICK_UNIT |
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 | |
VerticalLogarithmicColorBarAxis(java.lang.String label)
Constructor for VerticalLogarithmicColorBarAxis. |
Method Summary | |
void |
autoAdjustRange()
Rescales the axis to ensure that all data is visible. |
void |
doAutoRange()
This is cheat to make autoAdjustRange public. |
void |
draw(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D drawArea,
java.awt.geom.Rectangle2D plotArea,
int location)
Draws the plot on a Java 2D graphics device (such as the screen or a printer). |
void |
drawColorBar(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D colorBarArea)
Draws the plot on a Java 2D graphics device (such as the screen or a printer). |
ColorPalette |
getColorPalette()
Returns the current ColorPalette. |
java.awt.Paint |
getPaint(double value)
Returns the Paint associated with the value. |
protected boolean |
isCompatiblePlot(Plot plot)
Returns true if the specified plot is compatible with the axis, and false otherwise. |
void |
refreshTicks(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D drawArea,
java.awt.geom.Rectangle2D plotArea,
int location)
Calculates the positions of the tick labels for the axis, storing the results in the tick label list (ready for drawing). |
double |
reserveWidth(java.awt.Graphics2D g2,
Plot plot,
java.awt.geom.Rectangle2D drawArea,
int location)
Returns the width of the axis. |
void |
setColorPalette(ColorPalette palette)
Sets the current ColorPalette. |
void |
setMaximumAxisValue(double value)
Sets the maximum axis value. |
void |
setMinimumAxisValue(double value)
Sets the minimum axis value. |
double |
tickLabelWidth(java.awt.Graphics2D g2,
java.lang.String tickLabel)
Returns the tick label width. |
Methods inherited from class org.jfree.chart.axis.VerticalLogarithmicAxis |
adjustedLog10, computeLogCeil, computeLogFloor, getAllowNegativesFlag, getLog10TickLabelsFlag, setAllowNegativesFlag, setLog10TickLabelsFlag, setRange, setupSmallLogFlag, switchedLog10, translateJava2DtoValue, translateValueToJava2D |
Methods inherited from class org.jfree.chart.axis.VerticalNumberAxis |
configure, isVerticalLabel, reserveWidth, selectAutoTickUnit, setVerticalLabel |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int DEFAULT_COLORBAR_THICKNESS
public static final double DEFAULT_COLORBAR_THICKNESS_PCT
public static final int DEFAULT_OUTERGAP
Constructor Detail |
public VerticalLogarithmicColorBarAxis(java.lang.String label)
label
- the axis label.Method Detail |
public ColorPalette getColorPalette()
getColorPalette
in interface ColorBarAxis
public java.awt.Paint getPaint(double value)
getPaint
in interface ColorBarAxis
value
- the value.
public void setColorPalette(ColorPalette palette)
setColorPalette
in interface ColorBarAxis
palette
- the palette.public void autoAdjustRange()
autoAdjustRange
in class VerticalLogarithmicAxis
public void draw(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D drawArea, java.awt.geom.Rectangle2D plotArea, int location)
draw
in class VerticalNumberAxis
g2
- the graphics device.drawArea
- the area within which the chart should be drawn.plotArea
- the area within which the plot should be drawn (a subset of the drawArea).location
- the axis location.public void drawColorBar(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D colorBarArea)
g2
- the graphics device.colorBarArea
- the area within which the axis should be drawn.public double tickLabelWidth(java.awt.Graphics2D g2, java.lang.String tickLabel)
g2
- the graphics device.tickLabel
- the tick label.
protected boolean isCompatiblePlot(Plot plot)
This class (ContourValuePlot) requires that the plot implements the ContourValuePlot interface.
isCompatiblePlot
in class VerticalNumberAxis
plot
- the plot.
public void setMaximumAxisValue(double value)
setMaximumAxisValue
in class ValueAxis
value
- the value.public void setMinimumAxisValue(double value)
setMinimumAxisValue
in class ValueAxis
value
- the value.public void refreshTicks(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D drawArea, java.awt.geom.Rectangle2D plotArea, int location)
refreshTicks
in class VerticalLogarithmicAxis
g2
- the graphics device.drawArea
- the area in which the plot and the axes should be drawn.plotArea
- the area in which the plot should be drawn.location
- the axis location.public double reserveWidth(java.awt.Graphics2D g2, Plot plot, java.awt.geom.Rectangle2D drawArea, int location)
reserveWidth
in interface VerticalAxis
reserveWidth
in class VerticalNumberAxis
g2
- the graphics device.plot
- the plot.drawArea
- the area for drawing.location
- the axis location.
public void doAutoRange()
doAutoRange
in interface ColorBarAxis
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |