public class AlarmAttachment extends AbstractAttachment
Shaped
.element, network, ui
Constructor and Description |
---|
AlarmAttachment(ElementUI elementUI)
constructs an alarm attachment instance with specified element UI class.
|
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()
Get the attachment's outter bounds.
|
protected java.awt.Color |
getFillColor()
Get fill color.
|
java.awt.Point |
getLocation()
Get the attachment's location.
|
protected java.awt.Color |
getOutlineColor() |
protected java.awt.Color |
getShadowColor()
Get shadow color.
|
protected int |
getShadowOffset()
Get shadow offset.
|
java.awt.Shape |
getShape()
Get the attachment's outline shape.
|
protected java.lang.String |
getText()
Get text content.
|
protected java.awt.Color |
getTextColor()
Get text color
|
protected java.awt.Font |
getTextFont()
Get text font.
|
void |
invalidate() |
boolean |
isShownOnTop()
Checks whether to show this attachment on the top layer.
|
protected boolean |
isTextBlinkable()
Returns true if text is blinkable
when this alarm attachment is blinking.
|
void |
paint(java.awt.Graphics2D g2d)
Paint this alarm attachment on specified graphics.
|
contains, getElementUI, getName, isSelectable, performAction
public AlarmAttachment(ElementUI elementUI)
elementUI
- public boolean isShownOnTop()
Attachment
isShownOnTop
in interface Attachment
isShownOnTop
in class AbstractAttachment
public void paint(java.awt.Graphics2D g2d)
g2d
- public java.awt.Rectangle getBounds()
public java.awt.Shape getShape()
getShape
in interface Attachment
getShape
in class AbstractAttachment
protected java.awt.Font getTextFont()
protected java.awt.Color getTextColor()
protected java.awt.Color getOutlineColor()
protected java.awt.Color getShadowColor()
protected int getShadowOffset()
protected boolean isTextBlinkable()
protected java.lang.String getText()
protected java.awt.Color getFillColor()
public java.awt.Point getLocation()
public void elementPropertyChange(java.beans.PropertyChangeEvent evt)
elementPropertyChange
in interface Attachment
elementPropertyChange
in class AbstractAttachment
evt
- property change eventpublic void invalidate()
Copyright © 2002 - 2010 Serva Software. All Rights Reserved.