simtools.shapes
Class LimitShape

java.lang.Object
  extended by simtools.shapes.LimitShape
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class LimitShape
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

Draws vertical or horizontal asymptotes on plots

Author:
zxpletran007
See Also:
Serialized Form

Nested Class Summary
static class LimitShape.LimitShapePropertiesNames
           
 
Field Summary
protected  boolean _isVertical
           
protected  boolean _log
           
protected  double _position
           
static double LOG_MIN
          Smallest arbitrarily-close-to-zero value allowed.
static double LOG10_VALUE
          The value of ln(10), used to compute LOG10_VALUE
 
Constructor Summary
LimitShape(boolean isVertical, double position)
           
 
Method Summary
 java.lang.Object clone()
           
 void draw(java.awt.Graphics2D g2, double org, double scale, int length)
          Draws it
 boolean getIsVertical()
           
 double getPosition()
           
 int getScaledPosition(double org, double scale, int length)
           
 void setIsVertical(boolean b)
           
 void setLogsProperties(boolean log)
          Method setLogsProperties
Summary:
Use this method to set logarithmic modes on curve axis.
 void setPosition(double p)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_isVertical

protected boolean _isVertical

_position

protected double _position

_log

protected transient boolean _log

LOG10_VALUE

public static final double LOG10_VALUE
The value of ln(10), used to compute LOG10_VALUE


LOG_MIN

public static final double LOG_MIN
Smallest arbitrarily-close-to-zero value allowed.

See Also:
Constant Field Values
Constructor Detail

LimitShape

public LimitShape(boolean isVertical,
                  double position)
Method Detail

draw

public void draw(java.awt.Graphics2D g2,
                 double org,
                 double scale,
                 int length)
Draws it

Parameters:
g2 -
orgX -
scaleX -
orgY -
lengthY -

getScaledPosition

public int getScaledPosition(double org,
                             double scale,
                             int length)

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException

setLogsProperties

public void setLogsProperties(boolean log)
Method setLogsProperties
Summary:
Use this method to set logarithmic modes on curve axis. Parameters:

Parameters:
_logx - True to use logarithmic mode on x axis. False otherwise.
_logy - True to use logarithmic mode on y axis. False otherwise.

getPosition

public double getPosition()

setPosition

public void setPosition(double p)

getIsVertical

public boolean getIsVertical()

setIsVertical

public void setIsVertical(boolean b)