|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--ViewObject
|
+--PatchLine
PatchLine, a ViewObject, a line between ConnectionBoxes represents a patch.
| Field Summary | |
protected java.beans.PropertyChangeSupport |
pcs
|
| Constructor Summary | |
PatchLine()
Default Constructor |
|
PatchLine(ConnectionBox inputBox,
ConnectionBox outputBox)
Default Constructor, sets the ConnectionBoxes for the relationship. |
|
| Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
Adds a propertyChangeListener which will listen for various events on the object specifically when object state has changed. |
void |
addPropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener pcl)
Adds a propertyChangeListener which will listen for various events on the object specifically when object state has changed. |
boolean |
draggable()
Is this object draggable. |
void |
dragTo(int x,
int y)
Drag the object to x and y |
ConnectionBox |
getInput()
gets the input ConnectionBox. |
ConnectionBox |
getOutput()
gets the output ConnectionBox. |
int |
hashCode()
Hashcode based on the input and output ids |
void |
paintOn(java.awt.Graphics g)
PaintOn the graphics g |
void |
setInput(ConnectionBox i)
sets the input ConnectionBox. |
void |
setOutput(ConnectionBox o)
sets the output ConnectionBox. |
boolean |
wasClicked(int x,
int y)
Was this line clicked on? has a small margin of error |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected final java.beans.PropertyChangeSupport pcs
| Constructor Detail |
public PatchLine()
public PatchLine(ConnectionBox inputBox,
ConnectionBox outputBox)
inputBox - the input ConnectionBoxoutputBox - the output ConnectionBox| Method Detail |
public void paintOn(java.awt.Graphics g)
paintOn in class ViewObjectpublic boolean draggable()
draggable in class ViewObjectpublic ConnectionBox getInput()
public ConnectionBox getOutput()
public void setInput(ConnectionBox i)
i - the inputBoxpublic void setOutput(ConnectionBox o)
public boolean wasClicked(int x,
int y)
wasClicked in class ViewObjectpublic int hashCode()
hashCode in class java.lang.Objectpublic void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
public void addPropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener pcl)
public void dragTo(int x,
int y)
x - the xcoord to drag toy - the ycoord to drag to
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||