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