fdda.dialog
Interface GraphicsControl

All Known Subinterfaces:
SwingGraphicsControl
All Known Implementing Classes:
Java2DControl

public interface GraphicsControl

Interface of the component that manages all graphical operations while modelling the system.

Author:
Jörg Rüdenauer

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

POINTER

public static final int POINTER
operation: pointer

See Also:
Constant Field Values

NODE

public static final int NODE
operation: add a node

See Also:
Constant Field Values

LINE

public static final int LINE
operation: add a line

See Also:
Constant Field Values

DELETE

public static final int DELETE
operation: delete

See Also:
Constant Field Values

S_UNLOCKED

public static final int S_UNLOCKED
mode: editing allowed

See Also:
Constant Field Values

S_LOCKED

public static final int S_LOCKED
mode: editing not allowed

See Also:
Constant Field Values

DIRECTED_LINE

public static final int DIRECTED_LINE
operation: add a directed line

See Also:
Constant Field Values
Method Detail

zoomIn

public void zoomIn()
Zooms in. Needs not to be supported.


zoomOut

public void zoomOut()
Zooms out. Needs not to be supported.


selectMovables

public void selectMovables()
Selects all movable components.


paint

public void paint(Graphics g)
Paints the graphics, using a specified Graphics object

Parameters:
g - the graphics object

paintOnImage

public BufferedImage paintOnImage()
Paints the graphics on an image.

Returns:
the new image

deleteSelection

public void deleteSelection()
Deletes selected components


setEditingMode

public void setEditingMode(int mode)
Changes the mode

Parameters:
mode - the new mode (one of the constants)

getEditingMode

public int getEditingMode()
Returns the current mode

Returns:
the current mode

setSelectedAction

public void setSelectedAction(int action)
Selects an action for the user

Parameters:
action - the new action (one of the constants)

getSelectedAction

public int getSelectedAction()
Returns the currently selected action

Returns:
the action

setGraphicalSystem

public void setGraphicalSystem(GraphicalSystem system)
Sets the graphical system that is managed

Parameters:
system - the system

getMessageControl

public MessageControl getMessageControl()
Returns the object that manages the graphical messages.

Returns:
the message control object


API documentation for FDDA version 0.9. Generated on 17/02/2004 14:12.