netcharts.pro.common.rectangular
Class NFScaleSetAxisRange
java.lang.Object
|
+--netcharts.pro.common.NFBaseClass
|
+--netcharts.pro.common.NFRange
|
+--netcharts.pro.common.NFAxisRange
|
+--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.NFRange |
getCDL, getMax, getMaxAsDate, getMaxObject, getMin, getMinAsDate, getMinObject, setCDL, setMax, setMax, setMax, setMin, setMin, setMin, toString |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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 minimummax - range maximumstep - range steppercent - 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 minimummax - range maximumstep - range steppercent - the percentage of the physical axis space that will be reserved for this axis scale.
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 parametersincludeParens - 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.
Visual Mining, Inc. 15825 Shady Grove Rd. Suite 20 Rockville, MD 20850 800.308.0731 301.947.8293 FAX | | Copyright © Visual Mining, Inc. 1996 - 2004 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: Apr 1, 2004 |