NetCharts Pro

netcharts.pro.common.rectangular
Class NFScaleSetAxisRange

java.lang.Object
  extended by netcharts.pro.common.NFBaseClass
      extended by netcharts.pro.common.NFRange
          extended by netcharts.pro.common.NFAxisRange
              extended by netcharts.pro.common.rectangular.NFScaleSetAxisRange
All Implemented Interfaces:
java.lang.Cloneable, NFCDLGenerator

public class NFScaleSetAxisRange
extends NFAxisRange
implements NFCDLGenerator

The NFScaleSetAxisRange is used to define multiple scales within the same axis (not to be confused with multiple axes on the same axis side). Each axis range contains a minimum, maximum, step, and percentage.


Constructor Summary
NFScaleSetAxisRange()
          Constructs a default scale set axis range
NFScaleSetAxisRange(java.util.Date min, java.util.Date max, double step, double percent)
          Constructs an axis range with min, max and step.
NFScaleSetAxisRange(double min, double max, double step, double percent)
          Constructs an axis range with min, max and step.
 
Method Summary
 void getCDL(java.lang.StringBuffer sb, boolean includeParens)
          Append CDL parameters representing this range to the given StringBuffer.
 double getPercent()
          Gets the percentage of the physical axis space that will be reserved for this axis scale.
 int setCDL(java.lang.String[] elements, int offset)
          Configures this object from a CDL parameter representation.
 void setPercent(double percent)
          Sets the percentage of the physical axis space that will be reserved for this axis scale.
 
Methods inherited from class netcharts.pro.common.NFAxisRange
getStep, getStepAsTimeUnit, getStepObject, setStep, setStep
 
Methods inherited from class netcharts.pro.common.NFRange
getCDL, getMax, getMaxAsDate, getMaxObject, getMin, getMinAsDate, getMinObject, setCDL, setMax, setMax, setMax, setMin, setMin, setMin, toString
 
Methods inherited from class netcharts.pro.common.NFBaseClass
clone, getModified, getUserObject, setModified, setUserObject
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface netcharts.pro.common.NFCDLGenerator
getCDL, setCDL, toString
 

Constructor Detail

NFScaleSetAxisRange

public NFScaleSetAxisRange()
Constructs a default scale set axis range


NFScaleSetAxisRange

public NFScaleSetAxisRange(double min,
                           double max,
                           double step,
                           double percent)
Constructs an axis range with min, max and step.

Parameters:
min - range minimum
max - range maximum
step - range step
percent - the percentage of the physical axis space that will be reserved for this axis scale.

NFScaleSetAxisRange

public NFScaleSetAxisRange(java.util.Date min,
                           java.util.Date max,
                           double step,
                           double percent)
Constructs an axis range with min, max and step.

Parameters:
min - range minimum
max - range maximum
step - range step
percent - the percentage of the physical axis space that will be reserved for this axis scale.
Method Detail

setPercent

public void setPercent(double percent)
Sets the percentage of the physical axis space that will be reserved for this axis scale.

Parameters:
step -

getPercent

public double getPercent()
Gets the percentage of the physical axis space that will be reserved for this axis scale.

Returns:
step

getCDL

public void getCDL(java.lang.StringBuffer sb,
                   boolean includeParens)
Append CDL parameters representing this range to the given StringBuffer.

Overrides:
getCDL in class NFAxisRange
Parameters:
sb - Target buffer to append the CDL parameters
includeParens - If true, this will cause the parameters to be delimited with parenthesis.

setCDL

public int setCDL(java.lang.String[] elements,
                  int offset)
Configures this object from a CDL parameter representation.

Overrides:
setCDL in class NFAxisRange
Parameters:
elements - Array of parameter elements. This array is expected to contain consecutive elements containing minimum, maximum, step, and percentage information.
offset - Offset into the elements array.

NetCharts Pro


Visual Mining, Inc.
2099 Gaither Rd.
Suite 220
Rockville, MD 20850
800.308.0731
301.947.8293 FAX

Copyright © Visual Mining, Inc. 1996 - 2018
All Rights Reserved.

NetCharts Pro TM is a registered trademark of Visual Mining, Inc. Other brands and their products are trademarks of their respective holders.

Last Modified: Jan 7, 2018