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 TypeFieldDescriptionprivate ValueAxis
Deprecated.The axis.private int
Deprecated.The color bar length.private int
Deprecated.The color bar thickness.private double
Deprecated.The color bar thickness as a percentage of the height of the data area.private ColorPalette
Deprecated.The color palette.static 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.private int
Deprecated.The amount of blank space around the colorbar.private static final long
Deprecated.For serialization. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.Rescales the axis to ensure that all data are visible.private double
calculateBarThickness
(Rectangle2D plotArea, org.jfree.ui.RectangleEdge edge) Deprecated.Calculates the bar thickness.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
-
serialVersionUID
private static final long serialVersionUIDDeprecated.For serialization.- See Also:
-
DEFAULT_COLORBAR_THICKNESS
public static final int DEFAULT_COLORBAR_THICKNESSDeprecated.The default color bar thickness.- See Also:
-
DEFAULT_COLORBAR_THICKNESS_PERCENT
public static final double DEFAULT_COLORBAR_THICKNESS_PERCENTDeprecated.The default color bar thickness percentage.- See Also:
-
DEFAULT_OUTERGAP
public static final int DEFAULT_OUTERGAPDeprecated.The default outer gap.- See Also:
-
axis
Deprecated.The axis. -
colorBarThickness
private int colorBarThicknessDeprecated.The color bar thickness. -
colorBarThicknessPercent
private double colorBarThicknessPercentDeprecated.The color bar thickness as a percentage of the height of the data area. -
colorPalette
Deprecated.The color palette. -
colorBarLength
private int colorBarLengthDeprecated.The color bar length. -
outerGap
private int outerGapDeprecated.The amount of blank space around the colorbar.
-
-
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
public void 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
public void setMaximumValue(double value) Deprecated.Sets the maximum value.- Parameters:
value
- the maximum value.
-
setMinimumValue
public void setMinimumValue(double value) 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.
-
calculateBarThickness
Deprecated.Calculates the bar thickness.- Parameters:
plotArea
- the plot area.edge
- the location.- Returns:
- The thickness.
-
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
public int hashCode()Deprecated.Returns a hash code for this object.
-
XYPlot
andXYBlockRenderer
.