|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xj.anylogic.engine.presentation.ShapeControlManager
public class ShapeControlManager
This class is responsible for displaying controls, i.e. presentation elements
that have JComponents (like slider, button, text field, etc, or charts), both
persistent or non-persistent, i.e. existing only while they are visible.
A non-persistent control is fully identified by its owner (Presentable
object), id and index. Therefore if e.g. a button is a member of a replicated
group, only one (fisrt) button will be displayed. However, the control
itself may be replicated.
Each control may have an action associated with it. When the user touches the
control, the action is executed mutually exclusive with other possible model
changers.
| Method Summary | |
|---|---|
void |
confirmControl(Presentable p,
int id,
int index,
int x,
int y,
int width,
int height)
Is called by presentable object to notify that a non-persistent control with the given id and index should be displayed at a given location and have a given size. |
void |
confirmControl(ShapeControl ctrl,
int x,
int y,
int width,
int height)
Is called by presentable object to tell the panel that a persistent control should be displayed a given location and have a given size. |
ShapeControl |
findControl(Presentable p,
int id,
int index)
Searches for a (non-persistent) control with the specified id and index. |
void |
setControlValueToDefalt(Presentable p,
int id,
int index)
Sets a (non-persistent) coltrol value to what was provided as the default one. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void setControlValueToDefalt(Presentable p,
int id,
int index)
p - the owner of the coltrolid - the id of the coltrolindex - index of the coltrol (for replicated coltrols)
public ShapeControl findControl(Presentable p,
int id,
int index)
p - the owner of the controlid - the id of the controlindex - the index of the control (for replicated controls)
public void confirmControl(Presentable p,
int id,
int index,
int x,
int y,
int width,
int height)
p - the presentable object owning the controlid - the control idindex - the control index (for replicated controls)x - the x coordinate of the controly - the y coordinate of the controlwidth - the width of the controlheight - the height of the control
public void confirmControl(ShapeControl ctrl,
int x,
int y,
int width,
int height)
ctrl - the controlx - the x coordinate of the controly - the y coordinate of the controlwidth - the width of the controlheight - the height of the control
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||