public interface Element
extends java.io.Serializable
All predefined data in TWaver are derived from Element interface.
Developer can define new Element classes but in most cases you
can just extend new classes from twaver.Node
or
twaver.Link
.
The Element interface defines the "network data" for real word networks. The element objects carry graph information for display, and also can carry more extended business information. It can be serialized into a XML stream or byte stream by databox.
twaver.TDataBox}
Modifier and Type | Method and Description |
---|---|
void |
addAttachment(java.lang.String attachmentName)
Adds an attachment to the element.
|
void |
addChartBubble(Bubble bubble)
Adds a bubble into the chart value list.
|
void |
addChartValue(double value)
Adds a value to this element value list.
|
void |
addChartValue(java.lang.Double value)
Adds a value to this element value list.
|
void |
addChild(Element element)
Adds the specified element as a new child of this element.
|
void |
addChild(int index,
Element element)
Inserts the specified element at the specified position
as a new child of this element.
|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener on this element.
|
void |
addPropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener for a specific property.
|
java.util.Iterator |
children()
Returns the children elements iterator.
|
int |
childrenSize()
Gets the children size of this element.
|
void |
clearChartValues()
Clears chart values of this element.
|
void |
clearChildren()
Clears this container contained elements.
|
boolean |
containsAttachment(java.lang.String attachmentName)
Returns true if this element contains a attachment with
the specified name, false otherwise.
|
Element |
copy()
Copy a new element instance from this element.
|
Element |
copy(java.lang.Object id)
Copy a new element with given id.
|
Element |
copy(java.lang.Object id,
TDataBox box)
Copy a new element with given id and data box.
|
Element |
copy(TDataBox box)
Copy a new element with given data box.
|
void |
firePropertyChange(java.beans.PropertyChangeEvent evt)
Fire an existing PropertyChangeEvent to any registered PropertyChangeListeners.
|
void |
firePropertyChange(java.lang.String propertyName,
boolean oldValue,
boolean newValue)
Support for reporting bound property changes for boolean properties.
|
void |
firePropertyChange(java.lang.String propertyName,
int oldValue,
int newValue)
Support for reporting bound property changes for integer properties.
|
void |
firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
Support for reporting bound property changes for Object properties.
|
float |
getAlarmBalloonAlpha()
Gets the alpha of the alarm balloon of this element.
|
int |
getAlarmBalloonDirection()
Gets the direction of the alarm balloon of this element.
|
java.awt.Color |
getAlarmBalloonOutlineColor()
Gets the color of the outline of the alarm balloon of this element.
|
int |
getAlarmBalloonPosition()
Gets the position of the alarm balloon of this element.
|
java.awt.Color |
getAlarmBalloonShadowColor()
Gets the shadow color of the alarm balloon of this element.
|
int |
getAlarmBalloonShadowOffset()
Gets the offset of the shadow of the alarm balloon of this element.
|
java.awt.Color |
getAlarmBalloonTextColor()
Gets the text color of the alarm balloon of this element.
|
java.awt.Font |
getAlarmBalloonTextFont()
Gets the font of the alarm balloon text of this element.
|
int |
getAlarmBalloonXOffset()
Gets the horizontal offset of the alarm balloon of this element.
|
int |
getAlarmBalloonYOffset()
Gets the vertical offset of the alarm balloon of this element.
|
AlarmState |
getAlarmState()
Gets the alarm state object of this element.
|
int |
getAttachmentOrientation()
Gets the orientation of the attachment of this element.
|
int |
getAttachmentPosition()
Gets the position of the attachment of this element.
|
int |
getAttachmentXGap()
Gets the horizontal gap of the attachment of this element.
|
int |
getAttachmentXOffset()
Gets the horizontal offset of the attachment of this element.
|
int |
getAttachmentYGap()
Gets the vertical gap of the attachment of this element.
|
int |
getAttachmentYOffset()
Gets the vertical offset of the attachment of this element.
|
boolean |
getBorderAntialias()
Determines whether the border of this element is drawn with antialias mode.
|
java.awt.Color |
getBorderColor()
Gets the color of the border of this element.
|
java.awt.Color |
getBorderFillColor()
Gets the fill color of the border of this element.
|
int |
getBorderInsets()
Gets the insets of the border of this element.
|
int |
getBorderShapeFactory()
Gets the shape factory of the border of this element.
|
java.lang.String |
getBorderStroke()
Gets the stroke of the border of this element.
|
int |
getBorderType()
Gets the type of the border of this element.
|
java.awt.Rectangle |
getBounds()
Gets the current bounds of this element.
|
java.lang.Object |
getBusinessObject()
Gets the business object.
|
java.awt.Point |
getCenterLocation()
Gets the element's center point.
|
boolean |
getChartBubbleShapeBubbleVisible()
Gets whether the bubble shape in bubble chart is visible.
|
boolean |
getChartBubbleShapeLineVisible()
Gets whether the line shape in bubble chart is visible.
|
int |
getChartBubbleStyle()
Gets the style of the bubble in the
BubbleChart . |
java.awt.Color |
getChartColor()
Gets the color of this element.
|
double |
getChartDialHandLength()
Gets the dial hand length of the element.
|
int |
getChartDialHandStyle()
Gets the dial hand style of the element.
|
java.text.NumberFormat |
getChartFormat()
Gets the number format of this element.
|
int |
getChartInflexionStyle()
Gets the style of the inflexion of this element.
|
java.util.List |
getChartMarkers()
Gets the list of the marker of this element.
|
double |
getChartMax()
Gets the maximal value of this element.
|
double |
getChartMin()
Gets the minimal value of this element.
|
int |
getChartPercentMarkerPostion()
Gets the position of the marker in percent chart.
|
java.awt.Color |
getChartPercentSpareColor()
Gets the spare color of the percent.
|
java.awt.Color |
getChartPercentSpareCoverColor()
Gets the spare cover color of the percent chart.
|
boolean |
getChartPercentSpareFill()
Gets whether the spare of the percent chart is filled.
|
int |
getChartPercentStyle()
Gets the style of this percent type chart.
|
java.util.List |
getChartSectorDivisionPosition() |
java.util.List |
getChartSectorStroke() |
java.lang.String |
getChartStroke()
Gets the stroke of this element.
|
double |
getChartValue()
Gets the value of this element.
|
java.util.List |
getChartValues()
Gets the values list of this element.
|
int |
getChartValueTextPosition()
Gets the position of the label of the chart.
|
java.util.List |
getChildren()
Gets all children elements as a List.
|
Element |
getChildrenByID(java.lang.Object id)
Gets the child elements by the given id.
|
java.util.Map |
getClientProperties()
Gets all client properties stored in this element.
|
java.lang.Object |
getClientProperty(java.lang.Object key)
Returns the value of the client property with the given key.
|
java.lang.String |
getDisplayName()
Gets element display name.
|
javax.swing.Icon |
getElementTreeIcon()
Gets the icon url of this element which is used to paint on the tree component.
|
GeoCoordinate |
getGeoCoordinate() |
int |
getHeight()
Gets the current height of this element.
|
javax.swing.ImageIcon |
getIcon()
Gets this element's icon.
|
java.lang.String |
getIconURL()
Gets this element icon's url, tree component will use the icon to render
the element on the tree node.
|
java.lang.Object |
getID()
Gets element identifier.
|
javax.swing.ImageIcon |
getImage()
Gets this element's image.
|
java.lang.String |
getImageURL()
Gets this element image's url, normally the image is displayed in
network canvas.
|
java.awt.Color |
getLabelBackground()
Gets the background color of the label attachment of this element.
|
java.awt.Color |
getLabelBorderColor()
Gets the border color of the label attachment of this element.
|
java.lang.String |
getLabelBorderStroke()
Gets the border stroke of the label attachment of this element.
|
java.awt.Color |
getLabelColor()
Gets the color of the label attachment of this element.
|
java.awt.Font |
getLabelFont()
Gets the font of the label attachment of this element.
|
java.awt.Color |
getLabelHighlightBackground()
Gets the highlight color of the background of the label attachment of this element when this element is selected.
|
java.awt.Color |
getLabelHighlightForeground()
Gets the highlight color of the foreground of the label attachment of this element when this element is selected.
|
java.lang.String |
getLabelIcon()
Gets the icon url of the label attachment of this element.
|
int |
getLabelMaxLength()
Gets the maximal length of the label attachment of this element.
|
int |
getLabelOrientation()
Gets the orientation of the label attachment of this element.
|
int |
getLabelPosition()
Gets the position of the label attachment of this element.
|
java.awt.Color |
getLabelUnderlineColor()
Gets the color of the underline of the label attachment of this element.
|
java.lang.String |
getLabelUnderlineStroke()
Gets the stroke of the underline of the label attachment of this element.
|
int |
getLabelXGap()
Gets the horizontal gap of the label attachment of this element.
|
int |
getLabelXOffset()
Gets the horizontal offset of the label attachment of this element.
|
int |
getLabelYGap()
Gets the vertical gap of the label attachment of this element.
|
int |
getLabelYOffset()
Gets the vertical offset of the label attachment of this element.
|
java.lang.Object |
getLayerID()
Gets the layer id of the element belongs to.
|
java.awt.Point |
getLocation()
Gets this element's current location.
|
int |
getMessageArc()
Gets the arc of the message attachment of this element.
|
java.awt.Color |
getMessageBackground()
Gets the background color of the message attachment of this element.
|
java.awt.Color |
getMessageBorderColor()
Gets the border color of the message attachment of this element.
|
java.lang.String |
getMessageBorderStroke()
Gets the border stroke of the message attachment of this element.
|
int |
getMessageComponent()
Gets the component type of the message attachment of this element.
|
java.lang.String |
getMessageContent()
Gets the content of the message attachment of this element.
|
int |
getMessageDirection()
Gets the direction of the message attachment of this element.
|
java.awt.Font |
getMessageFont()
Gets the font of the message attachment of this element.
|
java.awt.Color |
getMessageForeground()
Gets the foreground color of the message attachment of this element.
|
int |
getMessageHeight()
Gets the height of the message attachment of this element.
|
java.lang.String |
getMessageMinimizedIcon()
Gets the icon url of the message attachment of this element when the message attachment is minimized.
|
int |
getMessagePosition()
Gets the position of the message attachment of this element.
|
java.awt.Color |
getMessageShadowColor()
Gets the shadow color of the message attachment of this element.
|
int |
getMessageStyle()
Gets the style of the message attachment of this element.
|
int |
getMessageTail()
Gets the tail length of the message attachment of this element.
|
int |
getMessageWidth()
Gets the width of the message attachment of this element.
|
int |
getMessageXGap()
Gets the horizontal gap of the message attachment of this element.
|
int |
getMessageXOffset()
Gets the horizontal offset of the message attachment of this element.
|
int |
getMessageYGap()
Gets the vertical gap of the message attachment of this element.
|
int |
getMessageYOffset()
Gets the vertical offset of the message attachment of this element.
|
java.lang.String |
getName()
Gets element name.
|
Element |
getParent()
Gets element parent.
|
java.beans.PropertyChangeSupport |
getPropertyChangeSupport()
Gets the PropertyChangeSupport object which manage all property
change listeners registered on this element.
|
java.lang.Object |
getPropertyValue(TPropertyDescriptor property)
Gets the value of the given property of this element.
|
float |
getRenderAlpha()
Gets the render alpha value of this element.
|
java.awt.Color |
getRenderColor()
Gets the render color of this element.
|
java.awt.Color |
getStateOutlineColor()
Gets the outline color of the state of this element.
|
int |
getStateOutlineInsets()
Gets the insets of the state outline of this element.
|
int |
getStateOutlineWidth()
Gets the outline width of the state of this element.
|
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 |
getTextureFactory()
Gets the texture factory of this element.
|
java.lang.String |
getToolTipText()
Gets the tool tip string.
|
java.lang.String |
getUIClassID()
Returns a string that specifies the fully qualified name of the ui class
that renders this element in network canvas.
|
java.lang.Object |
getUserObject()
User object bounds with this element.
|
java.util.Map |
getUserProperties()
Gets all user properties stored in this element.
|
java.lang.Object |
getUserProperty(java.lang.Object key)
Returns the value of the user property with the given key.
|
int |
getWidth()
Gets the current width of this element.
|
double |
getX()
Gets x coordinate of this element.
|
double |
getY()
Gets y coordinate of this element.
|
boolean |
isAdjustToBottom()
When returns true, if this element has children, this element is
always adjusted to the bottom of its children in network canvas.
|
boolean |
isAlarmBalloonShownOnTop()
Determines whether the alarm balloon of this element is shown on top.
|
boolean |
isAlarmBalloonTextBlinkable()
Determines whether the text of the alarm balloon is blinkable.
|
boolean |
isAlarmBalloonVisible()
Determines whether the alarm balloon of this element is visible.
|
boolean |
isBorderFill()
Determines whether the border of this element is filled with border color.
|
boolean |
isBorderUnderneath()
Determines whether the border is underneath this element.
|
boolean |
isBorderVisible()
Determines whether the border of this element is visible.
|
boolean |
isBorderXormode()
Determines whether the border is drawn with XOR mode.
|
boolean |
isDescendantOf(Element element)
Determines whether this element is a descendant of given element.
|
boolean |
isDrawIconShape()
Determines whether the the icon shape of this element is drawn.
|
boolean |
isEmpty()
Determines whether this element is empty (no children element).
|
boolean |
isEnableAlarmPropagationFromChildren()
Returns true if the children's alarm state can be propagated
to this element, false otherwise.
|
boolean |
isLabelBorder()
Determines whether the border of the label attachment of this element is visible.
|
boolean |
isLabelHighlightable()
Determines whether the label attachment of this element should be highlighted when this element is selected.
|
boolean |
isLabelSelectable()
Determines whether the label attachment of this element is selectable.
|
boolean |
isLabelUnderline()
Determines whether the underline of the label attachment of this element is visible.
|
boolean |
isLabelVisible()
Determines whether the label of this element attachment is visible.
|
boolean |
isMessageAutoAdjustDirection()
Determines whether the direction of the message attachment is adjusted automatic.
|
boolean |
isMessageBorderVisible()
Determines whether the border of the message attachment of this element is visible.
|
boolean |
isMessageClosable()
Determines whether the message attachment of this element is closable.
|
boolean |
isMessageMinimizable()
Determines whether the message attachment of this element is minimizable.
|
boolean |
isMessageMinimized()
Determines whether the message attachment of this element is minimized.
|
boolean |
isMessageOpaque()
Determines whether the message attachment of this element is opaque.
|
boolean |
isMessageShadowVisible()
Determines whether the shadow of the message attachment of this element is visible.
|
boolean |
isMessageShownOnTop()
Determines whether the message attachment of this element is shown on top.
|
boolean |
isMessageShrinkable()
Determines whether the message attachment of this element is shrinkable.
|
boolean |
isMessageShrinked()
Determines whether the message attachment of this element is shrinked.
|
boolean |
isParentOf(Element element)
Determines whether this element is the parent of the given element.
|
boolean |
isSelected()
Determines whether this element is selected.
|
boolean |
isVisible()
Determines whether this element is visible.
|
void |
putAlarmBalloonAlpha(float alarmBalloonAlpha)
Sets the alpha for the alarm balloon of this element.
|
void |
putAlarmBalloonDirection(int alarmBalloonDirection)
Sets the direction for the alarm balloon of this element.
|
void |
putAlarmBalloonOutlineColor(java.awt.Color alarmBalloonOutlineColor)
Sets the color for the outline of the alarm balloon of this element.
|
void |
putAlarmBalloonPosition(int alarmBalloonPosition)
Sets the position for the alarm balloon of this element.
|
void |
putAlarmBalloonShadowColor(java.awt.Color alarmBalloonShadowColor)
Sets the color for the shadow of the alarm balloon of this element.
|
void |
putAlarmBalloonShadowOffset(int alarmBalloonShadowOffset)
Sets the offset for the shadow of the alarm balloon of this element.
|
void |
putAlarmBalloonShownOnTop(boolean alarmBalloonShownOnTop)
Sets whether the alarm balloon of this element should be shown on the top.
|
void |
putAlarmBalloonTextBlinkable(boolean alarmBalloonTextBlinkable)
Sets whether the text of the alarm balloon of this element is blinkable.
|
void |
putAlarmBalloonTextColor(java.awt.Color alarmBalloonTextColor)
Sets the text color for the alarm balloon of this element.
|
void |
putAlarmBalloonTextFont(java.awt.Font alarmBalloonTextFont)
Sets the text font for the alarm balloon of this element.
|
void |
putAlarmBalloonVisible(boolean alarmBalloonVisible)
Sets whether the alarm balloon of this element should be visible.
|
void |
putAlarmBalloonXoffset(int alarmBalloonXoffset)
Sets the horizontal offset for the alarm balloon of this element.
|
void |
putAlarmBalloonYoffset(int alarmBalloonYoffset)
Sets the vertical offset for the alarm balloon of this element.
|
void |
putAttachmentOrientation(int attachmentOrientation)
Sets the orientation for the attachment of this element.
|
void |
putAttachmentPosition(int attachmentPosition)
Sets the position for the attachment of this element.
|
void |
putAttachmentXGap(int attachmentXGap)
Sets the horizontal gap for the attachment of this element.
|
void |
putAttachmentXOffset(int attachmentXOffset)
Sets the horizontal offset for the attachment of this element.
|
void |
putAttachmentYGap(int attachmentYGap)
Sets the vertical gap for the attachment of this element.
|
void |
putAttachmentYOffset(int attachmentYOffset)
Sets the vertical offset for the attachment of this element.
|
void |
putBorderAntialias(boolean borderAntialias)
Sets whether the border of this element should be drawn with antialias mode.
|
void |
putBorderColor(java.awt.Color borderColor)
Sets the color for the border of this element.
|
void |
putBorderFill(boolean borderFill)
Sets whether the border of this element should be filled with border color.
|
void |
putBorderFillColor(java.awt.Color borderFillColor)
Sets the fill color for the border of this element.
|
void |
putBorderInsets(int borderInsets)
Sets the insets for the border of this element.
|
void |
putBorderShapeFactory(int borderShapeFactory)
Sets the shape factory for the border of this element.
|
void |
putBorderStroke(java.lang.String borderStroke)
Sets the stroke for the border of this element.
|
void |
putBorderType(int borderType)
Sets the type for the border of this element.
|
void |
putBorderUnderneath(boolean borderUnderneath)
Sets whether the border of this element should be underneath this element.
|
void |
putBorderVisible(boolean borderVisible)
Sets whether the border of this element should be visible.
|
void |
putBorderXormode(boolean borderXormode)
Sets whether the border of this element should be drawn with XOR mode.
|
void |
putChartBubbleShapeBubbleVisible(boolean visible)
Sets whether the bubble shape in bubble chart is visible.
|
void |
putChartBubbleShapeLineVisible(boolean visible)
Sets whether the line shape in bubble chart is visible.
|
void |
putChartBubbleStyle(int style)
Sets the style for the bubble in the
BubbleChart . |
void |
putChartColor(java.awt.Color color)
Sets the color for this element.
|
void |
putChartDialHandLength(double chartDialHandLength)
Sets the dial hand length for the element.
|
void |
putChartDialHandStyle(int chartDialHandStyle)
Sets the dial hand style for the element.
|
void |
putChartFormat(java.text.NumberFormat format)
Sets the number format for this element.
|
void |
putChartInflexionStyle(int inflexionStyle)
Sets the style for the inflexion of this element.
|
void |
putChartMarkers(java.util.List markers)
Sets the mark list for this element.
|
void |
putChartMax(double max)
Sets the maximal value for this element.
|
void |
putChartMin(double min)
Sets the minimal value for this element.
|
void |
putChartPercentMarkerPostion(int position)
Sets the position for the marker in percent chart.
|
void |
putChartPercentSpareColor(java.awt.Color spareColor)
Sets the spare color for the percent chart.
|
void |
putChartPercentSpareCoverColor(java.awt.Color spareCoverColor)
Sets the spare cover color for the percent chart.
|
void |
putChartPercentSpareFill(boolean spareFill)
Sets whether the spare of the percent chart should be filled.
|
void |
putChartPercentStyle(int percentStyle)
Sets the style for the percent type chart.
|
void |
putChartSectorDivisionPosition(java.util.List list) |
void |
putChartSectorStroke(java.util.List list) |
void |
putChartStroke(java.lang.String stroke)
Sets the stroke for this element.
|
void |
putChartValue(double value)
Sets the value for this element.
|
void |
putChartValues(java.util.List values)
Sets the values list for this element.
|
void |
putChartValueTextPosition(int position)
Sets the position for the label of the chart.
|
void |
putClientProperty(java.lang.Object key,
boolean value)
Adds an new boolean type value for a specified client property.
|
void |
putClientProperty(java.lang.Object key,
int value)
Adds an new integer type value for a specified client property.
|
void |
putClientProperty(java.lang.Object key,
java.lang.Object value)
Adds an arbitrary key/value "client property" to this element.
|
void |
putDrawIconShape(boolean drawIconShape)
Sets whether the icon shape is drawn.
|
void |
putElementTreeIcon(javax.swing.Icon elementTreeIcon)
Set the icon for this element which is used to paint on the tree component.
|
void |
putLabelBackground(java.awt.Color labelBackground)
Sets the background color for the label attachment of this element.
|
void |
putLabelBorder(boolean labelBorder)
Sets whether the border of the label attachment of this element should be visible.
|
void |
putLabelBorderColor(java.awt.Color labelBorderColor)
Sets the border color for the label attachment of this element.
|
void |
putLabelBorderStroke(java.lang.String labelBorderStroke)
Sets the stroke for the border of the label attachment of this element.
|
void |
putLabelColor(java.awt.Color labelColor)
Sets the color for the label attachment of this element.
|
void |
putLabelFont(java.awt.Font labelFont)
Sets the font for the label attachment of this element.
|
void |
putLabelHighlightable(boolean labelHighlightable)
Sets whether the label attachment of this element should be highlighted when this element is selected.
|
void |
putLabelHighlightBackground(java.awt.Color labelHighlightBackground)
Sets the highlight color for the background of the label attachment of this element when this element is selected.
|
void |
putLabelHighlightForeground(java.awt.Color labelHighlightForeground)
Sets the highlight color for the foreground of the label attachment of this element when this element is selected.
|
void |
putLabelIcon(java.lang.String labelIcon)
Sets the icon url for the label attachment of this element.
|
void |
putLabelMaxLength(int labelMaxLength)
Sets the maximal length for the label attachment of this element.
|
void |
putLabelOrientation(int labelOrientation)
Sets the orientation for the label attachment of this element.
|
void |
putLabelPosition(int labelPosition)
Sets the position for the label attachment of this element.
|
void |
putLabelSelectable(boolean labelSelectable)
Sets whether the label attachment of this element is selectable.
|
void |
putLabelUnderline(boolean labelUnderline)
Sets whether the underline of the label attachment of this element should be visible.
|
void |
putLabelUnderlineColor(java.awt.Color labelUnderlineColor)
Sets the color for the underline of the label attachment of this element.
|
void |
putLabelUnderlineStroke(java.lang.String labelUnderlineStroke)
Sets the stroke for the underline of the label attachment of this element.
|
void |
putLabelVisible(boolean labelVisible)
Sets whether the label attachment of this element should be visible.
|
void |
putLabelXGap(int labelXGap)
Sets the horizontal gap for the label attachment of this element.
|
void |
putLabelXOffset(int labelXOffset)
Sets the horizontal offset for the label attachment of this element.
|
void |
putLabelYGap(int labelYGap)
Sets the vertical gap for the label attachment of this element.
|
void |
putLabelYOffset(int labelYOffset)
Sets the vertical offset for the label attachment of this element.
|
void |
putMessageArc(int messageArc)
Sets the arc for the message attachment of this element.
|
void |
putMessageAutoAdjustDirection(boolean messageAutoAdjustDirection)
Sets whether the direction of the message attachment should be adjusted automatic.
|
void |
putMessageBackground(java.awt.Color messageBackground)
Sets the background color for the message attachment of this element.
|
void |
putMessageBorderColor(java.awt.Color messageBorderColor)
Sets the border color for the message attachment of this element.
|
void |
putMessageBorderStroke(java.lang.String messageBorderStroke)
Sets the stroke for the border of the message attachment of this element.
|
void |
putMessageBorderVisible(boolean messageBorderVisible)
Sets whether the border of the message attachment of this element should be visible.
|
void |
putMessageClosable(boolean messageClosable)
Sets whether the message attachment of this element is closable.
|
void |
putMessageComponent(int messageComponent)
Sets the component type for the message attachment of this element.
|
void |
putMessageContent(java.lang.String messageContent)
Sets the content for the message attachment of this element.
|
void |
putMessageDirection(int messageDirection)
Sets the direction for the message attachment of this element.
|
void |
putMessageFont(java.awt.Font messageFont)
Sets the font for the message attachment of this element.
|
void |
putMessageForeground(java.awt.Color messageForeground)
Sets the foreground color for the message attachment of this element.
|
void |
putMessageHeight(int messageHeight)
Sets the height for the message attachment of this element.
|
void |
putMessageMinimizable(boolean messageMinimizable)
Sets whether the message attachment of this element is minimizable.
|
void |
putMessageMinimized(boolean minimized)
Sets whether the message attachment of this element should be minimized.
|
void |
putMessageMinimizedIcon(java.lang.String messageMinimizedIcon)
Sets the icon for the message attachment of this element when the message attachment is minimized.
|
void |
putMessageOpaque(boolean messageOpaque)
Sets whether the the message attachment of this element should be opaque.
|
void |
putMessagePosition(int messagePosition)
Sets the position for the message attachment of this element.
|
void |
putMessageShadowColor(java.awt.Color messageShadowColor)
Sets the shadow color for the message attachment of this element.
|
void |
putMessageShadowVisible(boolean messageShadowVisible)
Sets whether the shadow of the message attachment of this element should be visible.
|
void |
putMessageShownOnTop(boolean messageShownOnTop)
Sets whether the message attachment of this element should show on top.
|
void |
putMessageShrinkable(boolean messageShrinkable)
Sets whether the message attachment of this element is shrinkable.
|
void |
putMessageShrinked(boolean shrinked)
Sets whether the message attachment of this element should be shrinked.
|
void |
putMessageStyle(int messageStyle)
Sets the style for the message attachment of this element.
|
void |
putMessageTail(int messageTail)
Sets the tail length for the message attachment of this element.
|
void |
putMessageWidth(int messageWidth)
Sets the width for the message attachment of this element.
|
void |
putMessageXGap(int messageXGap)
Sets the horizontal gap for the message attachment of this element.
|
void |
putMessageXOffset(int messageXOffset)
Sets the horizontal offset for the message attachment of this element.
|
void |
putMessageYGap(int messageYGap)
Sets the vertical gap for the message attachment of this element.
|
void |
putMessageYOffset(int messageYOffset)
Sets the vertical offset for the message attachment of this element.
|
void |
putRenderAlpha(float renderAlpha)
Sets the render alpha value for this element.
|
void |
putRenderColor(java.awt.Color renderColor)
Sets the render color for this element.
|
void |
putStateOutlineColor(java.awt.Color stateOutlineColor)
Sets the color for the outline of the state of this element.
|
void |
putStateOutlineInsets(int stateOutlineInsets)
Sets the insets for the state outline of this element.
|
void |
putStateOutlineWidth(int stateOutlineWidth)
Sets the width for the outline of the state of this element.
|
void |
putTextureFactory(java.lang.String textureFactory)
Sets the texture factory for this element.
|
void |
putUserProperty(java.lang.Object key,
boolean value)
Adds an new boolean type value for a specified user property.
|
void |
putUserProperty(java.lang.Object key,
int value)
Adds an new integer type value for a specified user property.
|
void |
putUserProperty(java.lang.Object key,
java.lang.Object value)
Adds an arbitrary key/value "user property" to this element.
|
void |
removeAttachment(java.lang.String attachmentName)
Removes specified attachment from this element.
|
void |
removeChild(Element element)
Removes the child element from this element.
|
void |
removeFromParent()
Remove this element from its parent.
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a PropertyChangeListener from this element.
|
void |
removePropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
Removes a PropertyChangeListener for a specific property.
|
void |
setAlarmState(AlarmState alarmState)
Sets the element's alarm state object.
|
void |
setBusinessObject(java.lang.Object businessObject)
Sets a new business object.An element object can bind a business object to
carry additional information.
|
void |
setCenterLocation(double x,
double y)
Sets the element's center point.
|
void |
setCenterLocation(java.awt.geom.Point2D location) |
void |
setChartValues(java.util.List values)
Sets the value list for this element.
|
void |
setDisplayName(java.lang.String displayName)
Sets new display name for this element.
|
void |
setEnableAlarmPropagationFromChildren(boolean enable)
Determines whether or not the children's alarm state can be
propagated to this element.
|
void |
setGeoCoordinate(GeoCoordinate geoCoordinate) |
void |
setIcon(java.lang.String url)
Sets this element's icon url, that may be used to render in
tree as substitute for default icon, if url is null then
element's icon will be replaced by default icon.
|
void |
setImage(java.lang.String url)
Sets this element's image url, that may be used to render in
network as substitute for default image, if url is null then
element's image will be replaced by default image.
|
void |
setLayerID(java.lang.Object layerID)
Sets the layer id of the element belongs to.
|
void |
setLocation(double x,
double y)
Sets new location for this element.
|
void |
setLocation(java.awt.Point location)
Sets new element location.
|
void |
setLocation(java.awt.geom.Point2D.Double location)
Sets new element location.
|
void |
setName(java.lang.String name)
Sets new name for this element.
|
void |
setParent(Element parent)
Set new parent to this element.
|
void |
setPropertyValue(TPropertyDescriptor property,
java.lang.Object newValue)
Sets a new value to the given property of this element.
|
void |
setSelected(boolean selected)
Sets the element object to be selected/unselected status.
|
void |
setToolTipText(java.lang.String tip)
Sets the element's tooltip text.
|
void |
setUserObject(java.lang.Object object)
Sets new user object.
|
void |
setVisible(boolean visible)
Sets whether this element should be shown on view component.
|
void |
updateUI()
Informs all TWaver view components that this element need to
update or repaint immediately.
|
java.lang.Object getID()
GeoCoordinate getGeoCoordinate()
void setGeoCoordinate(GeoCoordinate geoCoordinate)
java.lang.String getName()
getDisplayName()
java.lang.String getDisplayName()
getName()
java.lang.String getUIClassID()
ElementUI
java.lang.String getSVGUIClassID()
ElementSVGUI
,
TSVGNetwork
java.lang.Object getUserObject()
java.lang.String getIconURL()
TUIManager.registerIcon(Class, String)
javax.swing.ImageIcon getIcon()
void setIcon(java.lang.String url)
url
- icon url stringTUIManager.registerIcon(Class, String)
java.lang.String getImageURL()
TUIManager.registerImage(Class, String)
javax.swing.ImageIcon getImage()
void setImage(java.lang.String url)
url
- the new image url stringTUIManager.registerImage(Class, String)
Element getParent()
java.awt.Point getLocation()
double getX()
double getY()
void setLocation(double x, double y)
x
- double new x locationy
- double new y locationvoid setLocation(java.awt.geom.Point2D.Double location)
location
- new element location.void setLocation(java.awt.Point location)
location
- new element location.int getWidth()
int getHeight()
java.awt.Rectangle getBounds()
AlarmState getAlarmState()
twaver.AlarmSate
boolean isSelected()
boolean isVisible()
VisibleFilter
,
TTree.isVisible(Element)
,
TNetwork.isVisible(Element)
,
TElementTable.isVisible(Element)
,
TList.isVisible(Element)
boolean isDescendantOf(Element element)
the
- given element object.java.lang.Object getClientProperty(java.lang.Object key)
key
- the being queriednull
putClientProperty(java.lang.Object, java.lang.Object)
java.util.Map getClientProperties()
void setName(java.lang.String name)
name
- the new name for this element.void setDisplayName(java.lang.String displayName)
displayName
- the new display name for this element.getDisplayName()
,
TNetwork.setElementLabelGenerator(Generator)
void setUserObject(java.lang.Object object)
object
- the new user object.void setParent(Element parent)
This element will removed from the old parent automatically, so user don't need to call oldParent.removeChild(element).
parent
- the new parent element.void setVisible(boolean visible)
normally user don't need to call this method, whether or not a element is visible on the view component is determined by the visible filters that added on the view component like network, tree, table, list, etc.
visible
- if true, shows this element, false otherwise.isVisible()
void setToolTipText(java.lang.String tip)
tip
- the new element tooltip text.TNetwork.setElementToolTipTextGenerator(Generator)
,
TTree.setElementToolTipTextGenerator(Generator)
void setSelected(boolean selected)
selected
- new selection status.isSelected()
,
DataBoxSelectionModel
void setAlarmState(AlarmState alarmState)
alarmState
- new alarm state object.getAlarmState()
void removeFromParent()
setParent(Element)
java.beans.PropertyChangeSupport getPropertyChangeSupport()
TDataBox.addElementPropertyChangeListener(PropertyChangeListener)
,
TDataBox.removeElementPropertyChangeListener(PropertyChangeListener)
,
addPropertyChangeListener(PropertyChangeListener)
,
addPropertyChangeListener(String, PropertyChangeListener)
,
removePropertyChangeListener(PropertyChangeListener)
,
removePropertyChangeListener(String, PropertyChangeListener)
void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- the PropertyChangeListener to be added.getPropertyChangeSupport()
void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
propertyName
- the name of the property to listen on.listener
- the PropertyChangeListener to be added.getPropertyChangeSupport()
void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- the PropertyChangeListener to be removed.getPropertyChangeSupport()
void removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
propertyName
- the name of the property to listen on.listener
- the PropertyChangeListener to be removed.getPropertyChangeSupport()
void firePropertyChange(java.beans.PropertyChangeEvent evt)
evt
- the PropertyChangeEvent object.void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
propertyName
- the property whose value has changedoldValue
- the property's previous valuenewValue
- the property's new valuevoid firePropertyChange(java.lang.String propertyName, boolean oldValue, boolean newValue)
propertyName
- the property whose value has changedoldValue
- the property's previous valuenewValue
- the property's new valuevoid firePropertyChange(java.lang.String propertyName, int oldValue, int newValue)
propertyName
- the property whose value has changedoldValue
- the property's previous valuenewValue
- the property's new valuevoid putClientProperty(java.lang.Object key, java.lang.Object value)
key
- the client property keyvalue
- the new client property value;getClientProperty(Object)
,
addPropertyChangeListener(PropertyChangeListener)
,
putUserProperty(Object, Object)
void putClientProperty(java.lang.Object key, int value)
key
- the client property keyvalue
- the new client property value;putClientProperty(Object, Object)
void putClientProperty(java.lang.Object key, boolean value)
key
- the client property keyvalue
- the new client property value;putClientProperty(Object, Object)
java.lang.String getToolTipText()
setToolTipText(String)
void addChild(Element element)
Notice that if a child is added to this element, the child's parent property will be this element automatically, user don't need to invoke child.setParent(element).
element
- the child element to be added.void addChild(int index, Element element)
Notice that if a child is added to this element, the child's parent property will be this element automatically, user don't need to invoke child.setParent(element).
index
- the position at which to add the child element.element
- the child element to be added.void removeChild(Element element)
Notice that if a child is removed from this element, the child's parent property will be null automatically, user don't need to invoke child.setParent(null).
element
- the child element to be removed.java.util.Iterator children()
java.util.List getChildren()
addChild(Element)
,
addChild(int, Element)
,
removeChild(Element)
int childrenSize()
boolean isEmpty()
void clearChildren()
boolean isParentOf(Element element)
element
- the element needed to be checkedElement getChildrenByID(java.lang.Object id)
java.awt.Point getCenterLocation()
setCenterLocation(double, double)
void setCenterLocation(double x, double y)
x
- new x value of center location.y
- new y value of center location.void setCenterLocation(java.awt.geom.Point2D location)
void addAttachment(java.lang.String attachmentName)
attachmentName
- the name of the attachment to be added.TUIManager.registerAttachment(String, Class)
,
TUIManager.registerAttachment(String, String)
void removeAttachment(java.lang.String attachmentName)
attachmentName
- the name of the attachment to be added.TUIManager.registerAttachment(String, Class)
,
TUIManager.registerAttachment(String, String)
Element copy()
Copy element isn't a easy job, may be you want to deeply clone some properties, may be you just want the new copied element referencing to the value object of some properties. so if the default isn't fit your requirement, you can use twaver.TUIManager#registerPredefinedPropertyCopied("certain property name", false) to disable twaver's default implementation on the "certain property name", and extend the twaver.DefaultExportValuesInterceptor and register it via twaver.TWaverUtil#setExportValuesInterceptor(ExportValuesInterceptor), or override the copy() method to do the copy by yourself.
TUIManager.registerPredefinedPropertyCopied(String, boolean)
,
TUIManager.isPredefinedPropertyCopied(String)
,
ExportValuesInterceptor
,
TWaverUtil.setExportValuesInterceptor(ExportValuesInterceptor)
Element copy(java.lang.Object id)
id
- the copied element's id.copy()
Element copy(TDataBox box)
box
- the given data box object.Element copy(java.lang.Object id, TDataBox box)
id
- the copied element's id.box
- the given data box object.void updateUI()
boolean isEnableAlarmPropagationFromChildren()
void setEnableAlarmPropagationFromChildren(boolean enable)
enable
- If true enable the children's alarm state
to propagate to this element, false otherwise.AlarmState.getPropagateSeverity()
java.lang.Object getLayerID()
Layer
,
LayerModel
,
TDataBox.getLayerModel()
void setLayerID(java.lang.Object layerID)
layerID
- int the layer id of the element belongs to.Layer
,
LayerModel
,
TDataBox.getLayerModel()
boolean isAdjustToBottom()
When returns false, normally when you select elements then them will be adjusted to showing on the top relative to other unselected elements in network canvas.
void setPropertyValue(TPropertyDescriptor property, java.lang.Object newValue)
property
- the given property of this element.newValue
- the new value of this propertygetPropertyValue(TPropertyDescriptor)
,
TPropertyDescriptor
,
ElementAttribute
java.lang.Object getPropertyValue(TPropertyDescriptor property)
property
- the given property of this element.setPropertyValue(TPropertyDescriptor, Object)
,
TPropertyDescriptor
,
ElementAttribute
java.lang.Object getBusinessObject()
setBusinessObject(Object)
void setBusinessObject(java.lang.Object businessObject)
businessObject
- a new business object.getBusinessObject()
java.lang.Object getUserProperty(java.lang.Object key)
key
- the being queriednull
putUserProperty(Object, Object)
,
getUserProperties()
java.util.Map getUserProperties()
getUserProperty(Object)
void putUserProperty(java.lang.Object key, java.lang.Object value)
User property has the same function as client property, but because twaver has already used client property to store same predefined properties of element, so user property is recommended to store other business data information to avoid conflict and confusion.
key
- the new client property keyvalue
- the new client property value;void putUserProperty(java.lang.Object key, int value)
key
- the user property keyvalue
- the new user property value;putUserProperty(Object, Object)
void putUserProperty(java.lang.Object key, boolean value)
key
- the user property keyvalue
- the new user property value;putUserProperty(Object, Object)
boolean containsAttachment(java.lang.String attachmentName)
attachmentName
- the querying attachment nameaddAttachment(String)
,
removeAttachment(String)
,
TUIManager.registerAttachment(String, Class)
,
TUIManager.registerAttachment(String, String)
void putLabelIcon(java.lang.String labelIcon)
labelIcon
- the icon url for the label attachment of this element.getLabelIcon()
void putLabelFont(java.awt.Font labelFont)
labelFont
- the font for the label attachment of this element.getLabelFont()
void putLabelColor(java.awt.Color labelColor)
labelColor
- the color for the label attachment of this elementgetLabelColor()
void putLabelBackground(java.awt.Color labelBackground)
labelBackground
- the background color for the label attachment of this element.getLabelBackground()
void putLabelVisible(boolean labelVisible)
labelVisible
- if true the label attachment of this element should be visible,false otherwise.isLabelVisible()
void putLabelBorder(boolean labelBorder)
labelBorder
- if true the border of the label attachment of this element should be visible,false otherwise.isLabelBorder()
void putLabelUnderline(boolean labelUnderline)
labelUnderline
- if true the underline of the label attachment of this element should be visible,false otherwise.isLabelUnderline()
void putLabelPosition(int labelPosition)
TWaverConst.POSITION_HOTSPOT
TWaverConst.POSITION_CENTER
TWaverConst.POSITION_TOP
TWaverConst.POSITION_BOTTOM
TWaverConst.POSITION_LEFT
TWaverConst.POSITION_RIGHT
TWaverConst.POSITION_TOPLEFT
TWaverConst.POSITION_TOPRIGHT
TWaverConst.POSITION_BOTTOMLEFT
TWaverConst.POSITION_BOTTOMRIGHT
TWaverConst.POSITION_INNER_BOTTOM
TWaverConst.POSITION_INNER_TOP
TWaverConst.POSITION_INNER_LEFT
TWaverConst.POSITION_INNER_RIGHT
TWaverConst.POSITION_INNER_TOPLEFT
TWaverConst.POSITION_INNER_TOPRIGHT
TWaverConst.POSITION_INNER_BOTTOMLEFT
TWaverConst.POSITION_INNER_BOTTOMRIGHT
labelPosition
- the position for the label attachment of this element.getLabelPosition()
void putLabelOrientation(int labelOrientation)
TWaverConst.LABEL_ORIENTATION_HORIZONTAL
TWaverConst.LABEL_ORIENTATION_VERTICAL
TWaverConst.LABEL_ORIENTATION_LEFT
TWaverConst.LABEL_ORIENTATION_RIGHT
labelOrientation
- the orientation for the label attachment of this elementgetLabelOrientation()
void putLabelXOffset(int labelXOffset)
labelXOffset
- the horizontal offset for the label attachment of this element.getLabelXOffset()
void putLabelYOffset(int labelYOffset)
labelYOffset
- the vertical offset for the label attachment of this element.getLabelYOffset()
void putLabelXGap(int labelXGap)
labelXGap
- the horizontal gap for the label attachment of this element.getLabelXGap()
void putLabelYGap(int labelYGap)
labelYGap
- the vertical gap for the label attachment of this element.getLabelYGap()
void putLabelBorderStroke(java.lang.String labelBorderStroke)
labelBorderStroke
- the stroke for the border of the label attachment of this element.getLabelBorderStroke()
void putLabelBorderColor(java.awt.Color labelBorderColor)
labelBorderColor
- the border color for the label attachment of this element.getLabelBorderColor()
void putLabelUnderlineStroke(java.lang.String labelUnderlineStroke)
labelUnderlineStroke
- the stroke for the underline of the label attachment of this element.getLabelUnderlineStroke()
void putLabelUnderlineColor(java.awt.Color labelUnderlineColor)
labelUnderlineColor
- the color for the underline of the label attachment of this element.getLabelUnderlineColor()
void putLabelSelectable(boolean labelSelectable)
labelSelectable
- if true the label attachment of this element is selectable,false otherwise.isLabelSelectable()
void putLabelHighlightable(boolean labelHighlightable)
labelHighlightable
- if true the label attachment of this element should be highlight
when this element is selected,false otherwise.isLabelHighlightable()
void putLabelHighlightBackground(java.awt.Color labelHighlightBackground)
labelHighlightBackground
- the highlight color for the background of the label attachment
of this element when this element is selected.getLabelHighlightBackground()
void putLabelHighlightForeground(java.awt.Color labelHighlightForeground)
labelHighlightForeground
- the highlight color for the foreground of the label attachment
of this element when this element is selected.getLabelHighlightForeground()
void putLabelMaxLength(int labelMaxLength)
labelMaxLength
- the maximal length for the label attachment of this element.getLabelMaxLength()
void putDrawIconShape(boolean drawIconShape)
drawIconShape
- if true the icon shape is drawn,false otherwise.isDrawIconShape()
void putRenderAlpha(float renderAlpha)
renderAlpha
must be a floating point number in the inclusive range [0.0, 1.0].renderAlpha
- the render alpha value for this element.getRenderAlpha()
void putElementTreeIcon(javax.swing.Icon elementTreeIcon)
elementTreeIcon
- the icon for this element which is used to paint on the tree componentgetElementTreeIcon()
void putRenderColor(java.awt.Color renderColor)
renderColor
- the render color for this element.getRenderColor()
void putStateOutlineColor(java.awt.Color stateOutlineColor)
stateOutlineColorthe
- color for the outline of the state of this element.getStateOutlineColor()
void putStateOutlineWidth(int stateOutlineWidth)
void putAttachmentPosition(int attachmentPosition)
TWaverConst.POSITION_HOTSPOT
TWaverConst.POSITION_CENTER
TWaverConst.POSITION_TOP
TWaverConst.POSITION_BOTTOM
TWaverConst.POSITION_LEFT
TWaverConst.POSITION_RIGHT
TWaverConst.POSITION_TOPLEFT
TWaverConst.POSITION_TOPRIGHT
TWaverConst.POSITION_BOTTOMLEFT
TWaverConst.POSITION_BOTTOMRIGHT
TWaverConst.POSITION_INNER_BOTTOM
TWaverConst.POSITION_INNER_TOP
TWaverConst.POSITION_INNER_LEFT
TWaverConst.POSITION_INNER_RIGHT
TWaverConst.POSITION_INNER_TOPLEFT
TWaverConst.POSITION_INNER_TOPRIGHT
TWaverConst.POSITION_INNER_BOTTOMLEFT
TWaverConst.POSITION_INNER_BOTTOMRIGHT
attachmentPosition
- the position for the attachment of this element.getAttachmentPosition()
void putAttachmentOrientation(int attachmentOrientation)
TWaverConst.ORIENTATION_NORTH
TWaverConst.ORIENTATION_NORTH_EAST
TWaverConst.ORIENTATION_EAST
TWaverConst.ORIENTATION_SOUTH_EAST
TWaverConst.ORIENTATION_SOUTH
TWaverConst.ORIENTATION_SOUTH_WEST
TWaverConst.ORIENTATION_WEST
TWaverConst.ORIENTATION_NORTH_WEST
attachmentOrientation
- the orientation for the attachment of this element.getAttachmentOrientation()
void putAttachmentXOffset(int attachmentXOffset)
attachmentXOffset
- the horizontal offset for the attachment of this element.getAttachmentXOffset()
void putAttachmentYOffset(int attachmentYOffset)
attachmentYOffset
- the vertical offset for the attachment of this element.getAttachmentYOffset()
void putAttachmentXGap(int attachmentXGap)
attachmentXGap
- the vertical gap for the attachment of this element.getAttachmentXGap()
void putAttachmentYGap(int attachmentYGap)
attachmentYGap
- the vertical gap for the attachment of this element.getAttachmentYGap()
void putAlarmBalloonPosition(int alarmBalloonPosition)
TWaverConst.POSITION_HOTSPOT
TWaverConst.POSITION_CENTER
TWaverConst.POSITION_TOP
TWaverConst.POSITION_BOTTOM
TWaverConst.POSITION_LEFT
TWaverConst.POSITION_RIGHT
TWaverConst.POSITION_TOPLEFT
TWaverConst.POSITION_TOPRIGHT
TWaverConst.POSITION_BOTTOMLEFT
TWaverConst.POSITION_BOTTOMRIGHT
TWaverConst.POSITION_INNER_BOTTOM
TWaverConst.POSITION_INNER_TOP
TWaverConst.POSITION_INNER_LEFT
TWaverConst.POSITION_INNER_RIGHT
TWaverConst.POSITION_INNER_TOPLEFT
TWaverConst.POSITION_INNER_TOPRIGHT
TWaverConst.POSITION_INNER_BOTTOMLEFT
TWaverConst.POSITION_INNER_BOTTOMRIGHT
alarmBalloonPosition
- the position for the alarm balloon of this element.getAlarmBalloonPosition()
void putAlarmBalloonDirection(int alarmBalloonDirection)
TWaverConst.ATTACHMENT_DIRECTION_TOP_LEFT
TWaverConst.ATTACHMENT_DIRECTION_TOP_RIGHT
TWaverConst.ATTACHMENT_DIRECTION_BOTTOM_LEFT
TWaverConst.ATTACHMENT_DIRECTION_BOTTOM_RIGHT
TWaverConst.ATTACHMENT_DIRECTION_LEFT_TOP
TWaverConst.ATTACHMENT_DIRECTION_LEFT_BOTTOM
TWaverConst.ATTACHMENT_DIRECTION_RIGHT_TOP
TWaverConst.ATTACHMENT_DIRECTION_RIGHT_BOTTOM
TWaverConst.ATTACHMENT_DIRECTION_TOP
TWaverConst.ATTACHMENT_DIRECTION_BOTTOM
TWaverConst.ATTACHMENT_DIRECTION_LEFT
TWaverConst.ATTACHMENT_DIRECTION_RIGHT
alarmBalloonDirection
- the direction for the alarm balloon of this elementgetAlarmBalloonDirection()
void putAlarmBalloonXoffset(int alarmBalloonXoffset)
alarmBalloonXoffset
- the horizontal offset for the alarm balloon of this element.getAlarmBalloonXOffset()
void putAlarmBalloonYoffset(int alarmBalloonYoffset)
alarmBalloonYoffset
- the vertical offset for the alarm balloon of this element.getAlarmBalloonYOffset()
void putAlarmBalloonVisible(boolean alarmBalloonVisible)
alarmBalloonVisible
- if true the alarm balloon of this element should be visible,false otherwise.isAlarmBalloonVisible()
void putAlarmBalloonAlpha(float alarmBalloonAlpha)
alarmBalloonAlpha
must be a floating point number in the inclusive range [0.0, 1.0].alarmBalloonAlpha
- the alpha for the alarm balloon of this element.getAlarmBalloonAlpha()
void putAlarmBalloonTextFont(java.awt.Font alarmBalloonTextFont)
alarmBalloonTextFont
- the text font for the alarm balloon of this element.getAlarmBalloonTextFont()
void putAlarmBalloonTextColor(java.awt.Color alarmBalloonTextColor)
alarmBalloonTextColor
- the text color for the alarm balloon of this element.getAlarmBalloonTextColor()
void putAlarmBalloonTextBlinkable(boolean alarmBalloonTextBlinkable)
alarmBalloonTextBlinkable
- if true the text of the alarm balloon of this element is blinkable.isAlarmBalloonTextBlinkable()
void putAlarmBalloonOutlineColor(java.awt.Color alarmBalloonOutlineColor)
alarmBalloonOutlineColor
- the color for the outline of the alarm balloon of this element.getAlarmBalloonOutlineColor()
void putAlarmBalloonShadowColor(java.awt.Color alarmBalloonShadowColor)
alarmBalloonShadowColor
- the color for the shadow of the alarm balloon of this element.getAlarmBalloonShadowColor()
void putAlarmBalloonShadowOffset(int alarmBalloonShadowOffset)
alarmBalloonShadowOffset
- the offset for the shadow of the alarm balloon of this element.getAlarmBalloonShadowOffset()
void putAlarmBalloonShownOnTop(boolean alarmBalloonShownOnTop)
alarmBalloonShownOnTop
- if true the alarm balloon of this element should be shown on the top,false otherwise.isAlarmBalloonShownOnTop()
void putTextureFactory(java.lang.String textureFactory)
Paint
attribute
of this element.
Legal values are:
TWaverConst.TEXTURE_STIPPLE_LOOSE
TWaverConst.TEXTURE_STIPPLE_MIDDLE
TWaverConst.TEXTURE_STIPPLE_DENSE
TWaverConst.TEXTURE_GRID_DIAMOND
TWaverConst.TEXTURE_GRID_SQUARE
TWaverConst.TEXTURE_GRID_TRIANGLE
TWaverConst.TEXTURE_LINE_CROSS
TWaverConst.TEXTURE_LINE_VERTICAL
TWaverConst.TEXTURE_LINE_HORIZONTAL
TWaverConst.TEXTURE_LINE_DIAGONAL
TWaverConst.TEXTURE_LINE_ANTIDIAGONAL
textureFactory
- the texture factory for this element.getTextureFactory()
void putBorderAntialias(boolean borderAntialias)
borderAntialias
- if true the border should be drawn with antialias mode,false otherwise.getBorderAntialias()
void putBorderVisible(boolean borderVisible)
borderVisible
- if true the border of this element should be visible,false otherwise.isBorderVisible()
void putBorderFill(boolean borderFill)
borderFill
- if true the border of this element should be filled with border color,false otherwise.isBorderFill()
void putBorderUnderneath(boolean borderUnderneath)
borderUnderneath
- if true the border of this element should be underneath this element,false otherwise.isBorderUnderneath()
void putBorderXormode(boolean borderXormode)
borderXormode
- if true the border of this element should be drawn with XOR mode,false otherwise.isBorderXormode()
void putBorderStroke(java.lang.String borderStroke)
borderStroke
- the stroke for the border of this element.getBorderStroke()
void putBorderColor(java.awt.Color borderColor)
borderColor
- the color for the border of this element.getBorderColor()
void putBorderFillColor(java.awt.Color borderFillColor)
borderFillColor
- the fill color for the border of this element.getBorderFillColor()
void putBorderInsets(int borderInsets)
borderInsets
- the insets for the border of this element.getBorderInsets()
void putBorderType(int borderType)
TWaverConst.BORDER_TYPE_DEFAULT
TWaverConst.BORDER_TYPE_POINT
TWaverConst.BORDER_TYPE_SHAPE
borderType
- the type for the border of this element.getBorderType()
void putBorderShapeFactory(int borderShapeFactory)
TWaverConst.SHAPE_CIRCLE
TWaverConst.SHAPE_RECTANGLE
TWaverConst.SHAPE_ROUND_RECTANGLE
TWaverConst.SHAPE_ROUND_RECTANGLE_HALF
TWaverConst.SHAPE_ROUND_RECTANGLE_QUARTER
TWaverConst.SHAPE_ROUND_VAULT
TWaverConst.SHAPE_ROUND_VAULT_HALF
TWaverConst.SHAPE_ROUND_VAULT_QUARTER
TWaverConst.SHAPE_DIAMOND
TWaverConst.SHAPE_TRIANGLE
TWaverConst.SHAPE_STAR
TWaverConst.SHAPE_ROUND
borderShapeFactory
- the shape factory for the border of this element.getBorderShapeFactory()
void putStateOutlineInsets(int stateOutlineInsets)
stateOutlineInsets
- the insets for the state outline of this element.getStateOutlineInsets()
void putMessageContent(java.lang.String messageContent)
messageContent
- the content for the message attachment of this element.getMessageContent()
void putMessageStyle(int messageStyle)
TWaverConst.ATTACHMENT_STYLE_DEFAULT
TWaverConst.ATTACHMENT_STYLE_BUBBLE
messageStyle
- the style for the message attachment of this element.getMessageStyle()
void putMessageComponent(int messageComponent)
TWaverConst.MESSAGE_COMPONENT_LABEL
TWaverConst.MESSAGE_COMPONENT_TEXTPANE
messageComponent
- the component type for the message attachment of this element.getMessageComponent()
void putMessageWidth(int messageWidth)
messageWidth
- the width for the message attachment of this element.getMessageWidth()
void putMessageHeight(int messageHeight)
messageHeight
- the height for the message attachment of this element.getMessageHeight()
void putMessageTail(int messageTail)
messageTail
- the tail length for the message attachment of this element.getMessageTail()
void putMessageArc(int messageArc)
messageArc
- the arc for the message attachment of this element.getMessageArc()
void putMessageMinimized(boolean minimized)
minimized
- if true the message attachment of this element should be minimized,false otherwise.isMessageMinimized()
void putMessageShrinked(boolean shrinked)
shrinked
- if true the message attachment of this element should be shrinked,false otherwise.isMessageShrinked()
void putMessageShrinkable(boolean messageShrinkable)
messageShrinkable
- if true the message attachment of this element is shrinkable,false otherwise.isMessageShrinkable()
void putMessageClosable(boolean messageClosable)
messageClosable
- if true the message attachment of this element is closable,false otherwise.isMessageClosable()
void putMessageMinimizable(boolean messageMinimizable)
messageMinimizable
- if true the message attachment of this element is minimizable,false otherwise.isMessageMinimizable()
void putMessageAutoAdjustDirection(boolean messageAutoAdjustDirection)
messageAutoAdjustDirection
- if true the the direction of the message attachment should be adjusted automatic,
false otherwise.isMessageAutoAdjustDirection()
void putMessagePosition(int messagePosition)
TWaverConst.POSITION_HOTSPOT
TWaverConst.POSITION_CENTER
TWaverConst.POSITION_TOP
TWaverConst.POSITION_BOTTOM
TWaverConst.POSITION_LEFT
TWaverConst.POSITION_RIGHT
TWaverConst.POSITION_TOPLEFT
TWaverConst.POSITION_TOPRIGHT
TWaverConst.POSITION_BOTTOMLEFT
TWaverConst.POSITION_BOTTOMRIGHT
TWaverConst.POSITION_INNER_BOTTOM
TWaverConst.POSITION_INNER_TOP
TWaverConst.POSITION_INNER_LEFT
TWaverConst.POSITION_INNER_RIGHT
TWaverConst.POSITION_INNER_TOPLEFT
TWaverConst.POSITION_INNER_TOPRIGHT
TWaverConst.POSITION_INNER_BOTTOMLEFT
TWaverConst.POSITION_INNER_BOTTOMRIGHT
messagePosition
- the position for the message attachment of this element.getMessagePosition()
void putMessageDirection(int messageDirection)
TWaverConst.ATTACHMENT_DIRECTION_TOP_LEFT
TWaverConst.ATTACHMENT_DIRECTION_TOP_RIGHT
TWaverConst.ATTACHMENT_DIRECTION_BOTTOM_LEFT
TWaverConst.ATTACHMENT_DIRECTION_BOTTOM_RIGHT
TWaverConst.ATTACHMENT_DIRECTION_LEFT_TOP
TWaverConst.ATTACHMENT_DIRECTION_LEFT_BOTTOM
TWaverConst.ATTACHMENT_DIRECTION_RIGHT_TOP
TWaverConst.ATTACHMENT_DIRECTION_RIGHT_BOTTOM
TWaverConst.ATTACHMENT_DIRECTION_TOP
TWaverConst.ATTACHMENT_DIRECTION_BOTTOM
TWaverConst.ATTACHMENT_DIRECTION_LEFT
TWaverConst.ATTACHMENT_DIRECTION_RIGHT
messageDirection
- the direction for the message attachment of this element.getMessageDirection()
void putMessageFont(java.awt.Font messageFont)
messageFont
- the font for the message attachment of this element.getMessageFont()
void putMessageForeground(java.awt.Color messageForeground)
messageForeground
- the foreground color for the message attachment of the element.getMessageForeground()
void putMessageBackground(java.awt.Color messageBackground)
messageBackground
- the background color for the message attachment of this element.getMessageBackground()
void putMessageOpaque(boolean messageOpaque)
messageOpaque
- if true the message attachment of this element should be opaque,false otherwise.isMessageOpaque()
void putMessageXOffset(int messageXOffset)
messageXOffset
- the horizontal offset for the message attachment of this element.getMessageXOffset()
void putMessageYOffset(int messageYOffset)
messageYOffset
- the vertical offset for the message attachment of this element.getMessageYOffset()
void putMessageXGap(int messageXGap)
messageXGap
- the horizontal gap for the message attachment of this element.getMessageXGap()
void putMessageYGap(int messageYGap)
messageYGap
- the vertical gap for the message attachment of this element.getMessageYGap()
void putMessageMinimizedIcon(java.lang.String messageMinimizedIcon)
messageMinimizedIcon
- the icon for the message attachment of this element when the message attachment is minimized.getMessageMinimizedIcon()
void putMessageShadowVisible(boolean messageShadowVisible)
messageShadowVisible
- if true the shadow of the message attachment of this element should be visible,false otherwise.isMessageShadowVisible()
void putMessageShadowColor(java.awt.Color messageShadowColor)
messageShadowColor
- the shadow color for the message attachment of this element.getMessageShadowColor()
void putMessageBorderColor(java.awt.Color messageBorderColor)
messageBorderColor
- the border color for the message attachment of this element.getMessageBorderColor()
void putMessageBorderVisible(boolean messageBorderVisible)
messageBorderVisible
- if true the border of the message attachment of this element should be visible,false otherwise.isMessageBorderVisible()
void putMessageBorderStroke(java.lang.String messageBorderStroke)
messageBorderStroke
- the stroke for the border of the message attachment of this element.getMessageBorderStroke()
void putMessageShownOnTop(boolean messageShownOnTop)
messageShownOnTop
- if true the message attachment of this element should show on top,false otherwise.isMessageShownOnTop()
void putChartColor(java.awt.Color color)
color
- the color for this element.getChartColor()
void putChartValue(double value)
value
- the value for this element.getChartValue()
void putChartMax(double max)
max
- the maximal value for this element.getChartMax()
void putChartMin(double min)
min
- the minimal value for this element.getChartMin()
void putChartInflexionStyle(int inflexionStyle)
TWaverConst.INFLEXION_STYLE_CIRCLE
TWaverConst.INFLEXION_STYLE_DIAMOND
TWaverConst.INFLEXION_STYLE_RECTANGLE
TWaverConst.INFLEXION_STYLE_TRIANGLE
inflexionStyle
- the style for the inflexion of the chart.getChartInflexionStyle()
void putChartPercentStyle(int percentStyle)
TWaverConst.PERCENT_STYLE_PLANE
TWaverConst.PERCENT_STYLE_SOLID
TWaverConst.PERCENT_STYLE_SEGMENT
percentStyle
- the style for the percent type chart.getChartPercentStyle()
void putChartFormat(java.text.NumberFormat format)
format
- the number format for this element.getChartFormat()
void putChartValues(java.util.List values)
values
- the values list for this element.getChartValues()
void putChartStroke(java.lang.String stroke)
stroke
- the stroke for this element.getChartStroke()
void putChartMarkers(java.util.List markers)
markers
- the mark list for this element.getChartMarkers()
javax.swing.Icon getElementTreeIcon()
TUIManger
putElementTreeIcon(Icon)
boolean isDrawIconShape()
putDrawIconShape(boolean)
float getRenderAlpha()
putRenderAlpha(float)
java.awt.Color getRenderColor()
putRenderColor(Color)
java.awt.Color getStateOutlineColor()
putStateOutlineColor(Color)
int getStateOutlineWidth()
putStateOutlineWidth(int)
java.lang.String getTextureFactory()
putTextureFactory(String)
boolean getBorderAntialias()
putBorderAntialias(boolean)
boolean isBorderVisible()
putBorderVisible(boolean)
boolean isBorderFill()
putBorderFill(boolean)
boolean isBorderUnderneath()
putBorderUnderneath(boolean)
boolean isBorderXormode()
putBorderXormode(boolean)
java.lang.String getBorderStroke()
putBorderStroke(String)
java.awt.Color getBorderColor()
putBorderColor(Color)
java.awt.Color getBorderFillColor()
putBorderFillColor(Color)
int getBorderInsets()
putBorderInsets(int)
int getBorderType()
putBorderType(int)
int getBorderShapeFactory()
putBorderShapeFactory(int)
int getStateOutlineInsets()
putStateOutlineInsets(int)
java.lang.String getLabelIcon()
TUIManger
putLabelIcon(String)
java.awt.Font getLabelFont()
putLabelFont(Font)
java.awt.Color getLabelColor()
putLabelColor(Color)
java.awt.Color getLabelBackground()
putLabelBackground(Color)
boolean isLabelVisible()
putLabelVisible(boolean)
boolean isLabelBorder()
putLabelBorder(boolean)
boolean isLabelUnderline()
putLabelUnderline(boolean)
int getLabelPosition()
putLabelPosition(int)
int getLabelXOffset()
putLabelXOffset(int)
int getLabelYOffset()
putLabelYOffset(int)
int getLabelXGap()
putLabelXGap(int)
int getLabelYGap()
putLabelYGap(int)
int getLabelOrientation()
putLabelOrientation(int)
java.lang.String getLabelBorderStroke()
putLabelBorderStroke(String)
java.lang.String getLabelUnderlineStroke()
putLabelUnderlineStroke(String)
boolean isLabelSelectable()
putLabelSelectable(boolean)
java.awt.Color getLabelBorderColor()
putLabelBorderColor(Color)
java.awt.Color getLabelUnderlineColor()
putLabelUnderlineColor(Color)
boolean isLabelHighlightable()
putLabelHighlightable(boolean)
java.awt.Color getLabelHighlightBackground()
putLabelHighlightBackground(Color)
java.awt.Color getLabelHighlightForeground()
putLabelHighlightForeground(Color)
int getLabelMaxLength()
putLabelMaxLength(int)
int getAttachmentPosition()
putAttachmentPosition(int)
int getAttachmentOrientation()
putAttachmentOrientation(int)
int getAttachmentXOffset()
putAttachmentXOffset(int)
int getAttachmentYOffset()
putAttachmentYOffset(int)
int getAttachmentXGap()
putAttachmentXGap(int)
int getAttachmentYGap()
putAttachmentYGap(int)
int getAlarmBalloonPosition()
putAlarmBalloonPosition(int)
int getAlarmBalloonDirection()
putAlarmBalloonDirection(int)
int getAlarmBalloonXOffset()
putAlarmBalloonXoffset(int)
int getAlarmBalloonYOffset()
putAlarmBalloonYoffset(int)
boolean isAlarmBalloonVisible()
putAlarmBalloonVisible(boolean)
float getAlarmBalloonAlpha()
putAlarmBalloonAlpha(float)
java.awt.Font getAlarmBalloonTextFont()
putAlarmBalloonTextFont(Font)
java.awt.Color getAlarmBalloonTextColor()
putAlarmBalloonTextColor(Color)
boolean isAlarmBalloonTextBlinkable()
putAlarmBalloonTextBlinkable(boolean)
java.awt.Color getAlarmBalloonOutlineColor()
putAlarmBalloonOutlineColor(Color)
java.awt.Color getAlarmBalloonShadowColor()
putAlarmBalloonShadowColor(Color)
int getAlarmBalloonShadowOffset()
putAlarmBalloonShadowOffset(int)
boolean isAlarmBalloonShownOnTop()
putAlarmBalloonShownOnTop(boolean)
java.lang.String getMessageContent()
putMessageContent(String)
int getMessageWidth()
putMessageWidth(int)
int getMessageHeight()
putMessageHeight(int)
int getMessageComponent()
putMessageComponent(int)
int getMessageStyle()
putMessageStyle(int)
int getMessageTail()
putMessageTail(int)
int getMessageArc()
putMessageArc(int)
boolean isMessageMinimized()
putMessageMinimized(boolean)
boolean isMessageShrinked()
putMessageShrinked(boolean)
boolean isMessageShrinkable()
putMessageShrinkable(boolean)
boolean isMessageClosable()
putMessageClosable(boolean)
boolean isMessageAutoAdjustDirection()
putMessageAutoAdjustDirection(boolean)
boolean isMessageMinimizable()
putMessageMinimizable(boolean)
int getMessagePosition()
putMessagePosition(int)
int getMessageDirection()
putMessageDirection(int)
java.awt.Font getMessageFont()
putMessageFont(Font)
java.awt.Color getMessageForeground()
putMessageForeground(Color)
java.awt.Color getMessageBackground()
putMessageBackground(Color)
boolean isMessageOpaque()
putMessageOpaque(boolean)
int getMessageXOffset()
putMessageXOffset(int)
int getMessageYOffset()
putMessageYOffset(int)
int getMessageXGap()
putMessageXGap(int)
int getMessageYGap()
putMessageYGap(int)
java.lang.String getMessageMinimizedIcon()
putMessageMinimizedIcon(String)
boolean isMessageShadowVisible()
putMessageShadowVisible(boolean)
java.awt.Color getMessageShadowColor()
putMessageShadowColor(Color)
boolean isMessageBorderVisible()
putMessageBorderVisible(boolean)
java.awt.Color getMessageBorderColor()
putMessageBorderColor(Color)
java.lang.String getMessageBorderStroke()
putMessageBorderStroke(String)
boolean isMessageShownOnTop()
putMessageShownOnTop(boolean)
java.awt.Color getChartColor()
putChartColor(Color)
double getChartValue()
putChartValue(double)
double getChartMax()
putChartMax(double)
double getChartMin()
putChartMin(double)
java.text.NumberFormat getChartFormat()
putChartFormat(NumberFormat)
java.util.List getChartValues()
putChartValues(List)
void setChartValues(java.util.List values)
values
- the values for this element.getChartValues()
java.lang.String getChartStroke()
putChartStroke(String)
int getChartPercentStyle()
putChartPercentStyle(int)
int getChartInflexionStyle()
putChartInflexionStyle(int)
java.util.List getChartMarkers()
putChartMarkers(List)
void addChartValue(double value)
value
- a Double
object.setChartValues(List)
void addChartValue(java.lang.Double value)
value
- a Double
value.setChartValues(List)
void clearChartValues()
addChartValue(double)
void putChartDialHandLength(double chartDialHandLength)
chartDialHandLength
- the dial hand length for the element.getChartDialHandLength()
double getChartDialHandLength()
putChartDialHandLength(double)
void putChartDialHandStyle(int chartDialHandStyle)
TWaverConst.DIAL_HAND_STYLE_LINE
TWaverConst.DIAL_HAND_STYLE_TRIANGLE
TWaverConst.DIAL_HAND_STYLE_ARROW
chartDialHandStyle
- the dial hand style for the element.getChartDialHandStyle()
int getChartDialHandStyle()
putChartDialHandStyle(int)
void putChartPercentSpareFill(boolean spareFill)
spareFill
- if true the spare of the percent chart should be filled,false otherwise.getChartPercentSpareFill()
boolean getChartPercentSpareFill()
putChartPercentSpareFill(boolean)
void putChartPercentSpareColor(java.awt.Color spareColor)
spareColor
- the spare color for the percent chart.getChartPercentSpareColor()
java.awt.Color getChartPercentSpareColor()
putChartPercentSpareColor(Color)
void putChartPercentSpareCoverColor(java.awt.Color spareCoverColor)
spareCoverColor
- the spare cover color for the percent chart.getChartPercentSpareCoverColor()
java.awt.Color getChartPercentSpareCoverColor()
putChartPercentSpareCoverColor(Color)
void putChartPercentMarkerPostion(int position)
TWaverConst.PERCENT_MARKER_POSITION_DEFAULT
TWaverConst.PERCENT_MARKER_POSITION_INNER_DEFAULT
TWaverConst.PERCENT_MARKER_POSITION_TOP
TWaverConst.PERCENT_MARKER_POSITION_INNER_TOP
TWaverConst.PERCENT_MARKER_POSITION_BOTTOM
TWaverConst.PERCENT_MARKER_POSITION_INNER_BOTTOM
TWaverConst.PERCENT_MARKER_POSITION_LEFT
TWaverConst.PERCENT_MARKER_POSITION_INNER_LEFT
TWaverConst.PERCENT_MARKER_POSITION_RIGHT
TWaverConst.PERCENT_MARKER_POSITION_INNER_RIGHT
position
- the position of the marker in percent chart.getChartPercentMarkerPostion()
int getChartPercentMarkerPostion()
void addChartBubble(Bubble bubble)
bubble
- a Bubble
>void putChartBubbleStyle(int style)
BubbleChart
.
Legal values are:
TWaverConst.INFLEXION_STYLE_CIRCLE
TWaverConst.INFLEXION_STYLE_DIAMOND
TWaverConst.INFLEXION_STYLE_RECTANGLE
TWaverConst.INFLEXION_STYLE_TRIANGLE
style
- the style for the bubble in the BubbleChart
.getChartBubbleStyle()
int getChartBubbleStyle()
BubbleChart
.BubbleChart
.putChartBubbleStyle(int)
void putChartBubbleShapeLineVisible(boolean visible)
visible
- if true the line in bubble chart will be visible, false otherwise.#getChartBubbleLineVisible()
boolean getChartBubbleShapeLineVisible()
putChartBubbleShapeLineVisible(boolean)
void putChartBubbleShapeBubbleVisible(boolean visible)
visible
- if true the bubble shape in bubble chart will be visible, false otherwise.getChartBubbleShapeBubbleVisible()
boolean getChartBubbleShapeBubbleVisible()
putChartBubbleShapeBubbleVisible(boolean)
void putChartValueTextPosition(int position)
TWaverConst.POSITION_HOTSPOT
TWaverConst.POSITION_CENTER
TWaverConst.POSITION_TOP
TWaverConst.POSITION_BOTTOM
TWaverConst.POSITION_LEFT
TWaverConst.POSITION_RIGHT
TWaverConst.POSITION_TOPLEFT
TWaverConst.POSITION_TOPRIGHT
TWaverConst.POSITION_BOTTOMLEFT
TWaverConst.POSITION_BOTTOMRIGHT
position
- the position for the label of the chart.getChartValueTextPosition()
int getChartValueTextPosition()
putChartValueTextPosition(int)
void putChartSectorDivisionPosition(java.util.List list)
java.util.List getChartSectorDivisionPosition()
void putChartSectorStroke(java.util.List list)
java.util.List getChartSectorStroke()
Copyright © 2002 - 2010 Serva Software. All Rights Reserved.