public class GroupHandlerAttachment extends AbstractAttachment
element, network, ui
Constructor and Description |
---|
GroupHandlerAttachment(GroupUI groupUI)
Constructs attachment by given group ui.
|
Modifier and Type | Method and Description |
---|---|
void |
elementPropertyChange(java.beans.PropertyChangeEvent evt)
Invoked when the related element's any property change.
|
java.awt.Rectangle |
getBounds()
Return integer rectangle which completely encloses this attachement.
|
java.awt.Point |
getLocation()
Get the attachement paint location for specified element.
|
void |
paint(java.awt.Graphics2D g2d)
Paint specified element's name on specified graph.
|
void |
performAction(int gesture,
java.awt.event.MouseEvent e)
by default invoke ui performAction
|
contains, getElementUI, getName, getShape, isSelectable, isShownOnTop
public GroupHandlerAttachment(GroupUI groupUI)
groupUI
- group ui.public java.awt.Point getLocation()
TopRight
element
- element object.public void paint(java.awt.Graphics2D g2d)
g
- graph object.element
- element object.public java.awt.Rectangle getBounds()
g
- Graph object.element
- element object.public void performAction(int gesture, java.awt.event.MouseEvent e)
AbstractAttachment
performAction
in interface Attachment
performAction
in class AbstractAttachment
gesture
- int mouse action gesturee
- MouseEvent mouse eventpublic void elementPropertyChange(java.beans.PropertyChangeEvent evt)
elementPropertyChange
in interface Attachment
elementPropertyChange
in class AbstractAttachment
evt
- property change eventCopyright © 2002 - 2010 Serva Software. All Rights Reserved.