public class ShapeNodeUI extends NodeUI
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 |
---|
ShapeNodeUI(TNetwork network,
ShapeNode node) |
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.
|
ShapeNode |
getShapeNode() |
java.awt.Rectangle |
getUIBounds()
For this abstract element UI, it return a rectangle box encloses
the element and it's border.
|
boolean |
isShowDashLine() |
void |
paint(java.awt.Graphics2D g2d)
Paint specified element instance on specified graph.
|
protected void |
paintArrows(java.awt.Graphics2D g2d) |
protected void |
paintCustomDraw(java.awt.Graphics2D g2d) |
void |
updateClientProperty(java.lang.String propertyName)
Update the client property.
|
getDrillDownChassis, getImageShape, getNode, isDrawImageShape, paintBody, paintStateOutline, performAction
getBaseElement, getColor, getHotspot, getShapeFactory, isBodyFill, isCustomDraw, isCustomDrawDefaultBorder, 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, paintBorder, removeAttachment, setBodyPaint, setLabelAttachment, setStateOutline
public void elementPropertyChange(java.beans.PropertyChangeEvent evt)
AbstractElementUI
elementPropertyChange
in interface ElementUI
elementPropertyChange
in class AbstractElementUI
evt
- property change eventpublic void updateClientProperty(java.lang.String propertyName)
BaseElementUI
updateClientProperty
in interface ElementUI
updateClientProperty
in class NodeUI
propertyName
- the property name that has changed.public boolean isShowDashLine()
public BorderUI getBorder()
BaseElementUI
getBorder
in interface ElementUI
getBorder
in class BaseElementUI
public boolean contains(int x, int y)
NodeUI
public java.awt.Rectangle getUIBounds()
BaseElementUI
getUIBounds
in interface ElementUI
getUIBounds
in class BaseElementUI
public void paint(java.awt.Graphics2D g2d)
BaseElementUI
paint
in interface ElementUI
paint
in class BaseElementUI
protected void paintArrows(java.awt.Graphics2D g2d)
protected void paintCustomDraw(java.awt.Graphics2D g2d)
paintCustomDraw
in class BaseElementUI
public ShapeNode getShapeNode()
Copyright © 2002 - 2010 Serva Software. All Rights Reserved.