synergynetframework.appsystem.contentsystem.jme.items.utils
Class DrawLine

java.lang.Object
  extended by synergynetframework.appsystem.contentsystem.jme.items.utils.DrawData
      extended by synergynetframework.appsystem.contentsystem.jme.items.utils.DrawLine
All Implemented Interfaces:
java.io.Serializable

public class DrawLine
extends DrawData
implements java.io.Serializable

The Class DrawLine.

See Also:
Serialized Form

Constructor Summary
DrawLine(long cursorId, java.awt.Point startPoint, java.awt.Point endPoint, java.awt.Color color, float width)
          Instantiates a new draw line.
 
Method Summary
 void clear(java.awt.Graphics2D graphics)
          Clear.
 void draw(java.awt.Graphics2D graphics)
          Draw.
 java.awt.Point getEndPoint()
          Gets the end point.
 java.awt.Point getStartPoint()
          Gets the start point.
 
Methods inherited from class synergynetframework.appsystem.contentsystem.jme.items.utils.DrawData
getColor, getCursorId, getWidth, setColor, setCursorId, setWidth
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DrawLine

public DrawLine(long cursorId,
                java.awt.Point startPoint,
                java.awt.Point endPoint,
                java.awt.Color color,
                float width)
Instantiates a new draw line.

Parameters:
cursorId - the cursor id
startPoint - the start point
endPoint - the end point
color - the color
width - the width
Method Detail

clear

public void clear(java.awt.Graphics2D graphics)
Description copied from class: DrawData
Clear.

Overrides:
clear in class DrawData
Parameters:
graphics - the graphics

draw

public void draw(java.awt.Graphics2D graphics)
Description copied from class: DrawData
Draw.

Overrides:
draw in class DrawData
Parameters:
graphics - the graphics

getEndPoint

public java.awt.Point getEndPoint()
Gets the end point.

Returns:
the end point

getStartPoint

public java.awt.Point getStartPoint()
Gets the start point.

Returns:
the start point