NetCharts Pro

netcharts.pro.common.rectangular
Class NFAxesSize

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

public class NFAxesSize
extends NFBaseClass
implements NFCDLGenerator

A NFAxesSize specifies the amount of space that will be allocated to draw top, bottom, left and right axes.


Constructor Summary
NFAxesSize()
          Creates a default NFAxesSize instance.
NFAxesSize(double top, double bottom, double left, double right)
          Creates a NFAxesSize using the specified bounding values.
 
Method Summary
 double getBottom()
          Returns the amount of horizontal space in the chart allocated to the bottom axes.
 java.lang.String getCDL()
          Return the CDL for this object
 void getCDL(java.lang.StringBuffer sb)
          Append CDL parameters representing this size to the given StringBuffer.
 double getLeft()
          Returns the amount of horizontal space in the chart allocated to the left axes.
 double getRight()
          Returns the amount of horizontal space in the chart allocated to the right axes.
 double getTop()
          Returns the amount of horizontal space in the chart allocated to the top axes.
 void setBottom(double bottom)
          Sets the amount of vertical space in the chart allocated to the bottom axes.
 void setCDL(java.lang.String cdl)
          Set the CDL for this object
 void setLeft(double left)
          Sets the amount of horizontal space in the chart allocated to the left axes.
 void setRight(double right)
          Sets the amount of horizontal space in the chart allocated to the right axes.
 void setTop(double top)
          Sets the amount of vertical space in the chart allocated to the top axes.
 
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, toString, wait, wait, wait
 
Methods inherited from interface netcharts.pro.common.NFCDLGenerator
toString
 

Constructor Detail

NFAxesSize

public NFAxesSize()
Creates a default NFAxesSize instance.


NFAxesSize

public NFAxesSize(double top,
                  double bottom,
                  double left,
                  double right)
Creates a NFAxesSize using the specified bounding values.

Parameters:
top - The amount of vertical space in the chart allocated to the top axes
bottom - The amount of vertical space in the chart allocated to the bottom axes
left - The amount of vertical space in the chart allocated to the left axes
right - The amount of vertical space in the chart allocated to the right axes
Method Detail

getCDL

public java.lang.String getCDL()
Description copied from interface: NFCDLGenerator
Return the CDL for this object

Specified by:
getCDL in interface NFCDLGenerator
Returns:
cdl

getCDL

public void getCDL(java.lang.StringBuffer sb)
Append CDL parameters representing this size to the given StringBuffer.

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

setCDL

public void setCDL(java.lang.String cdl)
Description copied from interface: NFCDLGenerator
Set the CDL for this object

Specified by:
setCDL in interface NFCDLGenerator

setTop

public void setTop(double top)
Sets the amount of vertical space in the chart allocated to the top axes. If top is a number between 0 and 1, it is interpreted as a percentage of the total plot area height. If top >= 1 it is interpreted as an absolute size in pixels.

Parameters:
top -

getTop

public double getTop()
Returns the amount of horizontal space in the chart allocated to the top axes. If top is a number between 0 and 1, it is interpreted as a percentage of the total plot area height. If top >= 1 it is interpreted as an absolute size in pixels. If -1, then no value has been specified.

Returns:
The amount of vertical space in the chart allocated to the top axes.

setBottom

public void setBottom(double bottom)
Sets the amount of vertical space in the chart allocated to the bottom axes. If bottom is a number between 0 and 1, it is interpreted as a percentage of the total plot area height. If bottom >= 1 it is interpreted as an absolute size in pixels.

Parameters:
top -

getBottom

public double getBottom()
Returns the amount of horizontal space in the chart allocated to the bottom axes. If bottom is a number between 0 and 1, it is interpreted as a percentage of the total plot area height. If bottom >= 1 it is interpreted as an absolute size in pixels. If -1, then no value has been specified.

Returns:
The amount of vertical space in the chart allocated to the bottom axes.

setLeft

public void setLeft(double left)
Sets the amount of horizontal space in the chart allocated to the left axes. If left is a number between 0 and 1, it is interpreted as a percentage of the total plot area height. If left >= 1 it is interpreted as an absolute size in pixels.

Parameters:
top -

getLeft

public double getLeft()
Returns the amount of horizontal space in the chart allocated to the left axes. If left is a number between 0 and 1, it is interpreted as a percentage of the total plot area height. If left >= 1 it is interpreted as an absolute size in pixels. If -1, then no value has been specified.

Returns:
The amount of horizontal space in the chart allocated to the left axes.

setRight

public void setRight(double right)
Sets the amount of horizontal space in the chart allocated to the right axes. If right is a number between 0 and 1, it is interpreted as a percentage of the total plot area height. If right >= 1 it is interpreted as an absolute size in pixels.

Parameters:
top -

getRight

public double getRight()
Returns the amount of horizontal space in the chart allocated to the right axes. If right is a number between 0 and 1, it is interpreted as a percentage of the total plot area height. If right >= 1 it is interpreted as an absolute size in pixels. If -1, then no value has been specified.

Returns:
The amount of horizontal space in the chart allocated to the right axes.

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 - 2011
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: Jun 28, 2011