JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.chart3d
Class JCBar

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

public class JCBar
extends ParentTrackChange

JClass Chart 3D class that contains properties that pertain to plots of type bar. These are properties such as the bar format and spcaing.

See Also:
Serialized Form

Field Summary
static int FIXED
          The fixed bar format.
static int HISTOGRAM
          The hisogram bar format.
protected  int xFormat
          X bar format.
protected  double xSpacing
          X bar spacing.
protected  int yFormat
          Y bar format.
protected  double ySpacing
          Y bar spacing.
 
Fields inherited from class com.klg.jclass.chart3d.ParentTrackChange
parents
 
Constructor Summary
JCBar()
          Default constructor.
JCBar(int xFormat, int yFormat, double xSpacing, double ySpacing)
          Constructor that intializes the X & Y formats and spacing.
 
Method Summary
 int getXFormat()
          Gets the current x or X axis bar format.
 double getXSpacing()
          Gets the current X bar spacing.
 int getYFormat()
          Gets the current y or Y axis bar format.
 double getYSpacing()
          Gets the current Y bar spacing.
 void setXFormat(int xFormat)
          Sets the current x or X axis bar format.
 void setXSpacing(double xSpacing)
          Sets the current X bar spacing.
 void setYFormat(int yFormat)
          Sets the current y or Y axis bar format.
 void setYSpacing(double ySpacing)
          Sets the current Y bar spacing.
 
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

FIXED

public static final int FIXED
The fixed bar format. Center of bar is at each data point. The bar spacing determines the bar width.

See Also:
Constant Field Values

HISTOGRAM

public static final int HISTOGRAM
The hisogram bar format. Endpoints of bar are at datapoints. Bar spacing has no effect.

See Also:
Constant Field Values

xFormat

protected int xFormat
X bar format. FIXED or HISTOGRAM.


yFormat

protected int yFormat
Y bar format. FIXED or HISTOGRAM.


xSpacing

protected double xSpacing
X bar spacing. Percentage of possible space used.


ySpacing

protected double ySpacing
Y bar spacing. Percentage of possible space used.

Constructor Detail

JCBar

public JCBar()
Default constructor. All values at their default.


JCBar

public JCBar(int xFormat,
             int yFormat,
             double xSpacing,
             double ySpacing)
Constructor that intializes the X & Y formats and spacing.

Parameters:
xFormat - the X bar format
yFormat - the Y bar format
xSpacing - the X bar spacing
ySpacing - the Y bar spacing
Method Detail

getXFormat

public int getXFormat()
Gets the current x or X axis bar format. The possible values are FIXED or HISTOGRAM.

Returns:
the current X bar format

setXFormat

public void setXFormat(int xFormat)
Sets the current x or X axis bar format. The possible values are FIXED or HISTOGRAM.

Parameters:
xFormat - the new X bar format

getYFormat

public int getYFormat()
Gets the current y or Y axis bar format. The possible values are FIXED or HISTOGRAM.

Returns:
the current Y format

setYFormat

public void setYFormat(int yFormat)
Sets the current y or Y axis bar format. The possible values are FIXED or HISTOGRAM.

Parameters:
yFormat - the new Y bar format

getXSpacing

public double getXSpacing()
Gets the current X bar spacing. This value is a percentage of the available bar space that is used.

Returns:
the current X bar spacing

setXSpacing

public void setXSpacing(double xSpacing)
Sets the current X bar spacing. This value is a percentage of the available bar space that is used.

Parameters:
xSpacing - the new X bar spacing value

getYSpacing

public double getYSpacing()
Gets the current Y bar spacing. This value is a percentage of the available bar space that is used.

Returns:
the current Y bar spacing

setYSpacing

public void setYSpacing(double ySpacing)
Sets the current Y bar spacing. This value is a percentage of the available bar space that is used.

Parameters:
ySpacing - the new column bar spacing value

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