quoggles.stdboxes.connectors
Class OneOneConnector_Rep

java.lang.Object
  |
  +--quoggles.representation.DefaultBoxRepresentation
        |
        +--quoggles.stdboxes.connectors.OneOneConnector_Rep
All Implemented Interfaces:
IBoxRepresentation

public class OneOneConnector_Rep
extends DefaultBoxRepresentation

Represents a OneOneConnector_Box.


Nested Class Summary
 class OneOneConnector_Rep.MyBoxRepresentation
          The graphical representation (i.e. a line) of the connector.
 
Field Summary
private  boolean drawFromTL
           
private  java.awt.geom.Point2D relInputPosBL
           
private  java.awt.geom.Point2D relInputPosTL
           
private  java.awt.geom.Point2D relOutputPosBL
           
private  java.awt.geom.Point2D relOutputPosTL
           
 
Fields inherited from class quoggles.representation.DefaultBoxRepresentation
box, classLabel, graphicalRep, inputLabel, INPUTLABEL, inputsPos, outputLabel, OUTPUTLABEL, outputsPos, parameters
 
Constructor Summary
OneOneConnector_Rep(IBox representedBox)
          Constructs the representation.
 
Method Summary
 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.
 void updateGraphicalRep()
          Empty implementation.
 
Methods inherited from class quoggles.representation.DefaultBoxRepresentation
createStandardPanel, getIBox, getRepresentation, repaintBoxRep, setParameters, standardizeBoxRep, updateId, updateInputOutput
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

drawFromTL

private boolean drawFromTL

relInputPosTL

private java.awt.geom.Point2D relInputPosTL

relOutputPosTL

private java.awt.geom.Point2D relOutputPosTL

relInputPosBL

private java.awt.geom.Point2D relInputPosBL

relOutputPosBL

private java.awt.geom.Point2D relOutputPosBL
Constructor Detail

OneOneConnector_Rep

public OneOneConnector_Rep(IBox representedBox)
Constructs the representation.

Parameters:
representedBox -
Method Detail

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

getRelOutputsPos

public java.awt.geom.Point2D[] getRelOutputsPos()
Description copied from interface: IBoxRepresentation
Relative position of outputs, measured from top left corner, values between 0 and 1. Only used if the box has several outputs.

Specified by:
getRelOutputsPos in interface IBoxRepresentation
Overrides:
getRelOutputsPos in class DefaultBoxRepresentation
See Also:
IBoxRepresentation.getRelOutputsPos()

updateGraphicalRep

public void updateGraphicalRep()
Empty implementation.

Specified by:
updateGraphicalRep in interface IBoxRepresentation
Overrides:
updateGraphicalRep in class DefaultBoxRepresentation
See Also:
IBoxRepresentation.updateGraphicalRep()