Package org.jfree.chart.axis
Class ColorBar
java.lang.Object
org.jfree.chart.axis.ColorBar
- All Implemented Interfaces:
Serializable
,Cloneable
Deprecated.
A color bar.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Deprecated.The default color bar thickness.static final double
Deprecated.The default color bar thickness percentage.static final int
Deprecated.The default outer gap. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.Rescales the axis to ensure that all data are visible.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
Deprecated.Tests this object for equality with another.getAxis()
Deprecated.Returns the axis.Deprecated.Returns the color palette.getPaint
(double value) Deprecated.Returns the Paint associated with a value.int
hashCode()
Deprecated.Returns a hash code for this object.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
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.
-
Field Details
-
DEFAULT_COLORBAR_THICKNESS
Deprecated.The default color bar thickness.- See Also:
-
DEFAULT_COLORBAR_THICKNESS_PERCENT
Deprecated.The default color bar thickness percentage.- See Also:
-
DEFAULT_OUTERGAP
Deprecated.The default outer gap.- See Also:
-
-
Constructor Details
-
ColorBar
Deprecated.Constructs a horizontal colorbar axis, using default values where necessary.- Parameters:
label
- the axis label.
-
-
Method Details
-
configure
Deprecated.Configures the color bar.- Parameters:
plot
- the plot.
-
getAxis
Deprecated.Returns the axis.- Returns:
- The axis.
-
setAxis
Deprecated.Sets the axis.- Parameters:
axis
- the axis.
-
autoAdjustRange
Deprecated.Rescales the axis to ensure that all data are visible. -
draw
public 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).- Parameters:
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.- Returns:
- The new cursor location.
-
drawColorBar
Deprecated.Draws the plot on a Java 2D graphics device (such as the screen or a printer).- Parameters:
g2
- the graphics device.colorBarArea
- the area within which the axis should be drawn.edge
- the location.
-
getColorPalette
Deprecated.Returns the color palette.- Returns:
- The color palette.
-
getPaint
Deprecated.Returns the Paint associated with a value.- Parameters:
value
- the value.- Returns:
- The paint.
-
setColorPalette
Deprecated.Sets the color palette.- Parameters:
palette
- the new palette.
-
setMaximumValue
Deprecated.Sets the maximum value.- Parameters:
value
- the maximum value.
-
setMinimumValue
Deprecated.Sets the minimum value.- Parameters:
value
- the minimum value.
-
reserveSpace
public 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.- Parameters:
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.- Returns:
- The space required to draw the axis in the specified plot area.
-
clone
Deprecated.Returns a clone of the object.- Overrides:
clone
in classObject
- Returns:
- A clone.
- Throws:
CloneNotSupportedException
- if some component of the color bar does not support cloning.
-
equals
Deprecated.Tests this object for equality with another. -
hashCode
Deprecated.Returns a hash code for this object.
-
XYPlot
andXYBlockRenderer
.