public class LinkBundleHandlerAttachment extends ComponentAttachment
CLOSE, MINIMIZE, SHOW, SHRINK
element, network, ui
Constructor and Description |
---|
LinkBundleHandlerAttachment(LinkUI linkUI)
Constructs link bundle handler attachment by given link ui.
|
Modifier and Type | Method and Description |
---|---|
java.awt.Rectangle |
getBounds()
Return integer rectangle which completely encloses this attachment paint
area for this element.
|
protected java.lang.String |
getLabelContent() |
java.awt.Shape |
getShape()
Get the shape of this attachment.
|
void |
paint(java.awt.Graphics2D g2d)
Paint this attachment.
|
void |
performAction(int gesture,
java.awt.event.MouseEvent e)
by default invoke ui performAction
|
protected void |
update() |
animate, elementPropertyChange, getAlpha, getArc, getBodyColor, getBodyGradientColor, getBorderColor, getBorderStroke, getComponent, getComponentAt, getDirection, getHeight, getLocation, getMinimizedIcon, getName, getPosition, getShadowColor, getShadowOffset, getShrinkedComponent, getStyle, getTail, getWidth, getXOffset, getYOffset, invalidate, isAutoAdjustDirection, isBodyGradient, isBodyVisible, isBorderVisible, isClosable, isMinimizable, isMinimized, isShadowVisible, isShrinkable, isShrinked, setAlpha, setArc, setAutoAdjustDirection, setBodyColor, setBodyGradient, setBodyGradientColor, setBodyGradientType, setBodyVisible, setBorderColor, setBorderStroke, setBorderVisible, setClosable, setComponent, setDirection, setHeight, setMinimizable, setMinimized, setMinimized, setMinimizedIcon, setPosition, setShadowColor, setShadowOffset, setShadowVisible, setShrinkable, setShrinked, setShrinked, setShrinkedComponent, setSize, setStyle, setTail, setWidth, setXOffset, setYOffset
contains, getElementUI, isSelectable, isShownOnTop
public LinkBundleHandlerAttachment(LinkUI linkUI)
linkUI
- the link ui objectpublic void performAction(int gesture, java.awt.event.MouseEvent e)
AbstractAttachment
performAction
in interface Attachment
performAction
in class ComponentAttachment
gesture
- int mouse action gesturee
- MouseEvent mouse eventprotected java.lang.String getLabelContent()
protected void update()
update
in class ComponentAttachment
public void paint(java.awt.Graphics2D g2d)
Attachment
paint
in interface Attachment
paint
in class ComponentAttachment
g2d
- Graphics2D the graphics to be painted onpublic java.awt.Shape getShape()
Attachment
getShape
in interface Attachment
getShape
in class ComponentAttachment
public java.awt.Rectangle getBounds()
Attachment
getBounds
in interface Attachment
getBounds
in class ComponentAttachment
Copyright © 2002 - 2010 Serva Software. All Rights Reserved.