edu.davidson.display
Class RectangleThing

java.lang.Object
  |
  +--edu.davidson.display.Thing
        |
        +--edu.davidson.display.RectangleThing
All Implemented Interfaces:
SDataSource

public class RectangleThing
extends Thing


Constructor Summary
RectangleThing(SGraph o, double x, double y, int width, int height)
           
 
Method Summary
 boolean isInsideThing(int xPix, int yPix)
           
 void paint(java.awt.Graphics osg)
           
 void paintHighlight(java.awt.Graphics osg)
           
 
Methods inherited from class edu.davidson.display.Thing
getColor, getID, getOwner, getSize, getVariables, getVarStrings, getX, getY, isNoDrag, isVisible, paintCoordinates, setColor, setDragable, setNoDrag, setOwner, setSize, setVisible, setX, setY
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RectangleThing

public RectangleThing(SGraph o,
                      double x,
                      double y,
                      int width,
                      int height)
Method Detail

paint

public void paint(java.awt.Graphics osg)
Overrides:
paint in class Thing

paintHighlight

public void paintHighlight(java.awt.Graphics osg)
Overrides:
paintHighlight in class Thing

isInsideThing

public final boolean isInsideThing(int xPix,
                                   int yPix)
Overrides:
isInsideThing in class Thing

Copyright Wolfgang Christian

Visit the Davidson CollegeSTools Documentation Page