edu.davidson.display
Class Thing

java.lang.Object
  |
  +--edu.davidson.display.Thing
All Implemented Interfaces:
SDataSource
Direct Known Subclasses:
ArrowThing, BoxThing, CaptionThing, CircleThing, MarkerThing, RectangleThing, ShellThing, TextThing

public class Thing
extends java.lang.Object
implements SDataSource


Constructor Summary
Thing(SGraph c)
           
Thing(SGraph c, double x, double y)
           
 
Method Summary
 java.awt.Color getColor()
           
 int getID()
           
 SApplet getOwner()
           
 int getSize()
           
 double[][] getVariables()
           
 java.lang.String[] getVarStrings()
           
 double getX()
           
 double getY()
           
 boolean isInsideThing(int i, int j)
           
 boolean isNoDrag()
           
 boolean isVisible()
           
 void paint(java.awt.Graphics g)
           
 void paintCoordinates(java.awt.Graphics g, int xpix, int ypix)
           
 void paintHighlight(java.awt.Graphics g)
           
 void setColor(java.awt.Color c)
           
 void setDragable(boolean d)
           
 void setNoDrag(boolean nd)
           
 void setOwner(SApplet owner)
           
 void setSize(int sz)
           
 void setVisible(boolean v)
           
 void setX(double x)
           
 void setY(double y)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Thing

public Thing(SGraph c)

Thing

public Thing(SGraph c,
             double x,
             double y)
Method Detail

getID

public int getID()
Specified by:
getID in interface SDataSource

isNoDrag

public final boolean isNoDrag()

setNoDrag

public final void setNoDrag(boolean nd)

setOwner

public void setOwner(SApplet owner)
Specified by:
setOwner in interface SDataSource

getOwner

public SApplet getOwner()
Specified by:
getOwner in interface SDataSource

getVarStrings

public java.lang.String[] getVarStrings()
Specified by:
getVarStrings in interface SDataSource

isInsideThing

public boolean isInsideThing(int i,
                             int j)

getSize

public final int getSize()

setSize

public final void setSize(int sz)

getColor

public final java.awt.Color getColor()

setColor

public final void setColor(java.awt.Color c)

setDragable

public final void setDragable(boolean d)

setVisible

public final void setVisible(boolean v)

isVisible

public final boolean isVisible()

getX

public final double getX()

setX

public final void setX(double x)

getY

public final double getY()

setY

public final void setY(double y)

getVariables

public double[][] getVariables()
Specified by:
getVariables in interface SDataSource

paint

public void paint(java.awt.Graphics g)

paintHighlight

public void paintHighlight(java.awt.Graphics g)

paintCoordinates

public void paintCoordinates(java.awt.Graphics g,
                             int xpix,
                             int ypix)

Copyright Wolfgang Christian

Visit the Davidson CollegeSTools Documentation Page