All Packages Class Hierarchy This Package Previous Next Index
Class jclass.chart.JCChartStyle
java.lang.Object
|
+----jclass.chart.JCChartStyle
- public class JCChartStyle
- extends Object
- implements JCSerializable
Represents a style for rendering a
chart group. It controls fill styles,
symbol styles and line styles.
Properties
Name |
Method |
LineStyle
|
The LineStyle property controls the appearance of lines in chart. See
JCLineStyle for additional properties.
|
LinePattern
|
The LinePattern property dictates the pattern used to draw a line.
Valid values include JCLineStyle.NONE, JCLineStyle.SOLID,
JCLineStyle.LONG_DASH, JCLineStyle.SHORT_DASH, JCLineStyle.LSL_DASH
and JCLineStyle.DASH_DOT. Note: Since Java does not support line
patterns, this property is currently not supported. Default value is JCLineStyle.SOLID.
|
LineWidth
|
The LineWidth property controls the line width. Note: Since Java
only supports width-1 lines, this property is currently not supported. Default value is 1.
|
LineColor
|
The LineColor property determines the color used to draw a line. Default value is generated.
|
SymbolStyle
|
The SymbolStyle property controls the symbol that represents
an individual point. See JCSymbolStyle for additional properties.
Note that All JCChartStyle properties of the format Symbol* are
virtual properties that map to properties of JCSymbolStyle.
|
SymbolShape
|
The SymbolShape property determines the type of symbol that will be
drawn. Valid values include JCSymbolStyle.NONE, JCSymbolStyle.DOT,
JCSymbolStyle.BOX, JCSymbolStyle.TRIANGLE, JCSymbolStyle.DIAMOND,
JCSymbolStyle.STAR, JCSymbolStyle.VERT_LINE, JCSymbolStyle.HORIZ_LINE,
JCSymbolStyle.CROSS, JCSymbolStyle.CIRCLE and JCSymbolStyle.SQUARE. Default value is generated.
|
SymbolColor
|
The SymbolColor property determines color used to paint the symbol. Default value is generated.
|
SymbolSize
|
The SymbolSize property determines color used to paint the symbol. Default value is 6.
|
SymbolCustomShape
|
The SymbolCustomShape property contains an object derived from JCShape
that is used to draw points. See JCShape for details. Default value is null.
|
FillStyle
|
The FillStyle property controls the appearance of filled areas in
chart. See JCFillStyle for additional properties.
Note that All JCChartStyle properties of the format Fill* are
virtual properties that map to properties of JCFillStyle.
|
FillColor
|
The FillColor property determines the color used to fill regions
in chart. Default value is generated.
|
FillPattern
|
The FillPattern property determines the fill pattern used to fill
regions in chart. Note: Since Java does not support patterned fills,
this property is not supported. Default value is JCLineStyle.SOLID.
|
FillImage
|
The FillImage property determines the
image used to paint the fill region of bar charts. Default value is null.
|
- See Also:
- JCFillStyle, JCSymbolStyle, JCLineStyle
-
JCChartStyle()
- Default constructor for chart style objects.
-
JCChartStyle(JCLineStyle, JCFillStyle, JCSymbolStyle)
- Constructor for chart style objects
-
getFillColor()
- Gets the value of the FillColor property.
-
getFillImage()
- Gets the value of the FillImage property.
-
getFillPattern()
- Gets the value of the FillPattern property.
-
getFillStyle()
- Gets the JCFillStyle property, which controls how fills are
drawn.
-
getLineColor()
- Gets the value of the LineColor property.
-
getLinePattern()
- Gets the value of the LinePattern property.
-
getLineStyle()
- Gets the JCLineStyle property, which controls how lines are
drawn.
-
getLineWidth()
- Gets the value of the LineWidth property.
-
getSymbolColor()
- Gets the value of the SymbolColor property
The SymbolColor property determines color used to paint the symbol.
-
getSymbolCustomShape()
- Gets the value of the SymbolCustomShape property.
-
getSymbolShape()
- Gets the value of the SymbolShape property.
-
getSymbolSize()
- Gets the value of the SymbolSize property.
-
getSymbolStyle()
- Gets the SymbolStyle property
The SymbolStyle property controls the symbol that represents
an individual point.
-
makeDefault(JCChart)
- Creates a default chart style
-
resetDefaults()
- Internal method to reset the default color indices for
chart style objects.
-
setFillColor(Color)
- Sets the value of the FillColor property.
-
setFillImage(Image)
- Sets the value of the FillImage property.
-
setFillPattern(int)
- Sets the value of the FillPattern property.
-
setFillStyle(JCFillStyle)
- Sets the JCFillStyle property, which controls how fills are
drawn.
-
setLineColor(Color)
- Sets the value of the LineColor property.
-
setLinePattern(int)
- Sets the value of the LinePattern property.
-
setLineStyle(JCLineStyle)
- Sets the JCLineStyle property, which controls how lines are
drawn.
-
setLineWidth(int)
- Sets the value of the LineWidth property.
-
setSymbolColor(Color)
- Sets the value of the SymbolColor property
The SymbolColor property determines color used to paint the symbol.
-
setSymbolCustomShape(JCShape)
- Sets the value of the SymbolCustomShape property.
-
setSymbolShape(int)
- Sets the value of the SymbolShape property.
-
setSymbolSize(int)
- Sets the value of the SymbolSize property.
-
setSymbolStyle(JCSymbolStyle)
- Gets the SymbolStyle property
The SymbolStyle property controls the symbol that represents
an individual point.
JCChartStyle
public JCChartStyle(JCLineStyle ls,
JCFillStyle fs,
JCSymbolStyle ps)
- Constructor for chart style objects
- Parameters:
- ls - JCLineStyle instance representing the line style for
this chart style object.
- fs - JCFillStyle instance representing the fill style for
this chart style object.
- ps - JCSymbolStyle instance representing the symbol style for
this chart style object.
JCChartStyle
public JCChartStyle()
- Default constructor for chart style objects. Creates default
line style, fill style and symbol style objects.
makeDefault
public static JCChartStyle makeDefault(JCChart c)
- Creates a default chart style
- Returns:
- JCChartStyle object with default line, fill and
symbol styles. The defaults are cycled, so consecutive calls
will return different chart styles.
getLineStyle
public JCLineStyle getLineStyle()
- Gets the JCLineStyle property, which controls how lines are
drawn.
- Returns:
- JCLineStyle instance representing the line drawing style
setLineStyle
public synchronized void setLineStyle(JCLineStyle ls)
- Sets the JCLineStyle property, which controls how lines are
drawn.
- Parameters:
- ls - JCLineStyle instance representing the line drawing style
getLinePattern
public int getLinePattern()
- Gets the value of the LinePattern property.
The LinePattern property dictates the pattern used to draw a line.
Valid values include JCLineStyle.NONE, JCLineStyle.SOLID,
JCLineStyle.LONG_DASH, JCLineStyle.SHORT_DASH, JCLineStyle.LSL_DASH
and JCLineStyle.DASH_DOT. Note: Since Java does not support line
patterns, this property is currently not supported
- Returns:
- line pattern enum
setLinePattern
public void setLinePattern(int p)
- Sets the value of the LinePattern property.
The LinePattern property dictates the pattern used to draw a line.
Valid values include JCLineStyle.NONE, JCLineStyle.SOLID,
JCLineStyle.LONG_DASH, JCLineStyle.SHORT_DASH, JCLineStyle.LSL_DASH
and JCLineStyle.DASH_DOT. Note: Since Java does not support line
patterns, this property is currently not supported
- Parameters:
- pline - pattern enum
getLineWidth
public int getLineWidth()
- Gets the value of the LineWidth property.
The LineWidth property controls the line width. Note: Since Java
only supports width-1 lines, this property is currently not supported
- Returns:
- line width
setLineWidth
public synchronized void setLineWidth(int lw)
- Sets the value of the LineWidth property.
The LineWidth property controls the line width. Note: Since Java
only supports width-1 lines, this property is currently not supported
- Parameters:
- lw - line width
getLineColor
public Color getLineColor()
- Gets the value of the LineColor property.
The LineColor property determines the color used to draw a line.
- Returns:
- line color
setLineColor
public synchronized void setLineColor(Color lc)
- Sets the value of the LineColor property.
The LineColor property determines the color used to draw a line.
- Parameters:
- lc - line color
getSymbolStyle
public JCSymbolStyle getSymbolStyle()
- Gets the SymbolStyle property
The SymbolStyle property controls the symbol that represents
an individual point.
- Returns:
- JCSymbolStyle instance representing the symbol drawing style
setSymbolStyle
public synchronized void setSymbolStyle(JCSymbolStyle ps)
- Gets the SymbolStyle property
The SymbolStyle property controls the symbol that represents
an individual point.
- Parameters:
- ps - JCSymbolStyle instance representing the symbol drawing style
getSymbolShape
public int getSymbolShape()
- Gets the value of the SymbolShape property.
The SymbolShape property determines the type of symbol that will be
drawn. Valid values include JCSymbolStyle.NONE, JCSymbolStyle.DOT,
JCSymbolStyle.BOX, JCSymbolStyle.TRIANGLE, JCSymbolStyle.DIAMOND,
JCSymbolStyle.STAR, JCSymbolStyle.VERT_LINE, JCSymbolStyle.HORIZ_LINE,
JCSymbolStyle.CROSS, JCSymbolStyle.CIRCLE and JCSymbolStyle.SQUARE
- Returns:
- symbol shape
setSymbolShape
public synchronized void setSymbolShape(int st)
- Sets the value of the SymbolShape property.
The SymbolShape property determines the type of symbol that will be
drawn. Valid values include JCSymbolStyle.NONE, JCSymbolStyle.DOT,
JCSymbolStyle.BOX, JCSymbolStyle.TRIANGLE, JCSymbolStyle.DIAMOND,
JCSymbolStyle.STAR, JCSymbolStyle.VERT_LINE, JCSymbolStyle.HORIZ_LINE,
JCSymbolStyle.CROSS, JCSymbolStyle.CIRCLE and JCSymbolStyle.SQUARE
- Parameters:
- st - symbol shape
getSymbolColor
public Color getSymbolColor()
- Gets the value of the SymbolColor property
The SymbolColor property determines color used to paint the symbol.
- Returns:
- symbol color
setSymbolColor
public synchronized void setSymbolColor(Color sc)
- Sets the value of the SymbolColor property
The SymbolColor property determines color used to paint the symbol.
- Parameters:
- sc - symbol color
getSymbolSize
public int getSymbolSize()
- Gets the value of the SymbolSize property.
The SymbolSize property determines color used to paint the symbol.
- Returns:
- symbol size
setSymbolSize
public void setSymbolSize(int sz)
- Sets the value of the SymbolSize property.
The SymbolSize property determines color used to paint the symbol.
- Parameters:
- sz - symbol size
getSymbolCustomShape
public JCShape getSymbolCustomShape()
- Gets the value of the SymbolCustomShape property.
The SymbolCustomShape property contains an object derived from JCShape
that is used to draw points. See JCShape for details.
- Returns:
- custom shape object
setSymbolCustomShape
public synchronized void setSymbolCustomShape(JCShape cs)
- Sets the value of the SymbolCustomShape property.
The SymbolCustomShape property contains an object derived from JCShape
that is used to draw points. See JCShape for details.
- Parameters:
- cs - custom shape object
getFillStyle
public JCFillStyle getFillStyle()
- Gets the JCFillStyle property, which controls how fills are
drawn.
- Returns:
- JCFillStyle instance representing the fill drawing style
setFillStyle
public synchronized void setFillStyle(JCFillStyle fs)
- Sets the JCFillStyle property, which controls how fills are
drawn.
- Parameters:
- fs - JCFillStyle instance representing the fill drawing style
getFillColor
public Color getFillColor()
- Gets the value of the FillColor property.
The FillColor property determines the color used to fill regions
in chart.
- Returns:
- fill color.
setFillColor
public synchronized void setFillColor(Color fc)
- Sets the value of the FillColor property.
The FillColor property determines the color used to fill regions
in chart.
- Parameters:
- fc - fill color.
getFillPattern
public int getFillPattern()
- Gets the value of the FillPattern property.
The FillPattern property determines the fill pattern used to fill
regions in chart. Note: Since Java does not support patterned fills,
this property is not supported.
- Returns:
- fill pattern
setFillPattern
public synchronized void setFillPattern(int fp)
- Sets the value of the FillPattern property.
The FillPattern property determines the fill pattern used to fill
regions in chart. Note: Since Java does not support patterned fills,
this property is not supported.
- Parameters:
- fp - fill pattern
getFillImage
public Image getFillImage()
- Gets the value of the FillImage property.
The FillImage property determines the
image used to paint the fill region of bar charts.
- Returns:
- fill image.
setFillImage
public synchronized void setFillImage(Image fi)
- Sets the value of the FillImage property.
The FillImage property determines the
image used to paint the fill region of bar charts.
- Parameters:
- fi - fill image.
resetDefaults
public static void resetDefaults()
- Internal method to reset the default color indices for
chart style objects.
All Packages Class Hierarchy This Package Previous Next Index