|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectschmitzm.jfree.chart.style.ChartPlotStyle
public class ChartPlotStyle
This class defines the rendering style the charts plot(s). The following properties are available:
XYPlot
and CategoryPlot
)XYPlot
and CategoryPlot
)XYPlot
and CategoryPlot
)XYPlot
and CategoryPlot
)
Field Summary | |
---|---|
protected Float |
backgroundAlpha
Holds the background transparency. |
protected Color |
backgroundPaint
Holds the background color of the plot. |
protected boolean |
centerOriginSymetrically
Boolean determining whether the plot will be centered around the axis origin and will have extends: Xmax = -Xmin and Ymax = -Ymin |
protected Color |
crosshairPaint
Holds the color of the range grid line. |
protected Boolean |
crosshairVisible
Holds whether crosshair lines are visible (on 0/0). |
protected Color |
domainGridlinePaint
Holds the color of the domain grid line. |
protected Boolean |
domainGridlineVisible
Holds whether the domain grid line is visible. |
protected Float |
foregroundAlpha
Holds the foreground transparency. |
protected RectangleInsets |
insets
Holds the inner margins of the plot. |
protected Category |
LOGGER
Logger for this class |
protected Color |
rangeGridlinePaint
Holds the color of the range grid line. |
protected Boolean |
rangeGridlineVisible
Holds whether the range grid line is visible. |
Constructor Summary | |
---|---|
ChartPlotStyle()
Creates a new style with default values. |
Method Summary | |
---|---|
protected void |
applyToCategoryPlot(CategoryPlot plot)
Applies style properties which can only be applied to CategoryPlot . |
void |
applyToPlot(Plot plot)
Applies the style to a specific plot. |
protected void |
applyToXYPlot(XYPlot plot)
Applies style properties which can only be applied to XYPlot . |
ChartPlotStyle |
copy()
Creates a (deep) clone of this style. |
ChartPlotStyle |
copyTo(ChartPlotStyle dest)
Copies all properties of this style to another one. |
Float |
getBackgroundAlpha()
Returns the transparency of the background. |
Color |
getBackgroundPaint()
Returns the background color of the plot. |
Color |
getCrosshairPaint()
Returns the color of the plot's crosshair lines. |
Color |
getDomainGridlinePaint()
Returns the color of the plot's domain grid line. |
Float |
getForegroundAlpha()
Returns the transparency of the foreground. |
RectangleInsets |
getInsets()
Returns the inner margin of the plot. |
Color |
getRangeGridlinePaint()
Returns the color of the plot's range grid line. |
boolean |
isCenterOriginSymetrically()
Returns whether the axis origin is centered in the plot. |
Boolean |
isCrosshairVisible()
Returns whether the plot's crosshair lines are visible. |
Boolean |
isDomainGridlineVisible()
Returns whether the plot's domain grid line is visible. |
Boolean |
isRangeGridlineVisible()
Returns whether the plot's range grid line is visible. |
void |
setBackgroundAlpha(Float alpha)
Sets the transparency of the background. |
void |
setBackgroundPaint(Color color)
Sets the background color of the plot. |
void |
setCenterOriginSymetrically(boolean originSym)
Sets whether the axis origin is centered in the plot. |
void |
setCrosshairPaint(Color color)
Sets the color of the plot's crosshair lines. |
void |
setCrosshairVisible(Boolean visible)
Sets whether the plot's crosshair lines are visible. |
void |
setDomainGridlinePaint(Color color)
Sets the color of the plot's domain grid line. |
void |
setDomainGridlineVisible(Boolean visible)
Sets whether the plot's domain grid line is visible. |
void |
setForegroundAlpha(Float alpha)
Sets the transparency of the foreground. |
void |
setInsets(RectangleInsets insets)
Sets the inner margin of the plot. |
void |
setRangeGridlinePaint(Color color)
Sets the color of the plot's range grid line. |
void |
setRangeGridlineVisible(Boolean visible)
Sets whether the plot's range grid line is visible. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final Category LOGGER
protected RectangleInsets insets
protected Float foregroundAlpha
protected Color backgroundPaint
protected Float backgroundAlpha
protected Boolean domainGridlineVisible
protected Color domainGridlinePaint
protected Boolean rangeGridlineVisible
protected Color rangeGridlinePaint
protected Boolean crosshairVisible
protected Color crosshairPaint
protected boolean centerOriginSymetrically
Constructor Detail |
---|
public ChartPlotStyle()
Method Detail |
---|
public ChartPlotStyle copy()
copy
in interface Copyable<ChartPlotStyle>
public ChartPlotStyle copyTo(ChartPlotStyle dest)
copyTo
in interface Copyable<ChartPlotStyle>
dest
- destination object (if null
the copy is created by
copy()
)
dest
or the new instancepublic RectangleInsets getInsets()
public void setInsets(RectangleInsets insets)
public Float getForegroundAlpha()
null
if no specific transparency is set for the plotpublic void setForegroundAlpha(Float alpha)
alpha
- transparency value (0..1); can be null
to reset to a
non-specific valuepublic Float getBackgroundAlpha()
null
if no specific transparency is set for the plotpublic void setBackgroundAlpha(Float alpha)
alpha
- transparency value (0..1); can be null
to reset to a
non-specific valuepublic Color getBackgroundPaint()
null
if no specific color is setpublic void setBackgroundPaint(Color color)
color
- background color for the plot (can be null
to reset to
a non-specific color)public Boolean isDomainGridlineVisible()
null
if property is not set for the plotpublic void setDomainGridlineVisible(Boolean visible)
visible
- indicates the visibility of the grid line (can be null
to reset to a non-specific property)public Color getDomainGridlinePaint()
null
if no specific color is setpublic void setDomainGridlinePaint(Color color)
color
- color for the domain grid line (can be null
to reset
to a non-specific color)public Boolean isRangeGridlineVisible()
null
if property is not set for the plotpublic void setRangeGridlineVisible(Boolean visible)
visible
- indicates the visibility of the grid line (can be null
to reset to a non-specific property)public Color getRangeGridlinePaint()
null
if no specific color is setpublic void setRangeGridlinePaint(Color color)
color
- color for the range grid line (can be null
to reset to
a non-specific color)public Boolean isCrosshairVisible()
null
if property is not set for the plotpublic void setCrosshairVisible(Boolean visible)
visible
- indicates the visibility of the crosshair lines (can be
null
to reset to a non-specific property)public Color getCrosshairPaint()
null
if no specific color is setpublic void setCrosshairPaint(Color color)
color
- color for the crosshair lines (can be null
to reset to
a non-specific color)public void applyToPlot(Plot plot)
plot
- a plotprotected void applyToCategoryPlot(CategoryPlot plot)
CategoryPlot
.applyToPlot(Plot)
.
plot
- a CategoryPlot
protected void applyToXYPlot(XYPlot plot)
XYPlot
.applyToPlot(Plot)
.
plot
- a XYPlot
public void setCenterOriginSymetrically(boolean originSym)
originSym
- indicated whether the axis origin should
be centered in the plotpublic boolean isCenterOriginSymetrically()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |