|
|||||||||
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
)
Field Summary | |
---|---|
protected Float |
backgroundAlpha
Holds the background transparency. |
protected Color |
backgroundPaint
Holds the background color of the plot. |
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 . |
protected void |
applyToCategoryPlot(XYPlot plot)
Applies style properties which can only be applied to XYPlot . |
void |
applyToPlot(Plot plot)
Applies the style to a specific plot. |
Float |
getBackgroundAlpha()
Returns the transparency of the background. |
Color |
getBackgroundPaint()
Returns the background color of the plot. |
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 |
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 |
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
Constructor Detail |
---|
public ChartPlotStyle()
Method Detail |
---|
public 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 void applyToPlot(Plot plot)
plot
- a plotprotected void applyToCategoryPlot(CategoryPlot plot)
CategoryPlot
.applyToPlot(Plot)
.
plot
- a CategoryPlot
protected void applyToCategoryPlot(XYPlot plot)
XYPlot
.applyToPlot(Plot)
.
plot
- a XYPlot
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |