|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimtools.shapes.LimitShape
public class LimitShape
Draws vertical or horizontal asymptotes on plots
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 |
---|
protected boolean _isVertical
protected double _position
protected transient boolean _log
public static final double LOG10_VALUE
public static final double LOG_MIN
Constructor Detail |
---|
public LimitShape(boolean isVertical, double position)
Method Detail |
---|
public void draw(java.awt.Graphics2D g2, double org, double scale, int length)
g2
- orgX
- scaleX
- orgY
- lengthY
- public int getScaledPosition(double org, double scale, int length)
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public void setLogsProperties(boolean log)
_logx
- True to use logarithmic mode on x axis. False otherwise._logy
- True to use logarithmic mode on y axis. False otherwise.public double getPosition()
public void setPosition(double p)
public boolean getIsVertical()
public void setIsVertical(boolean b)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |