|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--quoggles.stdboxes.input.Input_Box.InputBoxRepresentation
Representation of an input box
| Field Summary | |
private java.lang.String |
boxName
|
private BoxRepresentation |
boxRep
|
private IBox |
iBox
|
private java.awt.geom.Point2D |
outputPos
|
| Constructor Summary | |
Input_Box.InputBoxRepresentation(IBox box,
java.lang.String name)
Constructor of InputBoxRepresentation. |
|
| Method Summary | |
IBox |
getIBox()
Returns the IBox it represents. |
java.awt.geom.Point2D[] |
getRelInputsPos()
Relative position of inputs, measured from top left corner, values between 0 and 1. |
java.awt.geom.Point2D[] |
getRelOutputsPos()
Relative position of outputs, measured from top left corner, values between 0 and 1. |
BoxRepresentation |
getRepresentation()
Gets a representation that can be added to the visual system. |
void |
setParameters(org.graffiti.plugin.parameter.Parameter[] params,
boolean fromBox)
Empty method. |
void |
updateGraphicalRep()
Called whenever something (parameters, number of IO, ...) changed that requires a change in the looks of the box's graphicsal representation. |
void |
updateId()
Empty (no ID displayed). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private BoxRepresentation boxRep
private IBox iBox
private java.awt.geom.Point2D outputPos
private java.lang.String boxName
| Constructor Detail |
public Input_Box.InputBoxRepresentation(IBox box,
java.lang.String name)
InputBoxRepresentation.
box - name - name of the box. Used to decide what input it needs.
Use constants from IBoxConstants here.| Method Detail |
public void updateGraphicalRep()
IBoxRepresentation
Also useful to be called in the constructor of an
IBoxRepresentation.
Implementation node:
Don't assign to the graphicalRep field. Just add components
to it and adjust its size.
updateGraphicalRep in interface IBoxRepresentationIBoxRepresentation.updateGraphicalRep()public BoxRepresentation getRepresentation()
IBoxRepresentation
getRepresentation in interface IBoxRepresentationIBoxRepresentation.getRepresentation()
public void setParameters(org.graffiti.plugin.parameter.Parameter[] params,
boolean fromBox)
setParameters in interface IBoxRepresentationparams - fromBox - setParameters(quoggles.parameters.Parameter[], boolean)public IBox getIBox()
IBoxRepresentation
getIBox in interface IBoxRepresentationIBoxRepresentation.getIBox()public java.awt.geom.Point2D[] getRelOutputsPos()
IBoxRepresentation
getRelOutputsPos in interface IBoxRepresentationgetOtherRelOutputPos()public java.awt.geom.Point2D[] getRelInputsPos()
IBoxRepresentation
getRelInputsPos in interface IBoxRepresentationgetOtherRelInputPos()public void updateId()
updateId in interface IBoxRepresentationIBoxRepresentation.updateId()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||