de.esw.eengine.renderable.primitive
Class Line

java.lang.Object
  extended by de.esw.eengine.renderable.primitive.Line
All Implemented Interfaces:
IRenderPrimitive

public class Line
extends java.lang.Object
implements IRenderPrimitive

Since:
1.0
Version:
$Id: Line.java 161 2005-07-06 16:53:42Z markusw $
Author:
markusw

Constructor Summary
Line(int x1, int y1, int x2, int y2, java.awt.Color color)
           
 
Method Summary
 void render(java.awt.Graphics2D graphics)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Line

public Line(int x1,
            int y1,
            int x2,
            int y2,
            java.awt.Color color)
Parameters:
x1 - Start x coordinate
y1 - Start y coordinate
x2 - End x coordinate
y2 - End y coordinate
color - Color to draw with
Method Detail

render

public void render(java.awt.Graphics2D graphics)
Specified by:
render in interface IRenderPrimitive
Parameters:
graphics - Graphics to render on
See Also:
IRenderPrimitive.render(java.awt.Graphics2D)