fdda.graphics
Interface Message

All Superinterfaces:
Cloneable, Component
All Known Implementing Classes:
Message

public interface Message
extends Component

Graphical representation of a message. Important is the moveForward-method.

Author:
Jörg Rüdenauer

Field Summary
 
Fields inherited from interface fdda.graphics.Component
SEL_ALL, SEL_EQUALS, SEL_MOVABLES, SEL_NOTHING
 
Method Summary
 boolean doesMoveInLineDirection()
          Returns whether the message moves in the direction of the line
 Color getColor()
          Returns the color of the message
 Line getLine()
          Returns the line on which the message moves
 Message getRealMessage()
          Returns the underlying message of the algorithm
 void moveForward()
          Moves the message forward, towards its destination
 void setColor(Color color)
          Sets the color of the message
 void setRealMessage(Message message)
          Sets the underlying message of the algorithm
 
Methods inherited from interface fdda.graphics.Component
clone, deselect, getGraphicalSystem, getShape, getX, getY, isMovable, isSelected, move, recalculateShape, select, selectableWith, setGraphicalSystem, setXY, visit
 

Method Detail

getRealMessage

public Message getRealMessage()
Returns the underlying message of the algorithm

Returns:
the real message

setRealMessage

public void setRealMessage(Message message)
Sets the underlying message of the algorithm

Parameters:
message - the real message

moveForward

public void moveForward()
Moves the message forward, towards its destination


getLine

public Line getLine()
Returns the line on which the message moves

Returns:
the line

doesMoveInLineDirection

public boolean doesMoveInLineDirection()
Returns whether the message moves in the direction of the line

Returns:
whether the message moves in the direction of the line

getColor

public Color getColor()
Returns the color of the message

Returns:
the color

setColor

public void setColor(Color color)
Sets the color of the message

Parameters:
color - the color


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