cz.cuni.amis.pogamut.defcon.communication.messages.commands
Class WhiteboardDraw

Package class diagram package WhiteboardDraw
java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.CommandMessage
      extended by cz.cuni.amis.pogamut.defcon.communication.messages.commands.DefConCommand
          extended by cz.cuni.amis.pogamut.defcon.communication.messages.commands.WhiteboardDraw

public class WhiteboardDraw
extends DefConCommand

Draw a line on the whiteboard.


Constructor Summary
WhiteboardDraw(DefConLocation firstPoint, DefConLocation secondPoint)
          Creates new instance of command WhiteboardDraw.
WhiteboardDraw(WhiteboardDraw original)
          Cloning constructor...
 
Method Summary
 DefConLocation getFirstPoint()
          Line begin.
 DefConLocation getSecondPoint()
          Line end.
 void perform()
          Performs the command - to be used only by the DefConCommandExecutor.
 WhiteboardDraw setFirstPoint(DefConLocation firstPoint)
          Line begin.
 WhiteboardDraw setSecondPoint(DefConLocation secondPoint)
          Line end.
 String toHtmlString()
          Returns message in html format.
 String toString()
          Returns human readable serialization of the message.
 
Methods inherited from class cz.cuni.amis.pogamut.defcon.communication.messages.commands.DefConCommand
getStringizedFields, toMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WhiteboardDraw

public WhiteboardDraw(DefConLocation firstPoint,
                      DefConLocation secondPoint)
Creates new instance of command WhiteboardDraw. Draw a line on the whiteboard.

Parameters:
firstPoint - Line begin.
secondPoint - Line end.

WhiteboardDraw

public WhiteboardDraw(WhiteboardDraw original)
Cloning constructor...

Parameters:
original -
Method Detail

getFirstPoint

public DefConLocation getFirstPoint()
Line begin.

Returns:
DefConLocation

setFirstPoint

public WhiteboardDraw setFirstPoint(DefConLocation firstPoint)
Line begin.

Parameters:
firstPoint -
Returns:
this object, allows you to chain setters

getSecondPoint

public DefConLocation getSecondPoint()
Line end.

Returns:
DefConLocation

setSecondPoint

public WhiteboardDraw setSecondPoint(DefConLocation secondPoint)
Line end.

Parameters:
secondPoint -
Returns:
this object, allows you to chain setters

perform

public void perform()
Performs the command - to be used only by the DefConCommandExecutor.

Specified by:
perform in class DefConCommand

toString

public String toString()
Returns human readable serialization of the message.

Overrides:
toString in class CommandMessage
Returns:
human readable string

toHtmlString

public String toHtmlString()
Returns message in html format.

Returns:
html message


Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.