|
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.JCStyle
|
+--com.klg.jclass.chart.JCSymbolStyle
JCSymbolStyle controls the appearance of points in a
plot graph by allowing the modification of
the symbol shape, symbol color and symbol size.
| Field Summary | |
static int |
BOX
|
static int |
CIRCLE
|
protected Color |
color
|
protected int |
colorIndex
|
static int |
CROSS
|
protected com.klg.jclass.chart.JCShape |
customShape
|
static int |
DIAMOND
|
static int |
DOT
|
static int |
HORIZ_LINE
|
static int |
LAST
|
static int |
NONE
|
static int |
OTHER
|
protected int |
shape
|
protected int |
shapeIndex
|
protected int |
size
|
static int |
SQUARE
|
static int |
STAR
|
static int |
TRIANGLE
|
static int |
VERT_LINE
|
| Fields inherited from class com.klg.jclass.chart.JCStyle |
defaultColors, parent |
| Constructor Summary | |
JCSymbolStyle(int tp,
Color c,
int sz)
Constructor for symbol style objects. |
|
| Method Summary | |
void |
draw(Graphics gc,
double x,
double y,
Color col)
Draws a symbol at the specified location, using the properties of the JCSymbolStyle instance. |
void |
draw(Graphics gc,
double x,
double y,
int sz,
Color col)
Draws a symbol at the specified location, using the properties of the JCSymbolStyle instance. |
void |
draw(Graphics gc,
int x,
int y)
Draws a symbol at the specified location, using the properties of the JCSymbolStyle instance. |
void |
draw(Graphics gc,
int x,
int y,
Color col)
Draws a symbol at the specified location, using the properties of the JCSymbolStyle instance. |
void |
draw(Graphics gc,
int x,
int y,
int sz)
Draws a symbol at the specified location, using the properties of the JCSymbolStyle instance. |
void |
draw(Graphics gc,
int x,
int y,
int sz,
Color col)
Draws a symbol at the specified location, using the properties of the JCSymbolStyle instance. |
Color |
getColor()
Gets the Color property of JCSymbolStyle, which
determines the color used to paint the symbols. |
int |
getColorIndex()
Returns the index used to generate the color. |
com.klg.jclass.chart.JCShape |
getCustomShape()
Gets the value of the CustomShape property. |
int |
getShape()
Gets the Shape property. |
int |
getSize()
Gets the Size property. |
static com.klg.jclass.chart.JCSymbolStyle |
makeDefault(com.klg.jclass.chart.JCChart c)
Creates a default symbol style. |
void |
setColor(Color clr)
Sets the Color property of JCSymbolStyle, which
determines the color used to paint the symbols. |
void |
setCustomShape(com.klg.jclass.chart.JCShape ns)
Sets the value of the CustomShape property. |
void |
setShape(int tp)
Sets the Shape property. |
void |
setSize(int sz)
Sets the Size property of JCSymbolStyle, which
determines the size of the symbols. |
| Methods inherited from class com.klg.jclass.chart.JCStyle |
getDefaultColors, setDefaultColors |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int shape
protected int colorIndex
protected int shapeIndex
protected Color color
protected int size
protected com.klg.jclass.chart.JCShape customShape
public static final int NONE
public static final int DOT
public static final int BOX
public static final int TRIANGLE
public static final int DIAMOND
public static final int STAR
public static final int VERT_LINE
public static final int HORIZ_LINE
public static final int CROSS
public static final int CIRCLE
public static final int SQUARE
public static final int OTHER
public static final int LAST
| Constructor Detail |
public JCSymbolStyle(int tp,
Color c,
int sz)
tp - symbol shape. One of NONE, DOT,
BOX, TRIANGLE, DIAMOND,
STAR, VERT_LINE, HORIZ_LINE,
CROSS, CIRCLE, or SQUARE.c - symbol colorsz - symbol size| Method Detail |
public static com.klg.jclass.chart.JCSymbolStyle makeDefault(com.klg.jclass.chart.JCChart c)
c - symbol color
JCFillStyle object with default color and symbol
style. The defaults are cycled, so consecutive calls
will return different symbol styles.
public void draw(Graphics gc,
int x,
int y)
JCSymbolStyle instance.
gc - graphics context to use for drawingx - x position of symbol (in pixels)y - y position of symbol (in pixels)
public void draw(Graphics gc,
int x,
int y,
Color col)
JCSymbolStyle instance.
gc - graphics context to use for drawingx - x position of symbol (in pixels)y - y position of symbol (in pixels)col - the color used to draw
public void draw(Graphics gc,
double x,
double y,
Color col)
JCSymbolStyle instance.
gc - graphics context to use for drawingx - x position of symbol (in pixels)y - y position of symbol (in pixels)col - the color used to draw
public void draw(Graphics gc,
int x,
int y,
int sz)
JCSymbolStyle instance.
gc - graphics context to use for drawingx - x position of symbol (in pixels)y - y position of symbol (in pixels)sz - size of the symbol
public void draw(Graphics gc,
int x,
int y,
int sz,
Color col)
JCSymbolStyle instance.
gc - graphics context to use for drawingx - x position of symbol (in pixels)y - y position of symbol (in pixels)sz - size of the symbolcol - the color used to draw
public void draw(Graphics gc,
double x,
double y,
int sz,
Color col)
JCSymbolStyle instance.
gc - graphics context to use for drawingx - x position of symbol (in pixels)y - y position of symbol (in pixels)sz - size of the symbolcol - the color used to drawpublic int getShape()
Shape property. The Shape property
determines the shape of symbol that will be drawn.
NONE, DOT, BOX,
TRIANGLE, DIAMOND, STAR,
VERT_LINE, HORIZ_LINE, CROSS,
CIRCLE, or SQUARE.public void setShape(int tp)
Shape property. The Shape property
determines the shape of symbol that will be drawn.
tp - one of NONE, DOT, BOX,
TRIANGLE, DIAMOND, STAR,
VERT_LINE, HORIZ_LINE, CROSS,
CIRCLE, or SQUARE.
IllegalArgumentException - If the shape value is not one of
NONE, DOT, BOX, TRIANGLE,
DIAMOND, STAR, VERT_LINE,
HORIZ_LINE, CROSS, CIRCLE, or
SQUARE.public Color getColor()
Color property of JCSymbolStyle, which
determines the color used to paint the symbols.
Graphics
object is used.public void setColor(Color clr)
Color property of JCSymbolStyle, which
determines the color used to paint the symbols.
clr - AWT Color class representing the color to be used
to paint the symbols. If null, the current color of the Graphics
object is used.public int getSize()
Size property. The Size property
determines the size of the symbols. Note that a value of zero size means
the symbol will not be drawn.
public void setSize(int sz)
Size property of JCSymbolStyle, which
determines the size of the symbols.
sz - positive integer representing sizepublic int getColorIndex()
public com.klg.jclass.chart.JCShape getCustomShape()
CustomShape property.
The CustomShape property contains an object derived from
JCShape that is used to draw symbols.
JCShape that defined the shape
to be drawn for the symbolsJCShapepublic void setCustomShape(com.klg.jclass.chart.JCShape ns)
CustomShape property.
The CustomShape property contains an object derived from
JCShape that is used to draw symbols.
ns - object derived from JCShape that defined the shape
to be drawn for the symbolsJCShape
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||