y25.view.realizer
Class DummyLayerEdgeRealizer25D

java.lang.Object
  extended byy25.view.realizer.DummyLayerEdgeRealizer25D
All Implemented Interfaces:
LayerEdgeLayout25D, LayerEdgeRealizer25D

public class DummyLayerEdgeRealizer25D
extends Object
implements LayerEdgeRealizer25D

Implementation of a LayerEdgeRealizer with no function. This is useful for debugging.


Field Summary
 
Fields inherited from interface y25.view.LayerEdgeRealizer25D
MODE_2D, MODE_3D
 
Constructor Summary
DummyLayerEdgeRealizer25D()
           
 
Method Summary
 void bindLayerEdge(LayerEdge le)
          Binds this realizer to the passed layer edge.
 LayerEdgeRealizer25D createCopy()
          Creates a copy of this realizer and returns it.
 Arrow getArrow()
          Returns the arrow at the target of the layer edge.
 BoundingBox getBoundingBox()
          Returns the bounding box that encompasses the entire layer edge.
 LayerEdge getLayerEdge()
          Returns the layer edge that has been bound to this realizer, or null if no layer edge has been bound yet.
 Color getLineColor()
          Returns the color of this layer edge realizer.
 int getLineDisplayMode()
          Returns the current display mode for drawing lines.
 double getLineRadius()
          Returns the radius of this layer edge realizer.
 Arrow getSourceArrow()
          Returns the arrow at the source of the layer edge;
 NodeRealizer getSourceRealizer()
          Returns the realizer of the source node or null, if not bound to a layer edge yet.
 Arrow getTargetArrow()
          Returns the arrow at the target of the layer edge;
 NodeRealizer getTargetRealizer()
          Returns the realizer of the target node or null, if not bound to a layer edge yet.
 boolean isSelected()
          Returns true if this realizer is currently selected, false otherwise.
 void paintGL(GLAutoDrawable drawable, Camera camera)
          Renders the layer edge this realizer is bound to into the given drawable.
 void setArrow(Arrow arrow)
          Sets the arrow at the target of the layer edge.
 void setLineColor(Color color)
          Sets the color of this layer edge realizer.
 void setLineDisplayMode(int mode)
          Sets the current display mode for drawing lines.
 void setLineRadius(double d)
          Sets the radius of this layer edge realizer.
 void setSelected(boolean selected)
          Sets the selection state of this realizer.
 void setSourceArrow(Arrow arrow)
          Sets the arrow at the source of the layer edge.
 void setTargetArrow(Arrow arrow)
          Sets the arrow at the target of the layer edge.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummyLayerEdgeRealizer25D

public DummyLayerEdgeRealizer25D()
Method Detail

createCopy

public LayerEdgeRealizer25D createCopy()
Description copied from interface: LayerEdgeRealizer25D
Creates a copy of this realizer and returns it.

Specified by:
createCopy in interface LayerEdgeRealizer25D

paintGL

public void paintGL(GLAutoDrawable drawable,
                    Camera camera)
Description copied from interface: LayerEdgeRealizer25D
Renders the layer edge this realizer is bound to into the given drawable. If no layer edge is bound to this realizer, nothing happens.

The passed camera is the one that is used to display this layer edge. It can be used, for example, to render a layer edge differently depending on the viewing position, or to display labels that always face the viewer.

Specified by:
paintGL in interface LayerEdgeRealizer25D

bindLayerEdge

public void bindLayerEdge(LayerEdge le)
Description copied from interface: LayerEdgeRealizer25D
Binds this realizer to the passed layer edge.

Specified by:
bindLayerEdge in interface LayerEdgeRealizer25D

getLayerEdge

public LayerEdge getLayerEdge()
Description copied from interface: LayerEdgeRealizer25D
Returns the layer edge that has been bound to this realizer, or null if no layer edge has been bound yet.

Specified by:
getLayerEdge in interface LayerEdgeRealizer25D

setLineColor

public void setLineColor(Color color)
Description copied from interface: LayerEdgeRealizer25D
Sets the color of this layer edge realizer.

