public class PolySubNetworkUI extends SubNetworkUI
editableBorder
drawImageShape
bodyFill, bodyRaised, color, customDraw, customDrawAntialias, customDrawDefaultBorder, customDrawFill, customDrawFill3D, customDrawFillColor, customDrawGradient, customDrawGradientColor, customDrawOutline, customDrawOutline3D, customDrawOutlineColor, customDrawOutlineStroke, defaultBorder, gradientFactory, shapeFactory
alarmAttachment, attachmentOrientation, attachmentPosition, attachments, attachmentXGap, attachmentXOffset, attachmentYGap, attachmentYOffset, borderInsets, element, labelAttachment, network, renderAlpha, stateOutlineInsets, textureFactory
Constructor and Description |
---|
PolySubNetworkUI(TNetwork network,
PolySubNetwork subnetwork) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(int x,
int y)
Override this method to return a more accurate value.
|
void |
elementPropertyChange(java.beans.PropertyChangeEvent evt)
Invoked when the related element's any property change.
|
BorderUI |
getBorder()
Obtains the UI border object.
|
java.awt.Point |
getHotspot()
Get the hotspot location.
|
PolySubNetwork |
getPolySubNetwork() |
java.awt.Rectangle |
getUIBounds()
For this abstract element UI, it return a rectangle box encloses
the element and it's border.
|
void |
paintBody(java.awt.Graphics2D g2d)
Paint this node body.
|
void |
paintBorder(java.awt.Graphics2D g2d)
Paint specified element object border on specified graphics.
|
void |
paintStateOutline(java.awt.Graphics2D g2d)
Paint the element state outline.
|
protected void |
updateBounds()
When poly subnetwork location changed, update it's bounds.
|
void |
updateClientProperty(java.lang.String propertyName)
Update the client property.
|
getSubNetwork, performAction
getDrillDownChassis, getImageShape, getNode, isDrawImageShape
getBaseElement, getColor, getShapeFactory, isBodyFill, isCustomDraw, isCustomDrawDefaultBorder, paint, paintCustomDraw, paintCustomDrawBody, paintCustomDrawOutline, paintCustomDrawStateOutline
addAttachment, attachments, containInAttachments, getAlarmAttachment, getAttachementsArea, getAttachementsBounds, getAttachmentAt, getAttachmentOrientation, getAttachmentPosition, getAttachmentXGap, getAttachmentXOffset, getAttachmentYGap, getAttachmentYOffset, getBlinkStruct, getBorderShape, getDefaultBorderInset, getElement, getLabelAttachment, getNetwork, getPaintBodyColor, getSeletableAttachementsArea, getStateOutlineColor, installAttachments, isBodyDark, isOutlineDark, mouseClicked, paintAttachments, removeAttachment, setBodyPaint, setLabelAttachment, setStateOutline
public PolySubNetworkUI(TNetwork network, PolySubNetwork subnetwork)
public void elementPropertyChange(java.beans.PropertyChangeEvent evt)
elementPropertyChange
in interface ElementUI
elementPropertyChange
in class AbstractElementUI
evt
- property change eventpublic PolySubNetwork getPolySubNetwork()
public void paintBody(java.awt.Graphics2D g2d)
NodeUI
public void paintBorder(java.awt.Graphics2D g2d)
AbstractElementUI
paintBorder
in class AbstractElementUI
public void paintStateOutline(java.awt.Graphics2D g2d)
NodeUI
paintStateOutline
in class NodeUI
protected void updateBounds()
public java.awt.Rectangle getUIBounds()
BaseElementUI
getUIBounds
in interface ElementUI
getUIBounds
in class BaseElementUI
public boolean contains(int x, int y)
NodeUI
public void updateClientProperty(java.lang.String propertyName)
BaseElementUI
updateClientProperty
in interface ElementUI
updateClientProperty
in class NodeUI
propertyName
- the property name that has changed.public java.awt.Point getHotspot()
BaseElementUI
getHotspot
in interface ElementUI
getHotspot
in class BaseElementUI
public BorderUI getBorder()
getBorder
in interface ElementUI
getBorder
in class ResizableNodeUI
Copyright © 2002 - 2010 Serva Software. All Rights Reserved.