net.sourceforge.swtlayeredgraph
Class LayerGroup

java.lang.Object
  extended by net.sourceforge.swtlayeredgraph.LayerDrawable
      extended by net.sourceforge.swtlayeredgraph.LayerGroup
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
GraphLayer

public class LayerGroup
extends LayerDrawable
implements java.io.Serializable

Defines a base implementation for a layer group. This allows for a group of objects to be treated as a single object on the layer.

Author:
davija
See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.sourceforge.swtlayeredgraph.LayerDrawable
componentType, extentPointList
 
Constructor Summary
LayerGroup()
          Default constructor.
LayerGroup(java.lang.String name)
          Builds a new layer group with the specified name.
 
Method Summary
 void draw(GCTransformer transformer)
          Draws this object on the GC in the transformer (if visible).
 void drawHover(GCTransformer transformer)
          Draws this object, as an object that has the mouse over it, on the GC in the transformer (if visible).
 void drawSelected(GCTransformer transformer)
          Draws this object, as a selected object, on the GC in the transformer (if visible).
 LayerContainer<LayerDrawable> getContainer()
          Gets the internal container that handles layer management.
 void move(java.lang.Double dx, java.lang.Double dy, CoordinateType type)
          Moves the layer object by the specified x and y deltas.
 
Methods inherited from class net.sourceforge.swtlayeredgraph.LayerDrawable
addExtentChangeListener, addExtentPoint, addNameChangeListner, clearExtents, getExtents, getName, handleMouseDoubleClick, handleMouseDown, handleMouseMove, handleMouseUp, isDirty, isDrawable, isFocused, isGroup, isLayer, isSelected, isVisible, recalculateExtents, removeExtentChangeListener, removeNameChangeListener, setDirty, setFocused, setName, setSelected, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayerGroup

public LayerGroup()
Default constructor.


LayerGroup

public LayerGroup(java.lang.String name)
Builds a new layer group with the specified name.

Parameters:
name - Name of the new layer to add.
Method Detail

draw

public void draw(GCTransformer transformer)
Draws this object on the GC in the transformer (if visible).

Specified by:
draw in class LayerDrawable
Parameters:
transformer - GC Transformer for the device to draw on.

move

public void move(java.lang.Double dx,
                 java.lang.Double dy,
                 CoordinateType type)
Moves the layer object by the specified x and y deltas.

Specified by:
move in class LayerDrawable
Parameters:
dx - X Delta
dy - Y Delta
type - Type of coordinate system for X & Y

drawHover

public void drawHover(GCTransformer transformer)
Draws this object, as an object that has the mouse over it, on the GC in the transformer (if visible).

Specified by:
drawHover in class LayerDrawable
Parameters:
transformer - GC Transformer for the device to draw on.

drawSelected

public void drawSelected(GCTransformer transformer)
Draws this object, as a selected object, on the GC in the transformer (if visible).

Specified by:
drawSelected in class LayerDrawable
Parameters:
transformer - GC Transformer for the device to draw on.

getContainer

public LayerContainer<LayerDrawable> getContainer()
Gets the internal container that handles layer management.

Returns:


Copyright © 2009. All Rights Reserved.