quoggles.changeboxes.algorithm
Class Algorithm_Rep

java.lang.Object
  |
  +--quoggles.representation.DefaultBoxRepresentation
        |
        +--quoggles.changeboxes.algorithm.Algorithm_Rep
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, IBoxRepresentation

public class Algorithm_Rep
extends DefaultBoxRepresentation
implements java.awt.event.ActionListener

Represents a sub query saved in a file.


Field Summary
private  javax.swing.JComboBox combo
           
 
Fields inherited from class quoggles.representation.DefaultBoxRepresentation
box, classLabel, graphicalRep, inputLabel, INPUTLABEL, inputsPos, outputLabel, OUTPUTLABEL, outputsPos, parameters
 
Constructor Summary
Algorithm_Rep(IBox representedBox)
          Constructor of the box.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 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)
protected  void updateInputOutput()
          After a change in the parameters, the input / output type may have changed.
 
Methods inherited from class quoggles.representation.DefaultBoxRepresentation
createStandardPanel, getIBox, getRelInputsPos, getRelOutputsPos, getRepresentation, repaintBoxRep, standardizeBoxRep, updateId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

combo

private javax.swing.JComboBox combo
Constructor Detail

Algorithm_Rep

public Algorithm_Rep(IBox representedBox)
Constructor of the box.

Parameters:
representedBox -
Method Detail

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()

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:
IBoxRepresentation.setParameters(org.graffiti.plugin.parameter.Parameter[], boolean)

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)

updateInputOutput

protected void updateInputOutput()
After a change in the parameters, the input / output type may have changed. This method takes care of changing the labels in the box.

Overrides:
updateInputOutput in class DefaultBoxRepresentation