public interface ElementUI
Modifier and Type | Method and Description |
---|---|
void |
addAttachment(Attachment a)
Add an attachment instance into this attachable.
|
java.util.Iterator |
attachments()
The iterator of all attachments holded by this attachable.
|
boolean |
contains(int x,
int y)
Checks whether this ui "contains" the specified point,
where x and y are defined to be relative to the coordinate
system of this UI.
|
void |
elementPropertyChange(java.beans.PropertyChangeEvent evt)
Invoked when the related element's any property change.
|
AlarmAttachment |
getAlarmAttachment() |
Attachment |
getAttachmentAt(java.awt.Point point)
Get the attachment at specified point.
|
twaver.base.obfuscate.network.blink.BlinkStruct |
getBlinkStruct() |
BorderUI |
getBorder()
Get the ui border.
|
java.awt.Shape |
getBorderShape() |
int |
getDefaultBorderInset()
Get the default border inset for border ui.
|
Element |
getElement()
Get the element.
|
java.awt.Point |
getHotspot()
Get the hotspot location.
|
LabelAttachment |
getLabelAttachment() |
TNetwork |
getNetwork()
Get which network component this ui painting for.
|
java.awt.Color |
getStateOutlineColor() |
java.awt.Rectangle |
getUIBounds()
Returns an integer Rectangle that completely encloses the Element.
|
boolean |
isBodyDark() |
boolean |
isOutlineDark() |
void |
mouseClicked(java.awt.event.MouseEvent e) |
void |
paint(java.awt.Graphics2D g2d) |
void |
paintAttachments(java.awt.Graphics2D g2d)
Paint all attachments.
|
void |
performAction(int gesture,
java.awt.event.MouseEvent e)
Invoked when an action occurs.
|
void |
removeAttachment(Attachment a)
Remove the specified attachment from this attachable.
|
void |
updateClientProperty(java.lang.String propertyName)
Update the client properties.
|
TNetwork getNetwork()
BorderUI getBorder()
Element getElement()
boolean contains(int x, int y)
x
- the x coordinate of the pointy
- the y coordinate of the pointjava.awt.Rectangle getUIBounds()
java.awt.Point getHotspot()
void updateClientProperty(java.lang.String propertyName)
propertyName
- the property name.void elementPropertyChange(java.beans.PropertyChangeEvent evt)
evt
- property change eventint getDefaultBorderInset()
void performAction(int gesture, java.awt.event.MouseEvent e)
gesture
- void paint(java.awt.Graphics2D g2d)
java.awt.Shape getBorderShape()
LabelAttachment getLabelAttachment()
AlarmAttachment getAlarmAttachment()
twaver.base.obfuscate.network.blink.BlinkStruct getBlinkStruct()
java.awt.Color getStateOutlineColor()
boolean isBodyDark()
boolean isOutlineDark()
void addAttachment(Attachment a)
a
- attachment.void removeAttachment(Attachment a)
a
- the attachment instance.java.util.Iterator attachments()
Attachment getAttachmentAt(java.awt.Point point)
point
- the location.void paintAttachments(java.awt.Graphics2D g2d)
void mouseClicked(java.awt.event.MouseEvent e)
Copyright © 2002 - 2010 Serva Software. All Rights Reserved.