|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--svg.groups.SVGGroup
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).
| 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 |
protected java.lang.String name
protected java.lang.String type
protected java.lang.String uuid
protected java.awt.Dimension size
protected java.util.Vector components
protected java.awt.Point messageLocation
| Constructor Detail |
public SVGGroup()
| Method Detail |
public void setName(java.lang.String name)
setName in class java.awt.Componentpublic java.lang.String getName()
getName in class java.awt.Componentname the name of the group.public void setType(java.lang.String type)
public java.lang.String getType()
type the type of the group.public void setUuid(java.lang.String uuid)
public java.lang.String getUuid()
uuid the UUID of the group.public void setSize(java.awt.Dimension size)
setSize in class java.awt.Componentpublic void add(SVGRect rect)
public void add(SVGLine line)
public void add(SVGPolyline polyline)
public void add(SVGPolygon polygon)
public void add(SVGEllipse ellipse)
public void add(SVGText text)
public void update(java.awt.Graphics g)
update in class java.awt.Containerpublic void paint(java.awt.Graphics g)
paint in class java.awt.Containerpublic void printMessage(java.lang.String message)
public java.lang.String getMessage()
message the current message.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||