|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jidesoft.chart.style.ChartStyle
public class ChartStyle
Contains style information for a point by combining PointStyle, LineStyle and BarStyle.
Field Summary | |
---|---|
static ChartStyle |
DEFAULT_STYLE
|
Constructor Summary | |
---|---|
ChartStyle()
Create a default ChartStyle |
|
ChartStyle(ChartStyle style)
Copy constructor for a ChartStyle |
|
ChartStyle(Color color)
Constructs a style for showing the lines only |
|
ChartStyle(Color color,
boolean pointsVisible,
boolean linesVisible)
Constructs a style for showing lines and/or points of the same color |
|
ChartStyle(Color color,
boolean pointsVisible,
boolean linesVisible,
boolean barsVisible)
Constructs a style for showing lines, points and bars of the same color |
|
ChartStyle(Color pointColor,
PointShape shape)
Constructs a style for showing the points only |
|
ChartStyle(Color pointColor,
PointShape shape,
Color lineColor)
Constructs a style for showing lines and points with specified colors |
|
ChartStyle(Color pointColor,
PointShape shape,
int pointSize)
Constructs a style for showing the points only |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
Color |
getBarColor()
Returns the color of bars for this style |
Orientation |
getBarOrientation()
Returns the current orientation of the bars |
Paint |
getBarPaint()
Returns the paint used for rendering bars or filling the segments of a pie chart |
BarStyle |
getBarStyle()
Returns the style to use for rendering the bars of a bar chart |
Integer |
getBarWidth()
Returns the preferred width of bars according to this style |
Double |
getBarWidthProportion()
|
Color |
getLineColor()
Returns the currently specified line color |
Paint |
getLineFill()
The paint to use in area charts when filling from the line to the axis |
LineFillExtent |
getLineFillExtent()
|
Orientation |
getLineFillOrientation()
|
Paint |
getLinePaint()
Deprecated. in favour of getLineFill() Note that this method will be removed some time after release 2.10 |
BasicStroke |
getLineStroke()
Returns the current stroke used for lines |
LineStyle |
getLineStyle()
Returns the style to use when rendering lines |
int |
getLineWidth()
Returns the width of lines according to the style |
float |
getPieExplosionRatio()
Returns the amount by which exploded segments are displaced when selected |
float |
getPieOffsetAngle()
Returns the angular offset of the pie chart in degrees |
Color |
getPointColor()
Returns the color to use when rendering points |
PointShape |
getPointShape()
Returns the current shape of points |
int |
getPointSize()
Returns the currently specified point size |
PointStyle |
getPointStyle()
Returns the style used for rendering points |
PointShape |
getShape()
Deprecated. in favour of getPointShape() |
int |
hashCode()
|
boolean |
isBarsVisible()
Returns whether bars are visible in this style |
boolean |
isBarVisible()
Deprecated. in favour of isBarsVisible |
boolean |
isLinesVisible()
Returns whether lines are currently visible |
boolean |
isPieSegmentsAlwaysExploded()
Returns a boolean to indicate whether pie segments are exploded, regardless of selection |
boolean |
isPointsVisible()
Returns whether points are currently visible |
void |
setBarColor(Color color)
Specify the bar color for rendering bars |
void |
setBarOrientation(Orientation orientation)
Specify the orientation of bars when drawing bar charts |
void |
setBarPaint(Paint paint)
Specify the bar paint for rendering bars or filling the segments of a pie chart |
void |
setBarStyle(BarStyle barStyle)
Set the style to use when rendering the bars of a bar chart |
void |
setBarsVisible(boolean visible)
Specify whether bars are visible in this style (that is, the bars of a bar chart) |
void |
setBarVisible(boolean visible)
Deprecated. please use setBarsVisible() instead |
void |
setBarWidth(Integer barWidth)
Specify the width of bars |
void |
setBarWidthProportion(Double barWidthProportion)
|
void |
setLineColor(Color lineColor)
Sets the color of lines used in this style |
void |
setLineFill(Paint fill)
Specify the paint to use in area charts when filling from the line to the axis |
void |
setLineFillExtent(LineFillExtent extent)
|
void |
setLineFillOrientation(Orientation orientation)
|
void |
setLineStroke(BasicStroke stroke)
Set the stroke to use for lines |
void |
setLineStyle(LineStyle lineStyle)
Specify the style to use when rendering lines |
void |
setLinesVisible(boolean linesVisible)
Sets the visibility of lines in this style |
void |
setLineWidth(int width)
Set the width of lines |
void |
setPieExplosionRatio(float explosionRatio)
Specifies the amount by which exploded segments are displaced when selected |
void |
setPieOffsetAngle(float offsetAngle)
Specifies the angular offset of the pie chart in degrees |
void |
setPieSegmentsAlwaysExploded(boolean alwaysExploded)
Specify whether pie segments should always be exploded, regardless of selection |
void |
setPointColor(Color color)
Set the Color used for painting points |
void |
setPointShape(PointShape newShape)
Set the shape of points used by this style |
void |
setPointSize(int newSize)
Set the size of points (in pixels) |
void |
setPointStyle(PointStyle pointStyle)
Specify the style to use when rendering points |
void |
setPointsVisible(boolean pointsVisible)
Determine whether points are visible in this style |
void |
setShape(PointShape shape)
Deprecated. in favour of setPointShape() |
String |
toString()
|
ChartStyle |
withBars()
A chaining style method that specifies that we want to use bars only |
ChartStyle |
withBars(Paint barPaint)
A chaining style method that specifies that we want to use bars only, and also allows you to specify the fill for the bars |
ChartStyle |
withLineFill(Paint lineFill)
A chaining style method that specifies to use lines, but also using the supplied line fill. |
ChartStyle |
withLines()
A chaining style method that specifies that we want to use lines only |
ChartStyle |
withNothing()
A chaining style method that specifies that we want to display none of points, lines or bars. |
ChartStyle |
withPoints()
A chaining style method that specifies that we want to use points only |
ChartStyle |
withPointsAndLines()
A chaining style method that specifies that we want to use points and lines |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final ChartStyle DEFAULT_STYLE
Constructor Detail |
---|
public ChartStyle()
public ChartStyle(ChartStyle style)
style
- the chart style object to copypublic ChartStyle(Color color)
color
- the color to use for the linespublic ChartStyle(Color pointColor, PointShape shape)
pointColor
- the color to use for the pointsshape
- the shape to use for the pointspublic ChartStyle(Color pointColor, PointShape shape, int pointSize)
pointColor
- the color to use for the pointsshape
- the shape to use for the pointspointSize
- the size of the pointspublic ChartStyle(Color color, boolean pointsVisible, boolean linesVisible)
color
- the color to use for points, lines and bars as appropriatepointsVisible
- whether points should be visiblelinesVisible
- whether lines should be visiblepublic ChartStyle(Color color, boolean pointsVisible, boolean linesVisible, boolean barsVisible)
color
- the color to use for points, lines and bars as appropriatepointsVisible
- whether points should be visiblelinesVisible
- whether lines should be visiblebarsVisible
- whether bars should be visiblepublic ChartStyle(Color pointColor, PointShape shape, Color lineColor)
pointColor
- the color to use for pointsshape
- the (suggested) shape to use for pointslineColor
- the color to use for linesMethod Detail |
---|
public ChartStyle withPoints()
public ChartStyle withLines()
public ChartStyle withLineFill(Paint lineFill)
public ChartStyle withNothing()
public ChartStyle withBars()
public ChartStyle withBars(Paint barPaint)
public ChartStyle withPointsAndLines()
public Color getPointColor()
public void setPointColor(Color color)
color
- the color to use for the pointspublic int getPointSize()
public void setPointSize(int newSize)
newSize
- the new sizepublic PointShape getPointShape()
public void setPointShape(PointShape newShape)
newShape
- the new shape of pointspublic Color getLineColor()
public void setLineColor(Color lineColor)
lineColor
- the new line colorpublic boolean isLinesVisible()
public void setLinesVisible(boolean linesVisible)
linesVisible
- whether lines should be visiblepublic boolean isPointsVisible()
public void setPointsVisible(boolean pointsVisible)
pointsVisible
- specifies whether points should be rendered for this stylepublic boolean isBarVisible()
public boolean isBarsVisible()
public void setBarVisible(boolean visible)
setBarsVisible()
instead
visible
- whether bars should be visiblepublic void setBarsVisible(boolean visible)
visible
- state whether bars should be renderedpublic Color getBarColor()
public Paint getBarPaint()
public void setBarColor(Color color)
color
- the new colorpublic void setBarPaint(Paint paint)
paint
- the paint to use when rendering barspublic Integer getBarWidth()
public void setBarWidth(Integer barWidth)
barWidth
- the width of bars in pixelspublic Double getBarWidthProportion()
public void setBarWidthProportion(Double barWidthProportion)
public PointShape getShape()
getPointShape()
public void setShape(PointShape shape)
setPointShape()
shape
- the shape to usepublic LineStyle getLineStyle()
public void setLineStyle(LineStyle lineStyle)
lineStyle
- the new line stylepublic BarStyle getBarStyle()
public void setBarStyle(BarStyle barStyle)
barStyle
- the style to use for the rendering of barspublic Paint getLinePaint()
public Paint getLineFill()
public void setLineFill(Paint fill)
fill
- the paint to usepublic Orientation getLineFillOrientation()
public void setLineFillOrientation(Orientation orientation)
public LineFillExtent getLineFillExtent()
public void setLineFillExtent(LineFillExtent extent)
public int getLineWidth()
public void setLineWidth(int width)
width
- the width in pixelspublic void setLineStroke(BasicStroke stroke)
stroke
- the stroke to use for linespublic BasicStroke getLineStroke()
public PointStyle getPointStyle()
public void setPointStyle(PointStyle pointStyle)
pointStyle
- the new point stylepublic Orientation getBarOrientation()
public void setBarOrientation(Orientation orientation)
orientation
- the orientation of the bars (horizontal or vertical)public float getPieOffsetAngle()
public void setPieOffsetAngle(float offsetAngle)
offsetAngle
- the angular offset of the pie chart in degreespublic float getPieExplosionRatio()
public void setPieExplosionRatio(float explosionRatio)
explosionRatio
- the amount by which exploded segments are displaced when selectedpublic void setPieSegmentsAlwaysExploded(boolean alwaysExploded)
alwaysExploded
- whether to explode segments regardless of selectionpublic boolean isPieSegmentsAlwaysExploded()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |