cz.cuni.jagrlib
Class DefaultGraphicsViewer.HudLine

java.lang.Object
  extended by cz.cuni.jagrlib.DefaultGraphicsViewer.HudLine
All Implemented Interfaces:
DefaultGraphicsViewer.HudPrimitive
Enclosing class:
DefaultGraphicsViewer

protected static class DefaultGraphicsViewer.HudLine
extends java.lang.Object
implements DefaultGraphicsViewer.HudPrimitive

Line for HUD drawing.


Field Summary
protected  int x1
          X coordinate of starting point.
protected  int x2
          X coordinate of ending point.
protected  int y1
          Y coordinate of starting point.
protected  int y2
          Y coordinate of ending point.
 
Constructor Summary
DefaultGraphicsViewer.HudLine(int xa, int ya, int xb, int yb)
           
 
Method Summary
 void draw(java.awt.Graphics g)
          Draws this primitive using the given graphics.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

x1

protected int x1
X coordinate of starting point.


y1

protected int y1
Y coordinate of starting point.


x2

protected int x2
X coordinate of ending point.


y2

protected int y2
Y coordinate of ending point.

Constructor Detail

DefaultGraphicsViewer.HudLine

public DefaultGraphicsViewer.HudLine(int xa,
                                     int ya,
                                     int xb,
                                     int yb)
Method Detail

draw

public void draw(java.awt.Graphics g)
Draws this primitive using the given graphics.

Specified by:
draw in interface DefaultGraphicsViewer.HudPrimitive