JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.chart3d
Class ParentFormatter

java.lang.Object
  |
  +--com.klg.jclass.chart3d.ParentTrackChange
        |
        +--com.klg.jclass.chart3d.ParentFormatter
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
JCAxis, JCContourLevels

public abstract class ParentFormatter
extends ParentTrackChange

An object that keeps number formatting information needed to format axis labels and contour labels.

See Also:
Serialized Form

Field Summary
protected  boolean decimalPadded
          True if decimals in annotations should be padded with zeroes.
protected  boolean groupingUsed
           
protected  int nFrac
           
protected  boolean numberLocalization
           
 
Fields inherited from class com.klg.jclass.chart3d.ParentTrackChange
parents
 
Constructor Summary
ParentFormatter()
           
 
Method Summary
 boolean getGroupingUsed()
          Gets the value of the GroupingUsed property.
protected  int getNFrac()
          Gets the number of fractional digits in the step.
 com.klg.jclass.chart3d.JCChart3dNumberFormat getNumberFormatter()
          Gets the internal number formatter for this axis.
 boolean getNumberLocalization()
          Do number localization to labels generated for this axis?
 boolean isDecimalPadded()
          Gets the DecimalPadded property.
 void setDecimalPadded(boolean b)
          Sets the DecimalPadded property.
 void setGroupingUsed(boolean groupingUsed)
          Sets the value of the GroupingUsed property.
protected  void setNFrac(int nFrac)
          Sets the number of fractional digits in the step.
 void setNumberFormatterLocale(Locale l)
          Sets the value of the number formatting locale.
 void setNumberLocalization(boolean numberLocalization)
          Sets whether number localization is done to labels generated for this axis.
 
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

nFrac

protected int nFrac

numberLocalization

protected boolean numberLocalization

groupingUsed

protected boolean groupingUsed

decimalPadded

protected boolean decimalPadded
True if decimals in annotations should be padded with zeroes.

Constructor Detail

ParentFormatter

public ParentFormatter()
Method Detail

getNumberFormatter

public com.klg.jclass.chart3d.JCChart3dNumberFormat getNumberFormatter()
Gets the internal number formatter for this axis.


setNumberLocalization

public void setNumberLocalization(boolean numberLocalization)
Sets whether number localization is done to labels generated for this axis.

Parameters:
numberLocalization -

getNumberLocalization

public boolean getNumberLocalization()
Do number localization to labels generated for this axis?


setNFrac

protected void setNFrac(int nFrac)
Sets the number of fractional digits in the step.

Parameters:
nFrac - The number of fractional digits in the step

getNFrac

protected int getNFrac()
Gets the number of fractional digits in the step.

Returns:
The number of fractional digits in the step

setGroupingUsed

public void setGroupingUsed(boolean groupingUsed)
Sets the value of the GroupingUsed property. The GroupingUsed property determines whether or not grouping will be used in formatting numbers. Default value is false

Parameters:
groupingUsed -

getGroupingUsed

public boolean getGroupingUsed()
Gets the value of the GroupingUsed property. The GroupingUsed property determines whether or not grouping will be used in formatting numbers.


setDecimalPadded

public void setDecimalPadded(boolean b)
Sets the DecimalPadded property. The DecimalPadded property determines whether the axis annotations will have their decimal portions padded with zeroes to the size of the precision.

Parameters:
b - if true, the axis annotations will be decimal padded.

isDecimalPadded

public boolean isDecimalPadded()
Gets the DecimalPadded property. The DecimalPadded property determines whether the axis annotations will have their decimal portions padded with zeroes to the size of the precision.

Returns:
if true, the axis annotations are decimal padded.

setNumberFormatterLocale

public void setNumberFormatterLocale(Locale l)
Sets the value of the number formatting locale. Default value is the current locale.

Parameters:
l -

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