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, HTMLHandler
Represents a style for rendering a
data series. It controls fill styles,
symbol styles and line styles.
Properties
Name |
Description |
FillColor
|
The FillColor property determines the color used to fill regions
in chart. Default value is generated.
|
FillImage
|
The FillImage property determines the
image used to paint the fill region of bar charts. Default value is null.
|
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 JCFillStyle.SOLID.
|
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.
|
LineColor
|
The LineColor property determines the color used to draw a line. Default value is generated.
|
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.
|
LineStyle
|
The LineStyle property controls the appearance of lines in chart. See
JCLineStyle for additional properties.
|
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.
|
SymbolColor
|
The SymbolColor property determines the color used to paint the symbol. Default value is generated.
|
SymbolCustomShape
|
The SymbolCustomShape property contains an object derived from JCShape
that is used to draw points. See JCShape for details. Default value is null.
|
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.
|
SymbolSize
|
The SymbolSize property determines the size of the symbol. Default value is 6.
|
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.
|
- See Also:
- JCFillStyle, JCLineStyle, JCSymbolStyle
-
JCChartStyle()
- Default constructor for chart style objects.
-
JCChartStyle(JCLineStyle, JCFillStyle, JCSymbolStyle)
- Constructor for chart style objects
-
addParent(Changeable)
- Add a parent to the list of parents of this JCChartStyle object.
-
clearParents()
- Clears the list of parents of this JCChartStyle object.
-
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.
-
loadParams(String, JCChart)
- Load JCChart parameters from HTML file
-
makeDefault(JCChart)
- Creates a default chart style
-
makeDefault(JCChart, Changeable)
- Creates a default chart style
-
makeDefault(JCChart, Changeable, boolean)
- Creates a default chart style
-
removeParent(Changeable)
- Removes a parent from the list of parents of this JCChartStyle object.
-
saveParams(String, JCChart)
- Save JCChart parameters as HTML tags
-
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
- Parameters:
- c - JCChart instance that is the parent of the created JCChartStyle
object
- Returns:
- JCChartStyle object with default line, fill and
symbol styles. The defaults are cycled, so consecutive calls
will return different chart styles.
makeDefault
public static JCChartStyle makeDefault(JCChart c,
Changeable parent)
- Creates a default chart style
- Parameters:
- c - JCChart instance that this JCChartStyle will be used in
- parent - an instance of Changeable that will be the parent of
the created JCChartStyle object.
- Returns:
- JCChartStyle object with default line, fill and
symbol styles. The defaults are cycled, so consecutive calls
will return different chart styles.
makeDefault
public static JCChartStyle makeDefault(JCChart c,
Changeable parent,
boolean other)
- Creates a default chart style
- Parameters:
- c - JCChart instance that this JCChartStyle will be used in
- parent - an instance of Changeable that will be the parent of
the created JCChartStyle object.
- other - true if creating from the pie chart other style. fals
otherwise.
- 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 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 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 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 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 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 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 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 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 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 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 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.
addParent
public void addParent(Changeable parent)
- Add a parent to the list of parents of this JCChartStyle object.
- Parameters:
- parent - the Changeable object to add to the parent list.
removeParent
public void removeParent(Changeable parent)
- Removes a parent from the list of parents of this JCChartStyle object.
- Parameters:
- parent - the Changeable object to remove from the parent list.
clearParents
public void clearParents()
- Clears the list of parents of this JCChartStyle object.
saveParams
public void saveParams(String name,
JCChart comp)
- Save JCChart parameters as HTML tags
- Parameters:
- name - the PARAM NAME
- chart - the JCChart component
loadParams
public void loadParams(String name,
JCChart comp)
- Load JCChart parameters from HTML file
- Parameters:
- name - the PARAM NAME
- chart - the JCChart component
All Packages Class Hierarchy This Package Previous Next Index