public interface TSubNetwork extends Element
TSubnetwork
is a predefined business object
that is used to represent a network layer that
all resources is layered logically or geographically.
TSubnetwork looks just like a normal element in the
located layer. But the default behaviour is that you can
double clic the tsubnetwork to drill down into the
deeper layer to get in a new map environment. The background
object of the tsubnetwork will be used to paint as the
current background of this network component.
TSubnetwork can be nested. TSubnetwork has a background object
as its background. It can be bitmap image, vector shape, single
color or texture image etc. More information about background
please see Background
.
TSubnetwork has a datasource property. This string property defines where to load all elements data of this layer. Use this datasource to enable lazy loading ability of this tsubnetwork. Only when the first time this tsubnetwork is drill down, the data will be loaded from the specified xml datasource. After that, the data loaded flag will be set to true so data will not be loaded again. Of course, you can set the data loaded flag to false to reload the data when this tsubnetwork drill down next time.
SubNetwork
,
LinkSubNetwork
,
ShapeSubNetwork
Modifier and Type | Method and Description |
---|---|
Background |
getBackground()
Gets the background of this subnetwork.
|
java.lang.String |
getDataSource()
Gets the XML datasource of this subnetwork.
|
java.awt.Point |
getViewPoint()
Gets the view point of this subnetwork.
|
boolean |
isDataLoaded()
Tells whether data of this subnetwork has been loaded
if datasource has been specified.
|
void |
setBackground(Background background)
Sets the background of this subnetwork.
|
void |
setColorBackground(java.awt.Color color)
Sets the color background of this subnetwork.
|
void |
setDataLoaded(boolean dataLoaded)
Sets data loaded flag value.
|
void |
setDataSource(java.lang.String dataSource)
Sets the xml datasource of this subnetwork.
|
void |
setImageBackground(java.lang.String imageURL)
Sets the image background of this subnetwork.
|
void |
setTextureBackground(java.lang.String imageURL)
Sets the texture background of this subnetwork.
|
void |
setViewPoint(java.awt.Point viewPoint)
Sets the view point of this subnetwork.
|
addAttachment, addChartBubble, addChartValue, addChartValue, addChild, addChild, addPropertyChangeListener, addPropertyChangeListener, children, childrenSize, clearChartValues, clearChildren, containsAttachment, copy, copy, copy, copy, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAlarmBalloonAlpha, getAlarmBalloonDirection, getAlarmBalloonOutlineColor, getAlarmBalloonPosition, getAlarmBalloonShadowColor, getAlarmBalloonShadowOffset, getAlarmBalloonTextColor, getAlarmBalloonTextFont, getAlarmBalloonXOffset, getAlarmBalloonYOffset, getAlarmState, getAttachmentOrientation, getAttachmentPosition, getAttachmentXGap, getAttachmentXOffset, getAttachmentYGap, getAttachmentYOffset, getBorderAntialias, getBorderColor, getBorderFillColor, getBorderInsets, getBorderShapeFactory, getBorderStroke, getBorderType, getBounds, getBusinessObject, getCenterLocation, getChartBubbleShapeBubbleVisible, getChartBubbleShapeLineVisible, getChartBubbleStyle, getChartColor, getChartDialHandLength, getChartDialHandStyle, getChartFormat, getChartInflexionStyle, getChartMarkers, getChartMax, getChartMin, getChartPercentMarkerPostion, getChartPercentSpareColor, getChartPercentSpareCoverColor, getChartPercentSpareFill, getChartPercentStyle, getChartSectorDivisionPosition, getChartSectorStroke, getChartStroke, getChartValue, getChartValues, getChartValueTextPosition, getChildren, getChildrenByID, getClientProperties, getClientProperty, getDisplayName, getElementTreeIcon, getGeoCoordinate, getHeight, getIcon, getIconURL, getID, getImage, getImageURL, getLabelBackground, getLabelBorderColor, getLabelBorderStroke, getLabelColor, getLabelFont, getLabelHighlightBackground, getLabelHighlightForeground, getLabelIcon, getLabelMaxLength, getLabelOrientation, getLabelPosition, getLabelUnderlineColor, getLabelUnderlineStroke, getLabelXGap, getLabelXOffset, getLabelYGap, getLabelYOffset, getLayerID, getLocation, getMessageArc, getMessageBackground, getMessageBorderColor, getMessageBorderStroke, getMessageComponent, getMessageContent, getMessageDirection, getMessageFont, getMessageForeground, getMessageHeight, getMessageMinimizedIcon, getMessagePosition, getMessageShadowColor, getMessageStyle, getMessageTail, getMessageWidth, getMessageXGap, getMessageXOffset, getMessageYGap, getMessageYOffset, getName, getParent, getPropertyChangeSupport, getPropertyValue, getRenderAlpha, getRenderColor, getStateOutlineColor, getStateOutlineInsets, getStateOutlineWidth, getSVGUIClassID, getTextureFactory, getToolTipText, getUIClassID, getUserObject, getUserProperties, getUserProperty, getWidth, getX, getY, isAdjustToBottom, isAlarmBalloonShownOnTop, isAlarmBalloonTextBlinkable, isAlarmBalloonVisible, isBorderFill, isBorderUnderneath, isBorderVisible, isBorderXormode, isDescendantOf, isDrawIconShape, isEmpty, isEnableAlarmPropagationFromChildren, isLabelBorder, isLabelHighlightable, isLabelSelectable, isLabelUnderline, isLabelVisible, isMessageAutoAdjustDirection, isMessageBorderVisible, isMessageClosable, isMessageMinimizable, isMessageMinimized, isMessageOpaque, isMessageShadowVisible, isMessageShownOnTop, isMessageShrinkable, isMessageShrinked, isParentOf, isSelected, isVisible, putAlarmBalloonAlpha, putAlarmBalloonDirection, putAlarmBalloonOutlineColor, putAlarmBalloonPosition, putAlarmBalloonShadowColor, putAlarmBalloonShadowOffset, putAlarmBalloonShownOnTop, putAlarmBalloonTextBlinkable, putAlarmBalloonTextColor, putAlarmBalloonTextFont, putAlarmBalloonVisible, putAlarmBalloonXoffset, putAlarmBalloonYoffset, putAttachmentOrientation, putAttachmentPosition, putAttachmentXGap, putAttachmentXOffset, putAttachmentYGap, putAttachmentYOffset, putBorderAntialias, putBorderColor, putBorderFill, putBorderFillColor, putBorderInsets, putBorderShapeFactory, putBorderStroke, putBorderType, putBorderUnderneath, putBorderVisible, putBorderXormode, putChartBubbleShapeBubbleVisible, putChartBubbleShapeLineVisible, putChartBubbleStyle, putChartColor, putChartDialHandLength, putChartDialHandStyle, putChartFormat, putChartInflexionStyle, putChartMarkers, putChartMax, putChartMin, putChartPercentMarkerPostion, putChartPercentSpareColor, putChartPercentSpareCoverColor, putChartPercentSpareFill, putChartPercentStyle, putChartSectorDivisionPosition, putChartSectorStroke, putChartStroke, putChartValue, putChartValues, putChartValueTextPosition, putClientProperty, putClientProperty, putClientProperty, putDrawIconShape, putElementTreeIcon, putLabelBackground, putLabelBorder, putLabelBorderColor, putLabelBorderStroke, putLabelColor, putLabelFont, putLabelHighlightable, putLabelHighlightBackground, putLabelHighlightForeground, putLabelIcon, putLabelMaxLength, putLabelOrientation, putLabelPosition, putLabelSelectable, putLabelUnderline, putLabelUnderlineColor, putLabelUnderlineStroke, putLabelVisible, putLabelXGap, putLabelXOffset, putLabelYGap, putLabelYOffset, putMessageArc, putMessageAutoAdjustDirection, putMessageBackground, putMessageBorderColor, putMessageBorderStroke, putMessageBorderVisible, putMessageClosable, putMessageComponent, putMessageContent, putMessageDirection, putMessageFont, putMessageForeground, putMessageHeight, putMessageMinimizable, putMessageMinimized, putMessageMinimizedIcon, putMessageOpaque, putMessagePosition, putMessageShadowColor, putMessageShadowVisible, putMessageShownOnTop, putMessageShrinkable, putMessageShrinked, putMessageStyle, putMessageTail, putMessageWidth, putMessageXGap, putMessageXOffset, putMessageYGap, putMessageYOffset, putRenderAlpha, putRenderColor, putStateOutlineColor, putStateOutlineInsets, putStateOutlineWidth, putTextureFactory, putUserProperty, putUserProperty, putUserProperty, removeAttachment, removeChild, removeFromParent, removePropertyChangeListener, removePropertyChangeListener, setAlarmState, setBusinessObject, setCenterLocation, setCenterLocation, setChartValues, setDisplayName, setEnableAlarmPropagationFromChildren, setGeoCoordinate, setIcon, setImage, setLayerID, setLocation, setLocation, setLocation, setName, setParent, setPropertyValue, setSelected, setToolTipText, setUserObject, setVisible, updateUI
java.awt.Point getViewPoint()
void setViewPoint(java.awt.Point viewPoint)
viewPoint
- Point the new view point locationBackground getBackground()
void setBackground(Background background)
background
- Background background objecdt of this subnetworkvoid setTextureBackground(java.lang.String imageURL)
imageURL
- the texture image urlTextureBackground
void setImageBackground(java.lang.String imageURL)
imageURL
- the texture image urlImageBackground
void setColorBackground(java.awt.Color color)
color
- the color of this backgroundColorBackground
java.lang.String getDataSource()
void setDataSource(java.lang.String dataSource)
dataSource
- Stringvoid setDataLoaded(boolean dataLoaded)
dataLoaded
- boolean true loaded, false otherwise.boolean isDataLoaded()
Copyright © 2002 - 2010 Serva Software. All Rights Reserved.