Specified by:
setLineColor in interface LayerEdgeRealizer25D

getLineColor

public Color getLineColor()
Description copied from interface: LayerEdgeRealizer25D
Returns the color of this layer edge realizer.

Specified by:
getLineColor in interface LayerEdgeRealizer25D

setLineRadius

public void setLineRadius(double d)
Description copied from interface: LayerEdgeRealizer25D
Sets the radius of this layer edge realizer.

Specified by:
setLineRadius in interface LayerEdgeRealizer25D

getLineRadius

public double getLineRadius()
Description copied from interface: LayerEdgeRealizer25D
Returns the radius of this layer edge realizer.

Specified by:
getLineRadius in interface LayerEdgeRealizer25D

isSelected

public boolean isSelected()
Description copied from interface: LayerEdgeRealizer25D
Returns true if this realizer is currently selected, false otherwise.

Specified by:
isSelected in interface LayerEdgeRealizer25D

setSelected

public void setSelected(boolean selected)
Description copied from interface: LayerEdgeRealizer25D
Sets the selection state of this realizer.

Specified by:
setSelected in interface LayerEdgeRealizer25D

getBoundingBox

public BoundingBox getBoundingBox()
Description copied from interface: LayerEdgeLayout25D
Returns the bounding box that encompasses the entire layer edge.

Specified by:
getBoundingBox in interface LayerEdgeLayout25D

getLineDisplayMode

public int getLineDisplayMode()
Description copied from interface: LayerEdgeRealizer25D
Returns the current display mode for drawing lines. Can be either LayerEdgeRealizer25D.MODE_2D or LayerEdgeRealizer25D.MODE_3D.

Specified by:
getLineDisplayMode in interface LayerEdgeRealizer25D

setLineDisplayMode

public void setLineDisplayMode(int mode)
Description copied from interface: LayerEdgeRealizer25D
Sets the current display mode for drawing lines. Can be either LayerEdgeRealizer25D.MODE_2D or LayerEdgeRealizer25D.MODE_3D.

Specified by:
setLineDisplayMode in interface LayerEdgeRealizer25D

getArrow

public Arrow getArrow()
Description copied from interface: LayerEdgeRealizer25D
Returns the arrow at the target of the layer edge. Same as getTargetArrow.

Specified by:
getArrow in interface LayerEdgeRealizer25D

getSourceArrow

public Arrow getSourceArrow()
Description copied from interface: LayerEdgeRealizer25D
Returns the arrow at the source of the layer edge;

Specified by:
getSourceArrow in interface LayerEdgeRealizer25D

getTargetArrow

public Arrow getTargetArrow()
Description copied from interface: LayerEdgeRealizer25D
Returns the arrow at the target of the layer edge;

Specified by:
getTargetArrow in interface LayerEdgeRealizer25D

setArrow

public void setArrow(Arrow arrow)
Description copied from interface: LayerEdgeRealizer25D
Sets the arrow at the target of the layer edge. Same as setTargetArrow.

Specified by:
setArrow in interface LayerEdgeRealizer25D

setSourceArrow

public void setSourceArrow(Arrow arrow)
Description copied from interface: LayerEdgeRealizer25D
Sets the arrow at the source of the layer edge.

Specified by:
setSourceArrow in interface LayerEdgeRealizer25D

setTargetArrow

public void setTargetArrow(Arrow arrow)
Description copied from interface: LayerEdgeRealizer25D
Sets the arrow at the target of the layer edge.

Specified by:
setTargetArrow in interface LayerEdgeRealizer25D

getSourceRealizer

public NodeRealizer getSourceRealizer()
Description copied from interface: LayerEdgeRealizer25D
Returns the realizer of the source node or null, if not bound to a layer edge yet.

Specified by:
getSourceRealizer in interface LayerEdgeRealizer25D

getTargetRealizer

public NodeRealizer getTargetRealizer()
Description copied from interface: LayerEdgeRealizer25D
Returns the realizer of the target node or null, if not bound to a layer edge yet.

Specified by:
getTargetRealizer in interface LayerEdgeRealizer25D