Interface RulerModel
-
- All Known Implementing Classes:
DefaultRulerModel
public interface RulerModel- Author:
- Pierre Lando
-
-
Field Summary
Fields Modifier and Type Field Description static booleanDEFAULT_AUTO_TICKS_STATUSDefault auto-ticks status.static ColorDEFAULT_COLORDefault color.static Vector3dDEFAULT_FIRST_POINTDefault first point position.static doubleDEFAULT_FIRST_VALUEDefault first value.static booleanDEFAULT_LINE_VISIBLEDefault main line visibility.static doubleDEFAULT_LINE_WIDTHDefault line width.static booleanDEFAULT_LOGARITHMIC_STATUSDefault logarithmic status.static doubleDEFAULT_MARGINDefault margin in pixel.static doubleDEFAULT_MINIMAL_SUB_TICKS_DISTANCEDefault minimal sub-ticks distance.static Vector3dDEFAULT_SECOND_POINTDefault second point position.static doubleDEFAULT_SECOND_VALUEDefault second value.static intDEFAULT_SPRITE_DISTANCEDefaultorg.scilab.forge.scirenderer.sprite.Spritedistance to the main line in pixel.static intDEFAULT_SUB_TICK_LENGTHDefault sub-tick length in pixel.static intDEFAULT_TICK_LENGTHDefault tick length in pixel.static Vector3dDEFAULT_TICKS_DIRECTIONDefault ticks direction.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ColorgetColor()Color getter.Vector3dgetFirstPoint()First point getter.doublegetFirstValue()First value getter.GraduationsgetGraduations()Return used graduation to draw this ruler.doublegetLineWidth()Line width getter.doublegetMargin()Return the accepted margin (in pixel) for label drawing.doublegetMinimalSubTicksDistance()Minimal accepted sub-ticks distance getter.Vector3dgetPosition(double value)Return the position corresponding to the given value.Vector3dgetSecondPoint()Second point getter.doublegetSecondValue()Second value getter.intgetSpriteDistance()Sprite distance getter.intgetSubTicksLength()Sub-ticks length getter.intgetSubticksNumber()Number of subticks.Vector3dgetTicksDirection()Ticks direction getter.intgetTicksLength()Ticks length getter.booleanisAutoTicks()Auto-ticking getter.booleanisLineVisible()Line visibility getter.booleanisLogarithmic()Logarithmic state getter.
-
-
-
Field Detail
-
DEFAULT_FIRST_VALUE
static final double DEFAULT_FIRST_VALUE
Default first value.- See Also:
- Constant Field Values
-
DEFAULT_SECOND_VALUE
static final double DEFAULT_SECOND_VALUE
Default second value.- See Also:
- Constant Field Values
-
DEFAULT_FIRST_POINT
static final Vector3d DEFAULT_FIRST_POINT
Default first point position.
-
DEFAULT_SECOND_POINT
static final Vector3d DEFAULT_SECOND_POINT
Default second point position.
-
DEFAULT_MARGIN
static final double DEFAULT_MARGIN
Default margin in pixel.- See Also:
- Constant Field Values
-
DEFAULT_LINE_VISIBLE
static final boolean DEFAULT_LINE_VISIBLE
Default main line visibility.- See Also:
- Constant Field Values
-
DEFAULT_SPRITE_DISTANCE
static final int DEFAULT_SPRITE_DISTANCE
Defaultorg.scilab.forge.scirenderer.sprite.Spritedistance to the main line in pixel.- See Also:
- Constant Field Values
-
DEFAULT_SUB_TICK_LENGTH
static final int DEFAULT_SUB_TICK_LENGTH
Default sub-tick length in pixel.- See Also:
- Constant Field Values
-
DEFAULT_TICK_LENGTH
static final int DEFAULT_TICK_LENGTH
Default tick length in pixel.- See Also:
- Constant Field Values
-
DEFAULT_MINIMAL_SUB_TICKS_DISTANCE
static final double DEFAULT_MINIMAL_SUB_TICKS_DISTANCE
Default minimal sub-ticks distance.- See Also:
- Constant Field Values
-
DEFAULT_AUTO_TICKS_STATUS
static final boolean DEFAULT_AUTO_TICKS_STATUS
Default auto-ticks status.- See Also:
- Constant Field Values
-
DEFAULT_LOGARITHMIC_STATUS
static final boolean DEFAULT_LOGARITHMIC_STATUS
Default logarithmic status.- See Also:
- Constant Field Values
-
DEFAULT_TICKS_DIRECTION
static final Vector3d DEFAULT_TICKS_DIRECTION
Default ticks direction.
-
DEFAULT_COLOR
static final Color DEFAULT_COLOR
Default color.
-
DEFAULT_LINE_WIDTH
static final double DEFAULT_LINE_WIDTH
Default line width.- See Also:
- Constant Field Values
-
-
Method Detail
-
getGraduations
Graduations getGraduations()
Return used graduation to draw this ruler.- Returns:
- the used graduation to draw this ruler.
-
getFirstValue
double getFirstValue()
First value getter.- Returns:
- the first values.
-
getSecondValue
double getSecondValue()
Second value getter.- Returns:
- the second values.
-
getFirstPoint
Vector3d getFirstPoint()
First point getter.- Returns:
- the first point.
-
getSecondPoint
Vector3d getSecondPoint()
Second point getter.- Returns:
- the second point.
-
getTicksDirection
Vector3d getTicksDirection()
Ticks direction getter.- Returns:
- the ticks direction.
-
getTicksLength
int getTicksLength()
Ticks length getter.- Returns:
- the ticks length in pixel.
-
getSubTicksLength
int getSubTicksLength()
Sub-ticks length getter.- Returns:
- the sub-ticks length in pixel.
-
getPosition
Vector3d getPosition(double value)
Return the position corresponding to the given value.- Parameters:
value- the given value.- Returns:
- the position corresponding to the given value.
-
getMargin
double getMargin()
Return the accepted margin (in pixel) for label drawing.- Returns:
- the accepted margin (in pixel) for label drawing.
-
isLineVisible
boolean isLineVisible()
Line visibility getter.- Returns:
- the line visibility status.
-
isAutoTicks
boolean isAutoTicks()
Auto-ticking getter.- Returns:
- the auto-ticking status.
-
isLogarithmic
boolean isLogarithmic()
Logarithmic state getter.- Returns:
- the logarithmic state
-
getSpriteDistance
int getSpriteDistance()
Sprite distance getter.- Returns:
- the sprite distance (in pixel) between the ruler line and the sprites edges.
-
getMinimalSubTicksDistance
double getMinimalSubTicksDistance()
Minimal accepted sub-ticks distance getter.- Returns:
- the minimal accepted sub-ticks distance.
-
getColor
Color getColor()
Color getter.- Returns:
- the color of ruler line and ticks.
-
getLineWidth
double getLineWidth()
Line width getter.- Returns:
- the line width of ruler line, grid and ticks.
-
getSubticksNumber
int getSubticksNumber()
Number of subticks.- Returns:
- the number of subticks or -1 if the computation is automatic.
-
-