|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--physicon.graphLib.GraphElementBase | +--physicon.graphLib.GraphScaleBase | +--physicon.graphLib.LinearScale
Represents the linear scale. The scale is automatically oriented horizontally or vertically. The scale automatically chooses block type (2, 4, 5, 10 dashes/block).
GraphScaleBase
Constructor Summary | |
LinearScale(LinearScaleDrawer _drawer,
DoublePoint _minDpt,
DoublePoint _maxDpt)
Constructor. |
|
LinearScale(LinearScaleDrawer _drawer,
DoublePoint _minDpt,
DoublePoint _maxDpt,
int _numberOfLargeDashes)
Constructor. |
Method Summary | |
DoublePoint |
getMaxPoint()
Returns the copy of the initial point |
DoublePoint |
getMinPoint()
Returns the copy of the initial point |
void |
setAutoMode()
Sets the auto mode. |
void |
setManualMode(double _step,
double _norm,
int _dashPerBlock)
Manually corrects the parameters of scale. |
void |
setMaxParam(double _param)
Changes the final point of the scale. |
void |
setMinParam(double _param)
Changes the initial point of the scale. |
void |
setRange(DoublePoint _minDpt,
DoublePoint _maxDpt)
Updates start and final positions of the scale. |
void |
updateDrawer()
Updates the drawer object. |
Methods inherited from class physicon.graphLib.GraphScaleBase |
getMaxParam,
getMinParam |
Methods inherited from class physicon.graphLib.GraphElementBase |
addDependent,
contains,
contains,
getContainer,
getContext,
getDepend,
getDrawer,
getGEObject,
getGraphElement,
getRedrawFlag,
getRefPoint,
getRoughRect,
getZLevel,
isCreated,
isVisible,
setDrawer,
setRedrawFlag,
setRefPoint,
setVisible,
setZLevel,
update |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public LinearScale(LinearScaleDrawer _drawer, DoublePoint _minDpt, DoublePoint _maxDpt, int _numberOfLargeDashes)
_drawer
- - the drawer object for the current
scale_minDpt
- - the start point of the scale._maxDpt
- - the finish point of the scale. This is the
point where the scale is finished and where the arrow is
started. minParam and maxParam of the super object
are setted to the _minDpt.x and _maxDpt.x for the
horizontal scale and to the _minDpt.y and _maxDpt.y
for the vertical scale_numberOfLargeDashes
- - number of large dashes in scale.
If zero number is automatically chosen.public LinearScale(LinearScaleDrawer _drawer, DoublePoint _minDpt, DoublePoint _maxDpt)
_drawer
- - the drawer object for the current
scale_minDpt
- - the start point of the scale._maxDpt
- - the finish point of the scale. This is the
point where the scale is finished and where the arrow is
started. minParam and maxParam of the super object
are setted to the _minDpt.x and _maxDpt.x for the
horizontal scale and to the _minDpt.y and _maxDpt.y
for the vertical scaleMethod Detail |
public void setManualMode(double _step, double _norm, int _dashPerBlock)
_step
- - the step between the text labels._norm
- - the parameter to round the current value displayed on the scale.
The current value is devided on the given _norm. then it is rounded and then
it is multiplayed on _norm. Thus if we want to round the value on the scale
to the int value, we set _norm = 1; if we want 1 decimal sign after the point
we set _norm = 10; ..._dashPerBlock
- - the number of dashes per one block.public void setAutoMode()
public void updateDrawer()
LinearScaleDrawer
public void setMinParam(double _param)
_param
- - new initial value of scale.public void setMaxParam(double _param)
_param
- - new final value of scale.public void setRange(DoublePoint _minDpt, DoublePoint _maxDpt)
public DoublePoint getMinPoint()
public DoublePoint getMaxPoint()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |