quoggles.auxboxes.booleanop
Class BooleanOp_Rep
java.lang.Object
|
+--quoggles.representation.DefaultBoxRepresentation
|
+--quoggles.auxboxes.booleanop.BooleanOp_Rep
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.util.EventListener, IBoxRepresentation
- public class BooleanOp_Rep
- extends DefaultBoxRepresentation
- implements java.awt.event.ActionListener
|
Field Summary |
private java.awt.geom.Point2D |
input1
|
private java.awt.geom.Point2D |
input2
|
private javax.swing.JComboBox |
operCombo
|
|
Method Summary |
void |
actionPerformed(java.awt.event.ActionEvent e)
|
java.awt.geom.Point2D[] |
getRelInputsPos()
Relative position of inputs, measured from top left corner,
values between 0 and 1.
|
void |
setParameters(org.graffiti.plugin.parameter.Parameter[] params,
boolean fromBox)
According to the value of the second parameter tells the box about the
change or not.
|
void |
updateGraphicalRep()
Default implementation; uses
createStandardPanel(BoxRepresentation) |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
operCombo
private javax.swing.JComboBox operCombo
input1
private java.awt.geom.Point2D input1
input2
private java.awt.geom.Point2D input2
BooleanOp_Rep
public BooleanOp_Rep(IBox representedBox)
- Parameters:
representedBox -
updateGraphicalRep
public void updateGraphicalRep()
- Description copied from class:
DefaultBoxRepresentation
- Default implementation; uses
createStandardPanel(BoxRepresentation)
- Specified by:
updateGraphicalRep in interface IBoxRepresentation- Overrides:
updateGraphicalRep in class DefaultBoxRepresentation
- See Also:
IBoxRepresentation.updateGraphicalRep()
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformed in interface java.awt.event.ActionListener
- See Also:
ActionListener.actionPerformed(java.awt.event.ActionEvent)
setParameters
public void setParameters(org.graffiti.plugin.parameter.Parameter[] params,
boolean fromBox)
- Description copied from class:
DefaultBoxRepresentation
- According to the value of the second parameter tells the box about the
change or not.
Calls
updateInputOutput().
- Specified by:
setParameters in interface IBoxRepresentation- Overrides:
setParameters in class DefaultBoxRepresentation
- Parameters:
params - fromBox - - See Also:
setParameters(org.graffiti.plugin.parameter.Parameter[], boolean)
getRelInputsPos
public java.awt.geom.Point2D[] getRelInputsPos()
- Description copied from interface:
IBoxRepresentation
- Relative position of inputs, measured from top left corner,
values between 0 and 1.
Only used if the box has several inputs.
- Specified by:
getRelInputsPos in interface IBoxRepresentation- Overrides:
getRelInputsPos in class DefaultBoxRepresentation
- See Also:
IBoxRepresentation.getRelInputsPos()