rcssjava.monitor
Class FieldShape

java.lang.Object
  extended by rcssjava.monitor.FieldShape
All Implemented Interfaces:
java.lang.Comparable<FieldShape>
Direct Known Subclasses:
FieldCircle, FieldLine, FieldRect, FieldText

public abstract class FieldShape
extends java.lang.Object
implements java.lang.Comparable<FieldShape>

Shape drawn on field


Field Summary
protected  int depth
           
 
Constructor Summary
FieldShape()
           
 
Method Summary
 int compareTo(FieldShape fs)
          Allows shapes to be sorted by depth.
abstract  void draw(rcssjava.monitor.FieldCanvas fc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

depth

protected int depth
Constructor Detail

FieldShape

public FieldShape()
Method Detail

compareTo

public int compareTo(FieldShape fs)
Allows shapes to be sorted by depth. Higher values of depth are drawn on top. The field itself is 0.

Specified by:
compareTo in interface java.lang.Comparable<FieldShape>

draw

public abstract void draw(rcssjava.monitor.FieldCanvas fc)