fdda.dialog.java2d
Class Java2DMessageControl

java.lang.Object
  |
  +--fdda.dialog.java2d.Java2DMessageControl
All Implemented Interfaces:
MessageControl

public class Java2DMessageControl
extends Object
implements MessageControl

Message control implementation for the java2d component. One instance for each graphical system. An actual repaint is made only at the end of each cycle; the necessary clipping areas are collected while in the cycle.

Author:
Jörg Rüdenauer

Constructor Summary
Java2DMessageControl(GraphicHolder graphicHolder)
          Constructor
 
Method Summary
 void addMessage(Message message)
          Adds a message to the graphics
 void cycleDone()
          Indicates that a cycle of the demo has finished.
 void moveMessages(Set messages)
          Moves the given messages forward.
 void removeAllMessages()
          Removes all messages from the graphics
 void removeMessage(Message message)
          Removes a message from the graphics
 void startCycle()
          Indicates that a new cycle of the demo has begun.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Java2DMessageControl

public Java2DMessageControl(GraphicHolder graphicHolder)
Constructor

Parameters:
graphicHolder - the graphics holder for the project
Method Detail

startCycle

public void startCycle()
Description copied from interface: MessageControl
Indicates that a new cycle of the demo has begun.

Specified by:
startCycle in interface MessageControl

moveMessages

public void moveMessages(Set messages)
Description copied from interface: MessageControl
Moves the given messages forward.

Specified by:
moveMessages in interface MessageControl
Parameters:
messages - the messages

addMessage

public void addMessage(Message message)
Description copied from interface: MessageControl
Adds a message to the graphics

Specified by:
addMessage in interface MessageControl
Parameters:
message - the message

removeMessage

public void removeMessage(Message message)
Description copied from interface: MessageControl
Removes a message from the graphics

Specified by:
removeMessage in interface MessageControl
Parameters:
message - the message

removeAllMessages

public void removeAllMessages()
Description copied from interface: MessageControl
Removes all messages from the graphics

Specified by:
removeAllMessages in interface MessageControl

cycleDone

public void cycleDone()
Description copied from interface: MessageControl
Indicates that a cycle of the demo has finished.

Specified by:
cycleDone in interface MessageControl


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