|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Interface for classes that specify properties that affect how the graphical representation will look like. This includes for example the position of inputs and outputs.
| 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)
Sets the parameters for this representation. |
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()
Called when the ID changed (e.g. the box number). |
| Method Detail |
public BoxRepresentation getRepresentation()
public void updateGraphicalRep()
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.
public void updateId()
public void setParameters(org.graffiti.plugin.parameter.Parameter[] params,
boolean fromBox)
setParameters method
of the box associated with this representation is called (with the
second parameter set to true).
Should be overridden and called by subclasses with parameters. They then
update the values of the representations of the parameters with the new
values of the set parameters.
params - fromBox - public java.awt.geom.Point2D[] getRelOutputsPos()
public java.awt.geom.Point2D[] getRelInputsPos()
public IBox getIBox()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||