JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.chart3d
Class JCChart3dStyle

java.lang.Object
  |
  +--com.klg.jclass.chart3d.ParentTrackChange
        |
        +--com.klg.jclass.chart3d.JCChart3dStyle
All Implemented Interfaces:
Serializable

public class JCChart3dStyle
extends ParentTrackChange

For point data, JChart3dStyle represents a style for rendering a series or points. It controls symbol styles and line styles.

Properties

Name Description
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: This property is supported only in JDK 1.2 and higher. 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.
Custom Shapes Custom shapes can made by creating an object that implements the JCSymbolShape interface. The new shape can be used by using the setSymbolShape() method with the filename of the class. See com.klg.jclass.chart3d.shape.JCSymbolShape for details.
SymbolShape The SymbolShape property determines the type of symbol that will be drawn. Valid values include 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 JCChart3dStyle properties of the format Symbol* are virtual properties that map to properties of JCSymbolStyle.

See Also:
JCFillStyle, JCLineStyle, JCSymbolStyle, Serialized Form

Field Summary
protected  com.klg.jclass.chart3d.JCLineStyle lineStyle
          The line style to be used for this chart style.
protected  com.klg.jclass.chart3d.JCSymbolStyle symbolStyle
          The symbol style to be used for this chart style.
 
Fields inherited from class com.klg.jclass.chart3d.ParentTrackChange
parents
 
Constructor Summary
JCChart3dStyle()
          Default constructor for chart style objects.
JCChart3dStyle(com.klg.jclass.chart3d.JCLineStyle lineStyle, com.klg.jclass.chart3d.JCSymbolStyle symbolStyle)
          Constructor for chart style objects.
 
Method Summary
 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.chart3d.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.
 String getSymbolShape()
          Gets the value of the SymbolShape property.
 int getSymbolSize()
          Gets the value of the SymbolSize property.
 com.klg.jclass.chart3d.JCSymbolStyle getSymbolStyle()
          Gets the SymbolStyle property The SymbolStyle property controls the symbol that represents an individual point.
static com.klg.jclass.chart3d.JCChart3dStyle makeDefault(com.klg.jclass.chart3d.JCChart3d c)
          Creates a default chart style.
static com.klg.jclass.chart3d.JCChart3dStyle makeDefault(com.klg.jclass.chart3d.JCChart3d c, com.klg.jclass.chart3d.Changeable parent)
          Creates a default chart style.
 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.chart3d.JCLineStyle lineStyle)
          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 setSymbolShape(String shape)
          Sets the value of the SymbolShape property.
 void setSymbolSize(int sz)
          Sets the value of the SymbolSize property.
 void setSymbolStyle(com.klg.jclass.chart3d.JCSymbolStyle symbolStyle)
          Gets the SymbolStyle property The SymbolStyle property controls the symbol that represents an individual point.
 
Methods inherited from class com.klg.jclass.chart3d.ParentTrackChange
addParent, clearParents, removeParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lineStyle

protected com.klg.jclass.chart3d.JCLineStyle lineStyle
The line style to be used for this chart style.


symbolStyle

protected com.klg.jclass.chart3d.JCSymbolStyle symbolStyle
The symbol style to be used for this chart style.

Constructor Detail

JCChart3dStyle

public JCChart3dStyle(com.klg.jclass.chart3d.JCLineStyle lineStyle,
                      com.klg.jclass.chart3d.JCSymbolStyle symbolStyle)
Constructor for chart style objects.

Parameters:
lineStyle - JCLineStyle instance representing the line style for this chart style object
symbolStyle - JCSymbolStyle instance representing the symbol style for this chart style object
See Also:
JCLineStyle, JCSymbolStyle

JCChart3dStyle

public JCChart3dStyle()
Default constructor for chart style objects. Creates default line style and symbol style objects.

Method Detail

makeDefault

public static com.klg.jclass.chart3d.JCChart3dStyle makeDefault(com.klg.jclass.chart3d.JCChart3d c)
Creates a default chart style.

Parameters:
c - JCChart3d instance that is the parent of the created JCChart3dStyle object
Returns:
JCChart3dStyle object with default line, fill and symbol styles. The defaults are cycled, so consecutive calls will return different chart styles.

makeDefault

public static com.klg.jclass.chart3d.JCChart3dStyle makeDefault(com.klg.jclass.chart3d.JCChart3d c,
                                                                com.klg.jclass.chart3d.Changeable parent)
Creates a default chart style.

Parameters:
c - JCChart3d instance that this JCChart3dStyle will use
parent - an instance of Changeable that will be the parent of the created JCChart3dStyle object
Returns:
JCChart3dStyle object with default line, fill and symbol styles. The defaults are cycled, so consecutive calls will return different chart styles.

getLineStyle

public com.klg.jclass.chart3d.JCLineStyle getLineStyle()
Gets the JCLineStyle property, which controls how lines are drawn.

Returns:
JCLineStyle instance representing the line drawing style

setLineStyle

public void setLineStyle(com.klg.jclass.chart3d.JCLineStyle lineStyle)
Sets the JCLineStyle property, which controls how lines are drawn.

Parameters:
lineStyle -

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. This feature is supported only in JDK 1.2 and higher.

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. This feature is supported only in JDK 1.2 and higher.

Parameters:
p - the new line pattern

getLineJoin

public int getLineJoin()
Gets the value of the 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.

Returns:
line pattern enum

setLineJoin

public void setLineJoin(int j)
Sets the value of the 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.

Parameters:
j - join enum

getLineCap

public int getLineCap()
Gets the value of the 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.

Returns:
line pattern enum

setLineCap

public void setLineCap(int c)
Sets the value of the 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.

Parameters:
c - cap enum

getLineWidth

public int getLineWidth()
Gets the value of the LineWidth property. The LineWidth property controls the line width.

Returns:
line width

setLineWidth

public void setLineWidth(int lw)
Sets the value of the LineWidth property. The LineWidth property controls the line width.

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 com.klg.jclass.chart3d.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(com.klg.jclass.chart3d.JCSymbolStyle symbolStyle)
Gets the SymbolStyle property The SymbolStyle property controls the symbol that represents an individual point.

Parameters:
symbolStyle -

getSymbolShape

public String 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(String shape)
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:
shape - symbol shape

getSymbolColor

public Color getSymbolColor()
Gets the value of the SymbolColor property. The SymbolColor property determines the 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 the 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 the size of the symbols.

Returns:
positive integer representing symbol size

setSymbolSize

public void setSymbolSize(int sz)
Sets the value of the SymbolSize property. The SymbolSize property determines the size of the symbols. When set to 0, no symbol is drawn.

Parameters:
sz - symbol size

Copyright © 2004 Quest Software Inc..
All rights reserved.