public class Grid extends BaseEquipment
exist, tag
size
agentLinksSet, allAgentLinks, allFollowers, allLinks, fromAgentLinks, fromLinks, linksSet, loopLinks, toAgentLinks, toLinks
xLocation, yLocation
alarmState, businessObject, clientProperties, delegate, displayName, elements, iconUrl, id, imageUrl, name, parent, propertyChangeSupport, selected, toolTipText, userObject, userProperties, visible
Constructor and Description |
---|
Grid()
Create an equipment shelf object
|
Grid(java.lang.Object id)
Create an equipment shelf object by given id.
|
Modifier and Type | Method and Description |
---|---|
void |
adjustBounds()
This method will be called when host is changed.
|
java.awt.Insets |
getBorder() |
java.awt.geom.Rectangle2D.Double |
getCellBounds(int columnIndex,
int rowIndex) |
java.awt.Rectangle |
getCellRect(int columnIndex,
int rowIndex) |
java.awt.geom.Rectangle2D.Double |
getCellRectangle(int columnIndex,
int rowIndex) |
int |
getColumnCount() |
int |
getColumnIndex() |
java.util.List |
getColumnPercents() |
int |
getColumnSpan() |
int |
getFollowerPadding()
Get the inner gap when this follower attached on a parent grid element.
|
int |
getFollowerPaddingBottom()
Get the inner gap in bottom side when this follower attached on a parent grid element.
|
int |
getFollowerPaddingLeft()
Get the inner gap in left side when this follower attached on a parent grid element.
|
int |
getFollowerPaddingRight()
Get the inner gap in right side when this follower attached on a parent grid element.
|
int |
getFollowerPaddingTop()
Get the inner gap in top side when this follower attached on a parent grid element.
|
java.awt.Insets |
getPadding() |
double |
getRestHeight() |
double |
getRestWidth() |
int |
getRowCount() |
int |
getRowIndex() |
java.util.List |
getRowPercents() |
int |
getRowSpan() |
java.lang.String |
getSVGUIClassID()
Returns a string that specifies the full qualified name of the ui class
that responsible for converting this element to svg content.
|
java.lang.String |
getUIClassID()
Returns a string that specifies the fully qualified name of
the ui class that renders this element in network canvas.
|
protected void |
hostPropertyChange(java.beans.PropertyChangeEvent evt)
This method will be called when the host's any property is changed,
so user can override this method to do something like adjust this follower's bounds
according to some specific properties.
|
boolean |
isPaintCell() |
void |
setBorder(java.awt.Insets border) |
void |
setColumnCount(int columnCount) |
void |
setColumnIndex(int columnIndex) |
void |
setColumnPercents(java.util.List columnPercents) |
void |
setColumnSpan(int columnSpan) |
void |
setFollowerPadding(int followerPadding)
Set the inner gap when this follower attached on a parent grid element.
|
void |
setFollowerPaddingBottom(int followerPaddingBottom)
Set the inner gap in bottom side when this follower attached on a parent grid element.
|
void |
setFollowerPaddingLeft(int followerPaddingLeft)
Set the inner gap in left side when this follower attached on a parent grid element.
|
void |
setFollowerPaddingRight(int followerPaddingRight)
Set the inner gap in right side when this follower attached on a parent grid element.
|
void |
setFollowerPaddingTop(int followerPaddingTop)
Set the inner gap in top side when this follower attached on a parent grid element.
|
void |
setPadding(java.awt.Insets padding) |
void |
setPaintCell(boolean paintCell) |
void |
setRowCount(int rowCount) |
void |
setRowIndex(int rowIndex) |
void |
setRowPercents(java.util.List rowPercents) |
void |
setRowSpan(int rowSpan) |
getTag, isExist, setExist, setTag
adjustPosition, calculateOffset, getHost, isHostOn, setHost, setLocation
getBounds, getHeight, getSize, getWidth, resetDefaultSize, setHeightSize, setImage, setSize, setSize, setWidthSize
getAllAgentLinks, getAllFollowers, getAllLinks, getFromAgentLinks, getFromLinks, getLoopLinks, getToAgentLinks, getToLinks, hasAgentLinks, isDrawImageShape, putDrawImageShape
getBodyColor, getCenterLocation, getCustomDrawFillColor, getCustomDrawGradientColor, getCustomDrawGradientFactory, getCustomDrawOutlineColor, getCustomDrawOutlineStroke, getCustomDrawShapeFactory, getLocation, getX, getY, isBodyFill, isBodyRaised, isCustomDraw, isCustomDrawAntialias, isCustomDrawDefaultBorder, isCustomDrawFill, isCustomDrawFill3D, isCustomDrawGradient, isCustomDrawOutline, isCustomDrawOutline3D, putBodyColor, putBodyFill, putBodyRaised, putCustomDraw, putCustomDrawAntialias, putCustomDrawDefaultBorder, putCustomDrawFill, putCustomDrawFill3D, putCustomDrawFillColor, putCustomDrawGradient, putCustomDrawGradientColor, putCustomDrawGradientFactory, putCustomDrawOutline, putCustomDrawOutline3D, putCustomDrawOutlineColor, putCustomDrawOutlineStroke, putCustomDrawShapeFactory, setCenterLocation, setCenterLocation, setLocation, setLocation, setLocation
addAttachment, addChartBubble, addChartValue, addChartValue, addChild, addChild, addPropertyChangeListener, addPropertyChangeListener, children, childrenSize, clearChartValues, clearChildren, containsAttachment, copy, copy, copy, copy, createAlarmState, createChildrenList, createChildrenMap, equals, exportValues, 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, getBusinessObject, 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, getIcon, getIconURL, getID, getImage, getImageURL, getLabelBackground, getLabelBorderColor, getLabelBorderStroke, getLabelColor, getLabelFont, getLabelHighlightBackground, getLabelHighlightForeground, getLabelIcon, getLabelMaxLength, getLabelOrientation, getLabelPosition, getLabelUnderlineColor, getLabelUnderlineStroke, getLabelXGap, getLabelXOffset, getLabelYGap, getLabelYOffset, getLayerID, getMessageArc, getMessageBackground, getMessageBorderColor, getMessageBorderStroke, getMessageComponent, getMessageContent, getMessageDirection, getMessageFont, getMessageForeground, getMessageGradientColor, getMessageGradientFactory, getMessageHeight, getMessageMinimizedIcon, getMessagePosition, getMessageShadowColor, getMessageStyle, getMessageTail, getMessageWidth, getMessageXGap, getMessageXOffset, getMessageYGap, getMessageYOffset, getName, getParent, getPropertyChangeSupport, getPropertyValue, getRenderAlpha, getRenderColor, getStateOutlineColor, getStateOutlineInsets, getStateOutlineWidth, getTextureFactory, getToolTipText, getUserObject, getUserProperties, getUserProperty, isAdjustToBottom, isAlarmBalloonShownOnTop, isAlarmBalloonTextBlinkable, isAlarmBalloonVisible, isBorderFill, isBorderUnderneath, isBorderVisible, isBorderXormode, isDescendantOf, isDrawIconShape, isEmpty, isEnableAlarmPropagationFromChildren, isLabelBorder, isLabelHighlightable, isLabelSelectable, isLabelUnderline, isLabelVisible, isMessageAutoAdjustDirection, isMessageBorderVisible, isMessageClosable, isMessageGradient, 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, 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, putMessageGradient, putMessageGradientColor, putMessageGradientFactory, 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, setChartValues, setDisplayName, setEnableAlarmPropagationFromChildren, setGeoCoordinate, setIcon, setLayerID, setName, setParent, setPropertyValue, setSelected, setToolTipText, setUserObject, setVisible, toString, updateUI
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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, getTextureFactory, getToolTipText, 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
public Grid()
public Grid(java.lang.Object id)
id
- Object the shelf id.public java.lang.String getUIClassID()
BaseEquipment
getUIClassID
in interface Element
getUIClassID
in class BaseEquipment
ElementUI
public java.lang.String getSVGUIClassID()
Node
getSVGUIClassID
in interface Element
getSVGUIClassID
in class Node
ElementSVGUI
,
TSVGNetwork
public int getRowCount()
public void setRowCount(int rowCount)
public int getColumnCount()
public void setColumnCount(int columnCount)
public int getRowIndex()
public void setRowIndex(int rowIndex)
public int getColumnIndex()
public void setColumnIndex(int columnIndex)
public int getRowSpan()
public void setRowSpan(int rowSpan)
public int getColumnSpan()
public void setColumnSpan(int columnSpan)
public java.awt.Insets getPadding()
public void setPadding(java.awt.Insets padding)
public java.awt.Insets getBorder()
public void setBorder(java.awt.Insets border)
public boolean isPaintCell()
public void setPaintCell(boolean paintCell)
public java.util.List getColumnPercents()
public void setColumnPercents(java.util.List columnPercents)
public java.util.List getRowPercents()
public void setRowPercents(java.util.List rowPercents)
protected void hostPropertyChange(java.beans.PropertyChangeEvent evt)
Follower
hostPropertyChange
in class Follower
evt
- the host's property change event.public void adjustBounds()
Follower
adjustBounds
in class Follower
public java.awt.geom.Rectangle2D.Double getCellRectangle(int columnIndex, int rowIndex)
public java.awt.geom.Rectangle2D.Double getCellBounds(int columnIndex, int rowIndex)
public java.awt.Rectangle getCellRect(int columnIndex, int rowIndex)
public double getRestWidth()
public double getRestHeight()
public int getFollowerPadding()
public void setFollowerPadding(int followerPadding)
followerPadding
- public int getFollowerPaddingTop()
public void setFollowerPaddingTop(int followerPaddingTop)
followerPaddingTop
- public int getFollowerPaddingBottom()
public void setFollowerPaddingBottom(int followerPaddingBottom)
followerPaddingBottom
- public int getFollowerPaddingLeft()
public void setFollowerPaddingLeft(int followerPaddingLeft)
followerPaddingLeft
- public int getFollowerPaddingRight()
public void setFollowerPaddingRight(int followerPaddingRight)
followerPaddingRight
- Copyright © 2002 - 2010 Serva Software. All Rights Reserved.