|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface of the component that manages all graphical operations while modelling the system.
Field Summary | |
static int |
DELETE
operation: delete |
static int |
DIRECTED_LINE
operation: add a directed line |
static int |
LINE
operation: add a line |
static int |
NODE
operation: add a node |
static int |
POINTER
operation: pointer |
static int |
S_LOCKED
mode: editing not allowed |
static int |
S_UNLOCKED
mode: editing allowed |
Method Summary | |
void |
deleteSelection()
Deletes selected components |
int |
getEditingMode()
Returns the current mode |
MessageControl |
getMessageControl()
Returns the object that manages the graphical messages. |
int |
getSelectedAction()
Returns the currently selected action |
void |
paint(Graphics g)
Paints the graphics, using a specified Graphics object |
BufferedImage |
paintOnImage()
Paints the graphics on an image. |
void |
selectMovables()
Selects all movable components. |
void |
setEditingMode(int mode)
Changes the mode |
void |
setGraphicalSystem(GraphicalSystem system)
Sets the graphical system that is managed |
void |
setSelectedAction(int action)
Selects an action for the user |
void |
zoomIn()
Zooms in. |
void |
zoomOut()
Zooms out. |
Field Detail |
public static final int POINTER
public static final int NODE
public static final int LINE
public static final int DELETE
public static final int S_UNLOCKED
public static final int S_LOCKED
public static final int DIRECTED_LINE
Method Detail |
public void zoomIn()
public void zoomOut()
public void selectMovables()
public void paint(Graphics g)
g
- the graphics objectpublic BufferedImage paintOnImage()
public void deleteSelection()
public void setEditingMode(int mode)
mode
- the new mode (one of the constants)public int getEditingMode()
public void setSelectedAction(int action)
action
- the new action (one of the constants)public int getSelectedAction()
public void setGraphicalSystem(GraphicalSystem system)
system
- the systempublic MessageControl getMessageControl()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |