|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.chart.axis.ColorBar
A color bar.
Field Summary | |
static int |
DEFAULT_COLORBAR_THICKNESS
The default color bar thickness. |
static double |
DEFAULT_COLORBAR_THICKNESS_PERCENT
The default color bar thickness percentage. |
static int |
DEFAULT_OUTERGAP
The default outer gap. |
Constructor Summary | |
ColorBar(java.lang.String label)
Constructs a horizontal colorbar axis, using default values where necessary. |
Method Summary | |
void |
autoAdjustRange()
Rescales the axis to ensure that all data are visible. |
java.lang.Object |
clone()
Returns a clone of the object. |
void |
configure(ContourPlot plot)
Configures the color bar. |
double |
draw(java.awt.Graphics2D g2,
double cursor,
java.awt.geom.Rectangle2D plotArea,
java.awt.geom.Rectangle2D dataArea,
java.awt.geom.Rectangle2D reservedArea,
RectangleEdge edge)
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,
RectangleEdge edge)
Draws the plot on a Java 2D graphics device (such as the screen or a printer). |
boolean |
equals(java.lang.Object obj)
Tests this object for equality with another. |
ValueAxis |
getAxis()
Returns the axis. |
ColorPalette |
getColorPalette()
Returns the color palette. |
java.awt.Paint |
getPaint(double value)
Returns the Paint associated with a value. |
AxisSpace |
reserveSpace(java.awt.Graphics2D g2,
Plot plot,
java.awt.geom.Rectangle2D plotArea,
java.awt.geom.Rectangle2D dataArea,
RectangleEdge edge,
AxisSpace space)
Reserves the space required to draw the color bar. |
void |
setAxis(ValueAxis axis)
Sets the axis. |
void |
setColorPalette(ColorPalette palette)
Sets the color palette. |
void |
setMaximumValue(double value)
Sets the maximum value. |
void |
setMinimumValue(double value)
Sets the minimum value. |
Methods inherited from class java.lang.Object |
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_PERCENT
public static final int DEFAULT_OUTERGAP
Constructor Detail |
public ColorBar(java.lang.String label)
label
- the axis label.Method Detail |
public void configure(ContourPlot plot)
plot
- the plot.public ValueAxis getAxis()
public void setAxis(ValueAxis axis)
axis
- the axis.public void autoAdjustRange()
public double draw(java.awt.Graphics2D g2, double cursor, java.awt.geom.Rectangle2D plotArea, java.awt.geom.Rectangle2D dataArea, java.awt.geom.Rectangle2D reservedArea, RectangleEdge edge)
g2
- the graphics device.cursor
- the cursor.plotArea
- the area within which the chart should be drawn.dataArea
- the area within which the plot should be drawn (a
subset of the drawArea).reservedArea
- the reserved area.edge
- the color bar location.
public void drawColorBar(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D colorBarArea, RectangleEdge edge)
g2
- the graphics device.colorBarArea
- the area within which the axis should be drawn.edge
- the location.public ColorPalette getColorPalette()
public java.awt.Paint getPaint(double value)
value
- the value.
public void setColorPalette(ColorPalette palette)
palette
- the new palette.public void setMaximumValue(double value)
value
- the maximum value.public void setMinimumValue(double value)
value
- the minimum value.public AxisSpace reserveSpace(java.awt.Graphics2D g2, Plot plot, java.awt.geom.Rectangle2D plotArea, java.awt.geom.Rectangle2D dataArea, RectangleEdge edge, AxisSpace space)
g2
- the graphics device.plot
- the plot that the axis belongs to.plotArea
- the area within which the plot should be drawn.dataArea
- the data area.edge
- the axis location.space
- the space already reserved.
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
- if some component of the color bar
does not support cloning.public boolean equals(java.lang.Object obj)
obj
- the object to test against.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |