public class SubNetworkUI extends ResizableNodeUI
SubNetwork
element.
SubNetwork element is a container, it can displayed in
standalone layer and have it's own background. When it
closed, it displays just like a Node element. When user
double click and drill down into the subnetwork, it
will display all elements contained in this subnetwork
and it's background.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 |
---|
SubNetworkUI(TNetwork network,
SubNetwork subNetwork)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
SubNetwork |
getSubNetwork()
Get the subnetwork element.
|
void |
performAction(int gesture,
java.awt.event.MouseEvent e)
Called when the action event happen.
|
getBorder
contains, getDrillDownChassis, getImageShape, getNode, isDrawImageShape, paintBody, paintStateOutline, updateClientProperty
getBaseElement, getColor, getHotspot, getShapeFactory, getUIBounds, isBodyFill, isCustomDraw, isCustomDrawDefaultBorder, paint, paintCustomDraw, paintCustomDrawBody, paintCustomDrawOutline, paintCustomDrawStateOutline
addAttachment, attachments, containInAttachments, elementPropertyChange, 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 SubNetworkUI(TNetwork network, SubNetwork subNetwork)
network
- the network component.subNetwork
- the subnetwork element.public SubNetwork getSubNetwork()
public void performAction(int gesture, java.awt.event.MouseEvent e)
performAction
in interface ElementUI
performAction
in class NodeUI
gesture
- the action gesture.e
- the gesture.Copyright © 2002 - 2010 Serva Software. All Rights Reserved.