|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.scilab.forge.scirenderer.ruler.DefaultRulerModel
public class DefaultRulerModel
Default ruler model.
| Field Summary |
|---|
| Fields inherited from interface org.scilab.forge.scirenderer.ruler.RulerModel |
|---|
DEFAULT_AUTO_TICKS_STATUS, DEFAULT_COLOR, DEFAULT_FIRST_POINT, DEFAULT_FIRST_VALUE, DEFAULT_LINE_VISIBLE, DEFAULT_LOGARITHMIC_STATUS, DEFAULT_MARGIN, DEFAULT_MINIMAL_SUB_TICKS_DISTANCE, DEFAULT_SECOND_POINT, DEFAULT_SECOND_VALUE, DEFAULT_SPRITE_DISTANCE, DEFAULT_SUB_TICK_LENGTH, DEFAULT_TICK_LENGTH, DEFAULT_TICKS_DIRECTION |
| Constructor Summary | |
|---|---|
DefaultRulerModel()
Default constructor. |
|
| Method Summary | |
|---|---|
Color |
getColor()
Color getter. |
Vector3d |
getFirstPoint()
First point getter. |
double |
getFirstValue()
First value getter. |
Graduations |
getGraduations()
Return used graduation to draw this ruler. |
double |
getMargin()
Return the accepted margin (in pixel) for label drawing. |
double |
getMinimalSubTicksDistance()
Minimal accepted sub-ticks distance getter. |
Vector3d |
getPosition(double value)
Return the position corresponding to the given value. |
Vector3d |
getSecondPoint()
Second point getter. |
double |
getSecondValue()
Second value getter. |
int |
getSpriteDistance()
Sprite distance getter. |
int |
getSubTicksLength()
Sub-ticks length getter. |
Vector3d |
getTicksDirection()
Ticks direction getter. |
int |
getTicksLength()
Ticks length getter. |
boolean |
isAutoTicks()
Auto-ticking getter. |
boolean |
isLineVisible()
Line visibility getter. |
boolean |
isLogarithmic()
Logarithmic state getter. |
void |
setAutoTicks(boolean isAutoTicks)
|
void |
setColor(Color color)
|
void |
setFirstPoint(Vector3d firstPoint)
|
void |
setFirstValue(double firstValue)
First value setter. |
void |
setLineVisible(boolean lineVisible)
|
void |
setLogarithmic(boolean isLogarithmic)
|
void |
setMargin(double margin)
|
void |
setMinimalSubTicksDistance(double minimalSubTicksDistance)
|
void |
setPoints(Vector3d firstPoint,
Vector3d secondPoint)
|
void |
setSecondPoint(Vector3d secondPoint)
|
void |
setSecondValue(double secondValue)
Second value setter. |
void |
setSpriteDistance(int spriteDistance)
|
void |
setSubTicksLength(int subTicksLength)
|
void |
setTicksDirection(Vector3d ticksDirection)
|
void |
setTicksLength(int ticksLength)
|
void |
setUserGraduation(Graduations graduations)
|
void |
setValues(double firstValue,
double secondValue)
Set the first and second value in one call. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultRulerModel()
| Method Detail |
|---|
public double getFirstValue()
RulerModel
getFirstValue in interface RulerModelpublic void setFirstValue(double firstValue)
firstValue - the new first value.public double getSecondValue()
RulerModel
getSecondValue in interface RulerModelpublic void setSecondValue(double secondValue)
secondValue - the new second value.
public void setValues(double firstValue,
double secondValue)
firstValue - the first value.secondValue - the second value.public Vector3d getFirstPoint()
RulerModel
getFirstPoint in interface RulerModelpublic void setFirstPoint(Vector3d firstPoint)
public Vector3d getSecondPoint()
RulerModel
getSecondPoint in interface RulerModelpublic void setSecondPoint(Vector3d secondPoint)
public void setPoints(Vector3d firstPoint,
Vector3d secondPoint)
public Vector3d getTicksDirection()
RulerModel
getTicksDirection in interface RulerModelpublic void setTicksDirection(Vector3d ticksDirection)
public int getTicksLength()
RulerModel
getTicksLength in interface RulerModelpublic void setTicksLength(int ticksLength)
public int getSubTicksLength()
RulerModel
getSubTicksLength in interface RulerModelpublic void setSubTicksLength(int subTicksLength)
public Graduations getGraduations()
RulerModel
getGraduations in interface RulerModelpublic void setUserGraduation(Graduations graduations)
public Vector3d getPosition(double value)
RulerModel
getPosition in interface RulerModelvalue - the given value.
public double getMargin()
RulerModel
getMargin in interface RulerModelpublic void setMargin(double margin)
public boolean isLineVisible()
RulerModel
isLineVisible in interface RulerModelpublic void setLineVisible(boolean lineVisible)
public boolean isAutoTicks()
RulerModel
isAutoTicks in interface RulerModelpublic void setAutoTicks(boolean isAutoTicks)
public boolean isLogarithmic()
RulerModel
isLogarithmic in interface RulerModelpublic void setLogarithmic(boolean isLogarithmic)
public int getSpriteDistance()
RulerModel
getSpriteDistance in interface RulerModelpublic void setSpriteDistance(int spriteDistance)
public double getMinimalSubTicksDistance()
RulerModel
getMinimalSubTicksDistance in interface RulerModelpublic void setMinimalSubTicksDistance(double minimalSubTicksDistance)
public Color getColor()
RulerModel
getColor in interface RulerModelpublic void setColor(Color color)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||