svg.groups
Class SVGGroup

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--svg.groups.SVGGroup
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable
Direct Known Subclasses:
SVGActivableGroup, SVGNoteGroup, SVGStimulusGroup

public class SVGGroup
extends java.awt.Container

SVGGroup class represents a group defined in a SVG document (<g> tag). Each group contains the definition of the graphical objects that make up a more sophisticated object (for example an element of a UML diagram).

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
protected  java.util.Vector components
           
protected  java.awt.Point messageLocation
           
protected  java.lang.String name
           
protected  java.awt.Dimension size
           
protected  java.lang.String type
           
protected  java.lang.String uuid
           
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
SVGGroup()
          Constructor.
 
Method Summary
 void add(SVGEllipse ellipse)
          Adds an ellipse to the group.
 void add(SVGLine line)
          Adds a line to the group.
 void add(SVGPolygon polygon)
          Adds a polygon to the group.
 void add(SVGPolyline polyline)
          Adds a polyline to the group.
 void add(SVGRect rect)
          Adds a rectangle to the group.
 void add(SVGText text)
          Adds some text to the group.
 java.lang.String getMessage()
          Gets the message painted with the group.
 java.lang.String getName()
          Gets the name of the group.
 java.lang.String getType()
          Gets the type of the group (e.g.: class, actor, use_case etc.).
 java.lang.String getUuid()
          Gets the UUID (Universally Unique IDentifier) of the group.
 void paint(java.awt.Graphics g)
           
 void printMessage(java.lang.String message)
          Sets a message to be printed when the group is painted.
 void setName(java.lang.String name)
          Sets the name of the group.
 void setSize(java.awt.Dimension size)
          Sets the size of the group.
 void setType(java.lang.String type)
          Sets the type of the group (e.g.: class, actor, use_case etc.).
 void setUuid(java.lang.String uuid)
          Sets the UUID (Universally Unique IDentifier) of the group.
 void update(java.awt.Graphics g)
           
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected java.lang.String name

type

protected java.lang.String type

uuid

protected java.lang.String uuid

size

protected java.awt.Dimension size

components

protected java.util.Vector components

messageLocation

protected java.awt.Point messageLocation
Constructor Detail

SVGGroup

public SVGGroup()
Constructor.

Method Detail

setName

public void setName(java.lang.String name)
Sets the name of the group.

Overrides:
setName in class java.awt.Component

getName

public java.lang.String getName()
Gets the name of the group.

Overrides:
getName in class java.awt.Component
Returns:
name the name of the group.

setType

public void setType(java.lang.String type)
Sets the type of the group (e.g.: class, actor, use_case etc.).


getType

public java.lang.String getType()
Gets the type of the group (e.g.: class, actor, use_case etc.).

Returns:
type the type of the group.

setUuid

public void setUuid(java.lang.String uuid)
Sets the UUID (Universally Unique IDentifier) of the group.


getUuid

public java.lang.String getUuid()
Gets the UUID (Universally Unique IDentifier) of the group.

Returns:
uuid the UUID of the group.

setSize

public void setSize(java.awt.Dimension size)
Sets the size of the group.

Overrides:
setSize in class java.awt.Component

add

public void add(SVGRect rect)
Adds a rectangle to the group.


add

public void add(SVGLine line)
Adds a line to the group.


add

public void add(SVGPolyline polyline)
Adds a polyline to the group.


add

public void add(SVGPolygon polygon)
Adds a polygon to the group.


add

public void add(SVGEllipse ellipse)
Adds an ellipse to the group.


add

public void add(SVGText text)
Adds some text to the group.


update

public void update(java.awt.Graphics g)
Overrides:
update in class java.awt.Container

paint

public void paint(java.awt.Graphics g)
Overrides:
paint in class java.awt.Container

printMessage

public void printMessage(java.lang.String message)
Sets a message to be printed when the group is painted.


getMessage

public java.lang.String getMessage()
Gets the message painted with the group.

Returns:
message the current message.