|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.klg.jclass.chart.JCChartStyle
Represents a style for rendering a data series. It controls fill styles, symbol styles, and line styles.
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. Default value is JCFillStyle.SOLID .
|
FillStyle
|
The FillStyle property controls the appearance of filled areas in
chart. See JCFillStyle for additional properties.Note: 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 . 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.
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: all JCChartStyle properties of the format
Symbol* are virtual properties that map to properties of
JCSymbolStyle .
|
JCFillStyle
,
JCLineStyle
,
JCSymbolStyle
,
Serialized FormField Summary | |
protected com.klg.jclass.chart.JCFillStyle |
fillStyle
|
protected com.klg.jclass.chart.JCLineStyle |
lineStyle
|
protected Vector |
parents
|
protected com.klg.jclass.chart.JCSymbolStyle |
symbolStyle
|
Constructor Summary | |
JCChartStyle()
Default constructor for chart style objects. |
|
JCChartStyle(com.klg.jclass.chart.JCLineStyle ls,
com.klg.jclass.chart.JCFillStyle fs,
com.klg.jclass.chart.JCSymbolStyle ps)
Constructor for chart style objects. |
Method Summary | |
void |
addParent(com.klg.jclass.chart.Changeable parent)
Adds a parent to the list of parents for the JCChartStyle
object. |
void |
clearParents()
Clears the list of parents of this JCChartStyle object. |
Color |
getFillBackground()
Gets the value of the FillBackground property. |
Color |
getFillColor()
Gets the value of the FillColor property. |
Image |
getFillImage()
Gets the value of the FillImage property. |
int |
getFillPattern()
Gets the value of the FillPattern property. |
com.klg.jclass.chart.JCFillStyle |
getFillStyle()
Gets the JCFillStyle property, which controls how fills are
drawn. |
int |
getLineCap()
Gets the value of the LineCap property. |
Color |
getLineColor()
Gets the value of the LineColor property. |
int |
getLineJoin()
Gets the value of the LineJoin property. |
int |
getLinePattern()
Gets the value of the LinePattern property. |
com.klg.jclass.chart.JCLineStyle |
getLineStyle()
Gets the JCLineStyle property, which controls how lines are
drawn. |
int |
getLineWidth()
Gets the value of the LineWidth property. |
Color |
getSymbolColor()
Gets the value of the SymbolColor property. |
com.klg.jclass.chart.JCShape |
getSymbolCustomShape()
Gets the value of the SymbolCustomShape property. |
int |
getSymbolShape()
Gets the value of the SymbolShape property. |
int |
getSymbolSize()
Gets the value of the SymbolSize property. |
com.klg.jclass.chart.JCSymbolStyle |
getSymbolStyle()
Gets the SymbolStyle property. |
static com.klg.jclass.chart.JCChartStyle |
makeDefault(com.klg.jclass.chart.JCChart c)
Creates a default chart style. |
static com.klg.jclass.chart.JCChartStyle |
makeDefault(com.klg.jclass.chart.JCChart c,
com.klg.jclass.chart.Changeable parent)
Creates a default chart style. |
static com.klg.jclass.chart.JCChartStyle |
makeDefault(com.klg.jclass.chart.JCChart c,
com.klg.jclass.chart.Changeable parent,
boolean other)
Creates a default chart style. |
void |
removeParent(com.klg.jclass.chart.Changeable parent)
Removes a parent from the list of parents for the JCChartStyle
object. |
void |
setFillBackground(Color fc)
Sets the value of the FillBackground property. |
void |
setFillColor(Color fc)
Sets the value of the FillColor property. |
void |
setFillImage(Image fi)
Sets the value of the FillImage property. |
void |
setFillPattern(int fp)
Sets the value of the FillPattern property. |
void |
setFillStyle(com.klg.jclass.chart.JCFillStyle fs)
Sets the JCFillStyle property, which controls how fills are
drawn. |
void |
setLineCap(int c)
Sets the value of the LineCap property. |
void |
setLineColor(Color lc)
Sets the value of the LineColor property. |
void |
setLineJoin(int j)
Sets the value of the LineJoin property. |
void |
setLinePattern(int p)
Sets the value of the LinePattern property. |
void |
setLineStyle(com.klg.jclass.chart.JCLineStyle ls)
Sets the JCLineStyle property, which controls how lines are
drawn. |
void |
setLineWidth(int lw)
Sets the value of the LineWidth property. |
void |
setSymbolColor(Color sc)
Sets the value of the SymbolColor property. |
void |
setSymbolCustomShape(com.klg.jclass.chart.JCShape cs)
Sets the value of the SymbolCustomShape property. |
void |
setSymbolShape(int st)
Sets the value of the SymbolShape property. |
void |
setSymbolSize(int sz)
Sets the value of the SymbolSize property. |
void |
setSymbolStyle(com.klg.jclass.chart.JCSymbolStyle ps)
Gets the SymbolStyle property. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected com.klg.jclass.chart.JCLineStyle lineStyle
protected com.klg.jclass.chart.JCFillStyle fillStyle
protected com.klg.jclass.chart.JCSymbolStyle symbolStyle
protected Vector parents
Constructor Detail |
public JCChartStyle(com.klg.jclass.chart.JCLineStyle ls, com.klg.jclass.chart.JCFillStyle fs, com.klg.jclass.chart.JCSymbolStyle ps)
ls
- JCLineStyle
instance representing the line style for
this chart style objectfs
- JCFillStyle
instance representing the fill style for
this chart style objectps
- JCSymbolStyle
instance representing the symbol style
for this chart style objectpublic JCChartStyle()
Method Detail |
public static com.klg.jclass.chart.JCChartStyle makeDefault(com.klg.jclass.chart.JCChart c)
c
- JCChart
instance that is the parent of the created
JCChartStyle
object
JCChartStyle
object with default line, fill, and
symbol styles. The defaults are cycled, so consecutive calls
will return different chart styles.public static com.klg.jclass.chart.JCChartStyle makeDefault(com.klg.jclass.chart.JCChart c, com.klg.jclass.chart.Changeable parent)
c
- JCChart
instance that will use this
JCChartStyle
parent
- an instance of Changeable
that will be the parent
of the created JCChartStyle
object
JCChartStyle
object with default line, fill, and
symbol styles. The defaults are cycled, so consecutive calls
will return different chart styles.public static com.klg.jclass.chart.JCChartStyle makeDefault(com.klg.jclass.chart.JCChart c, com.klg.jclass.chart.Changeable parent, boolean other)
c
- JCChart
instance that will use this
JCChartStyle
parent
- an instance of Changeable
that will be the parent
of the created JCChartStyle
objectother
- true
if creating from a pie chart another style;
false
otherwise
JCChartStyle
object with default line, fill, and
symbol styles. The defaults are cycled, so consecutive calls
will return different chart styles.public com.klg.jclass.chart.JCLineStyle getLineStyle()
JCLineStyle
property, which controls how lines are
drawn.
JCLineStyle
instance representing the line drawing stylepublic void setLineStyle(com.klg.jclass.chart.JCLineStyle ls)
JCLineStyle
property, which controls how lines are
drawn.
ls
- JCLineStyle
instance representing the line drawing
stylepublic int getLinePattern()
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
.
public void setLinePattern(int p)
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
.
p
- pattern enumpublic int getLineJoin()
LineJoin
property.
The LineJoin
property dictates the join style used to join two
lines. Valid values include BasicStroke.JOIN_MITER
,
BasicStroke.JOIN_BEVEL
, and BasicStroke.JOIN_ROUND
.
This feature is supported only in JDK 1.2 and higher.
public void setLineJoin(int j)
LineJoin
property.
The LineJoin
property dictates the join style used to join two
lines. Valid values include BasicStroke.JOIN_MITER
,
BasicStroke.JOIN_BEVEL
, and BasicStroke.JOIN_ROUND
.
This feature is supported only in JDK 1.2 and higher.
j
- join enumpublic int getLineCap()
LineCap
property.
The LineCap
property dictates the cap style used to end a line.
Valid values include BasicStroke.CAP_BUTT
,
BasicStroke.CAP_ROUND
, and BasicStroke.CAP_SQUARE
.
This feature is supported only in JDK 1.2 and higher.
public void setLineCap(int c)
LineCap
property.
The LineCap
property dictates the cap style used to end a line.
Valid values include BasicStroke.CAP_BUTT
,
BasicStroke.CAP_ROUND
, and BasicStroke.CAP_SQUARE
.
This feature is supported only in JDK 1.2 and higher.
c
- cap enumpublic int getLineWidth()
LineWidth
property.
The LineWidth
property controls the line width.
public void setLineWidth(int lw)
LineWidth
property.
The LineWidth
property controls the line width.
lw
- line widthpublic Color getLineColor()
LineColor
property.
The LineColor
property determines the color used to draw a line.
public void setLineColor(Color lc)
LineColor
property.
The LineColor
property determines the color used to draw a line.
lc
- line colorpublic com.klg.jclass.chart.JCSymbolStyle getSymbolStyle()
SymbolStyle
property.
The SymbolStyle
property controls the symbol that represents
an individual point.
JCSymbolStyle
instance representing the symbol drawing
stylepublic void setSymbolStyle(com.klg.jclass.chart.JCSymbolStyle ps)
SymbolStyle
property.
The SymbolStyle
property controls the symbol that represents
an individual point.
ps
- JCSymbolStyle
instance representing the symbol drawing
stylepublic int getSymbolShape()
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
.
public void setSymbolShape(int st)
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
.
st
- symbol shapepublic Color getSymbolColor()
SymbolColor
property.
The SymbolColor
property determines color used to paint the
symbol.
public void setSymbolColor(Color sc)
SymbolColor
property.
The SymbolColor
property determines color used to paint the
symbol.
sc
- symbol colorpublic int getSymbolSize()
SymbolSize
property.
The SymbolSize
property determines the size of the symbols.
public void setSymbolSize(int sz)
SymbolSize
property.
The SymbolSize
property determines the size of the symbols.
When set to 0, no symbol is drawn.
sz
- symbol sizepublic com.klg.jclass.chart.JCShape getSymbolCustomShape()
SymbolCustomShape
property.
The SymbolCustomShape
property contains an object derived from
JCShape
that is used to draw points. See JCShape
for details.
public void setSymbolCustomShape(com.klg.jclass.chart.JCShape cs)
SymbolCustomShape
property.
The SymbolCustomShape
property contains an object derived from
JCShape
that is used to draw points. See JCShape
for details.
cs
- custom shape objectpublic com.klg.jclass.chart.JCFillStyle getFillStyle()
JCFillStyle
property, which controls how fills are
drawn.
JCFillStyle
instance representing the fill drawing stylepublic void setFillStyle(com.klg.jclass.chart.JCFillStyle fs)
JCFillStyle
property, which controls how fills are
drawn.
fs
- JCFillStyle
instance representing the fill drawing
stylepublic Color getFillColor()
FillColor
property.
The FillColor
property determines the color used to fill regions
in a chart.
public void setFillColor(Color fc)
FillColor
property.
The FillColor
property determines the color used to fill regions
in a chart.
fc
- fill colorpublic Color getFillBackground()
FillBackground
property.
The FillBackground
property determines the color used for the
background when doing patterned fills in chart.
public void setFillBackground(Color fc)
FillBackground
property.
The FillBackground
property determines the color used for the
background when doing patterned fills in chart.
fc
- fill background colorpublic int getFillPattern()
FillPattern
property.
The FillPattern
property determines the fill pattern used to
fill regions in chart.
public void setFillPattern(int fp)
FillPattern
property.
The FillPattern
property determines the fill pattern used to
fill regions in chart.
fp
- fill patternpublic Image getFillImage()
FillImage
property.
The FillImage
property determines the
image used to paint the fill region of bar charts.
public void setFillImage(Image fi)
FillImage
property.
The FillImage
property determines the
image used to paint the fill region of bar charts.
fi
- fill imagepublic void addParent(com.klg.jclass.chart.Changeable parent)
JCChartStyle
object.
parent
- the Changeable
object to add to the parent listpublic void removeParent(com.klg.jclass.chart.Changeable parent)
JCChartStyle
object.
parent
- the Changeable
object to remove from the parent
list.public void clearParents()
JCChartStyle
object.
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |