public abstract class AbstractElement extends java.lang.Object implements Element
Element interface.
Modifier and Type | Field and Description |
---|---|
protected AlarmState |
alarmState |
protected java.lang.Object |
businessObject |
protected java.util.Map |
clientProperties |
protected java.util.Map |
delegate
Use this map to contains the children element's id
as the key, for the speedup of the check in addChild method.
|
protected java.lang.String |
displayName |
protected java.util.List |
elements
Use this vector to hold all children elements.
|
protected java.lang.String |
iconUrl |
protected java.lang.Object |
id |
protected java.lang.String |
imageUrl |
protected java.lang.String |
name |
protected Element |
parent |
protected java.beans.PropertyChangeSupport |
propertyChangeSupport |
protected boolean |
selected |
protected java.lang.String |
toolTipText |
protected java.lang.Object |
userObject |
protected java.util.Map |
userProperties |
protected boolean |
visible |
Constructor and Description |
---|
AbstractElement()
Default constructor of element.
|
AbstractElement(java.lang.Object id)
Using an identifier initialize this element.
|
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.
|
protected AlarmState |
createAlarmState() |
protected java.util.List |
createChildrenList() |
protected java.util.Map |
createChildrenMap() |
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.
|
protected void |
exportValues(Element element,
TDataBox box)
Export this element's value to the given target element.
|
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.lang.Object |
getBusinessObject()
Gets the business object.
|
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() |
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.
|
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.
|
java.awt.Color |
getMessageGradientColor() |
int |
getMessageGradientFactory() |
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 |
getTextureFactory()
Gets the texture factory of this element.
|
java.lang.String |
getToolTipText()
Gets the tool tip string.
|
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.
|
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 |
isMessageGradient() |
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 value)
Sets the maximal value for this element.
|
void |
putChartMin(double value)
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,
double value)
Adds an new double 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 |
putMessageGradient(boolean gradient) |
void |
putMessageGradientColor(java.awt.Color color) |
void |
putMessageGradientFactory(int factory) |
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 newAlarmState)
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 |
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 enableAlarmPropagationFromChildren)
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 |
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 userObject)
Sets new user object.
|
void |
setVisible(boolean visible)
Sets whether this element should be shown on view component.
|
java.lang.String |
toString()
Converts this
Element object to a String . |
void |
updateUI()
Informs all TWaver view components that this element need to
update or repaint immediately.
|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getBounds, getCenterLocation, getHeight, getLocation, getSVGUIClassID, getUIClassID, getWidth, getX, getY, setCenterLocation, setCenterLocation, setLocation, setLocation, setLocation
protected final java.lang.Object id
protected java.lang.String name
protected java.lang.String displayName
protected java.lang.String toolTipText
protected java.lang.Object userObject
protected java.lang.Object businessObject
protected boolean selected
protected AlarmState alarmState
protected boolean visible
protected Element parent
protected java.lang.String iconUrl
protected java.lang.String imageUrl
protected java.util.Map delegate
protected java.util.List elements
protected transient java.util.Map clientProperties
protected transient java.util.Map userProperties
protected java.beans.PropertyChangeSupport propertyChangeSupport
public AbstractElement()
public AbstractElement(java.lang.Object id)
id
- the identifier of this element.protected AlarmState createAlarmState()
protected java.util.List createChildrenList()
protected java.util.Map createChildrenMap()
public java.beans.PropertyChangeSupport getPropertyChangeSupport()
getPropertyChangeSupport
in interface Element
TDataBox.addElementPropertyChangeListener(PropertyChangeListener)
,
TDataBox.removeElementPropertyChangeListener(PropertyChangeListener)
,
addPropertyChangeListener(PropertyChangeListener)
,
addPropertyChangeListener(String, PropertyChangeListener)
,
removePropertyChangeListener(PropertyChangeListener)
,
removePropertyChangeListener(String, PropertyChangeListener)
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
addPropertyChangeListener
in interface Element
listener
- the PropertyChangeListener to be added.getPropertyChangeSupport()
public void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
addPropertyChangeListener
in interface Element
propertyName
- the name of the property to listen on.listener
- the PropertyChangeListener to be added.getPropertyChangeSupport()
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
removePropertyChangeListener
in interface Element
listener
- the PropertyChangeListener to be removed.getPropertyChangeSupport()
public void removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
removePropertyChangeListener
in interface Element
propertyName
- the name of the property to listen on.listener
- the PropertyChangeListener to be removed.getPropertyChangeSupport()
public void firePropertyChange(java.beans.PropertyChangeEvent evt)
firePropertyChange
in interface Element
evt
- the PropertyChangeEvent object.public void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
firePropertyChange
in interface Element
propertyName
- the property whose value has changedoldValue
- the property's previous valuenewValue
- the property's new valuepublic void firePropertyChange(java.lang.String propertyName, boolean oldValue, boolean newValue)
firePropertyChange
in interface Element
propertyName
- the property whose value has changedoldValue
- the property's previous valuenewValue
- the property's new valuepublic void firePropertyChange(java.lang.String propertyName, int oldValue, int newValue)
firePropertyChange
in interface Element
propertyName
- the property whose value has changedoldValue
- the property's previous valuenewValue
- the property's new valuepublic java.lang.Object getID()
public GeoCoordinate getGeoCoordinate()
getGeoCoordinate
in interface Element
public void setGeoCoordinate(GeoCoordinate geoCoordinate)
setGeoCoordinate
in interface Element
public 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.
isAdjustToBottom
in interface Element
public java.lang.String getName()
getName
in interface Element
Element.getDisplayName()
public void setName(java.lang.String name)
public java.lang.String getDisplayName()
getDisplayName
in interface Element
Element.getName()
public void setDisplayName(java.lang.String displayName)
setDisplayName
in interface Element
displayName
- the new display name for this element.getDisplayName()
,
TNetwork.setElementLabelGenerator(Generator)
public java.lang.Object getClientProperty(java.lang.Object key)
getClientProperty
in interface Element
key
- the being queriednull
putClientProperty(java.lang.Object, java.lang.Object)
public java.util.Map getClientProperties()
getClientProperties
in interface Element
public Element getParent()
public void putClientProperty(java.lang.Object key, java.lang.Object value)
putClientProperty
in interface Element
key
- the client property keyvalue
- the new client property value;getClientProperty(Object)
,
addPropertyChangeListener(PropertyChangeListener)
,
putUserProperty(Object, Object)
public void putClientProperty(java.lang.Object key, int value)
putClientProperty
in interface Element
key
- the client property keyvalue
- the new client property value;putClientProperty(Object, Object)
public void putClientProperty(java.lang.Object key, double value)
key
- the client property keyvalue
- the new client property value;putClientProperty(Object, Object)
public void putClientProperty(java.lang.Object key, boolean value)
putClientProperty
in interface Element
key
- the client property keyvalue
- the new client property value;putClientProperty(Object, Object)
public void setUserObject(java.lang.Object userObject)
setUserObject
in interface Element
object
- the new user oject.public java.lang.Object getUserObject()
getUserObject
in interface Element
public boolean isSelected()
isSelected
in interface Element
public boolean isVisible()
isVisible
in interface Element
VisibleFilter
,
TTree.isVisible(Element)
,
TNetwork.isVisible(Element)
,
TElementTable.isVisible(Element)
,
TList.isVisible(Element)
public boolean isDescendantOf(Element element)
isDescendantOf
in interface Element
the
- given element object.public void setSelected(boolean selected)
setSelected
in interface Element
selected
- new selection status.isSelected()
,
DataBoxSelectionModel
public 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.
setVisible
in interface Element
visible
- if true, shows this element, false otherwise.isVisible()
public void removeFromParent()
removeFromParent
in interface Element
setParent(Element)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object compared to.public java.lang.String getToolTipText()
getToolTipText
in interface Element
setToolTipText(String)
public void setToolTipText(java.lang.String tip)
setToolTipText
in interface Element
tip
- the new element tooltip text.TNetwork.setElementToolTipTextGenerator(Generator)
,
TTree.setElementToolTipTextGenerator(Generator)
public java.lang.String toString()
Element
object to a String
.toString
in class java.lang.Object
public AlarmState getAlarmState()
getAlarmState
in interface Element
twaver.AlarmSate
public void setAlarmState(AlarmState newAlarmState)
setAlarmState
in interface Element
alarmState
- new alarm state object.getAlarmState()
public java.util.Iterator children()
public java.util.List getChildren()
getChildren
in interface Element
addChild(Element)
,
addChild(int, Element)
,
removeChild(Element)
public 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).
public 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).
public void setParent(Element parent)
This element will removed from the old parent automatically, so user don't need to invoke oldParent.removeChild(element).
public 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).
removeChild
in interface Element
element
- the child element to be removed.public boolean isParentOf(Element element)
isParentOf
in interface Element
element
- the element needed to be checkedpublic Element getChildrenByID(java.lang.Object id)
getChildrenByID
in interface Element
public int childrenSize()
childrenSize
in interface Element
public void clearChildren()
clearChildren
in interface Element
public boolean isEmpty()
protected void exportValues(Element element, TDataBox box)
element
- the given target element.box
- the given data box object.public 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.
copy
in interface Element
TUIManager.registerPredefinedPropertyCopied(String, boolean)
,
TUIManager.isPredefinedPropertyCopied(String)
,
ExportValuesInterceptor
,
TWaverUtil.setExportValuesInterceptor(ExportValuesInterceptor)
public Element copy(java.lang.Object id)
public Element copy(TDataBox box)
public Element copy(java.lang.Object id, TDataBox box)
public java.lang.String getIconURL()
getIconURL
in interface Element
TUIManager.registerIcon(Class, String)
public javax.swing.ImageIcon getIcon()
public void setIcon(java.lang.String url)
setIcon
in interface Element
url
- icon url stringTUIManager.registerIcon(Class, String)
public java.lang.String getImageURL()
getImageURL
in interface Element
TUIManager.registerImage(Class, String)
public javax.swing.ImageIcon getImage()
public void setImage(java.lang.String url)
setImage
in interface Element
url
- the new image url stringTUIManager.registerImage(Class, String)
public void updateUI()
public boolean isEnableAlarmPropagationFromChildren()
isEnableAlarmPropagationFromChildren
in interface Element
public void setPropertyValue(TPropertyDescriptor property, java.lang.Object newValue)
setPropertyValue
in interface Element
property
- the given property of this element.newValue
- the new value of this propertygetPropertyValue(TPropertyDescriptor)
,
TPropertyDescriptor
,
ElementAttribute
public java.lang.Object getPropertyValue(TPropertyDescriptor property)
getPropertyValue
in interface Element
property
- the given property of this element.setPropertyValue(TPropertyDescriptor, Object)
,
TPropertyDescriptor
,
ElementAttribute
public java.lang.Object getBusinessObject()
getBusinessObject
in interface Element
setBusinessObject(Object)
public void setBusinessObject(java.lang.Object businessObject)
setBusinessObject
in interface Element
businessObject
- a new business object.getBusinessObject()
public java.lang.Object getUserProperty(java.lang.Object key)
getUserProperty
in interface Element
key
- the being queriednull
putUserProperty(Object, Object)
,
getUserProperties()
public java.util.Map getUserProperties()
getUserProperties
in interface Element
getUserProperty(Object)
public 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.
putUserProperty
in interface Element
key
- the new client property keyvalue
- the new client property value;public void putUserProperty(java.lang.Object key, int value)
putUserProperty
in interface Element
key
- the user property keyvalue
- the new user property value;putUserProperty(Object, Object)
public void putUserProperty(java.lang.Object key, boolean value)
putUserProperty
in interface Element
key
- the user property keyvalue
- the new user property value;putUserProperty(Object, Object)
public void setEnableAlarmPropagationFromChildren(boolean enableAlarmPropagationFromChildren)
setEnableAlarmPropagationFromChildren
in interface Element
enable
- If true enable the children's alarm state
to propagate to this element, false otherwise.AlarmState.getPropagateSeverity()
public void addAttachment(java.lang.String attachmentName)
addAttachment
in interface Element
attachmentName
- the name of the attachment to be added.TUIManager.registerAttachment(String, Class)
,
TUIManager.registerAttachment(String, String)
public void removeAttachment(java.lang.String attachmentName)
removeAttachment
in interface Element
attachmentName
- the name of the attachment to be added.TUIManager.registerAttachment(String, Class)
,
TUIManager.registerAttachment(String, String)
public boolean containsAttachment(java.lang.String attachmentName)
containsAttachment
in interface Element
attachmentName
- the querying attachment nameaddAttachment(String)
,
removeAttachment(String)
,
TUIManager.registerAttachment(String, Class)
,
TUIManager.registerAttachment(String, String)
public void putLabelIcon(java.lang.String labelIcon)
putLabelIcon
in interface Element
labelIcon
- the icon url for the label attachment of this element.getLabelIcon()
public void putLabelFont(java.awt.Font labelFont)
putLabelFont
in interface Element
labelFont
- the font for the label attachment of this element.getLabelFont()
public void putLabelColor(java.awt.Color labelColor)
putLabelColor
in interface Element
labelColor
- the color for the label attachment of this elementgetLabelColor()
public void putLabelBackground(java.awt.Color labelBackground)
putLabelBackground
in interface Element
labelBackground
- the background color for the label attachment of this element.getLabelBackground()
public void putLabelVisible(boolean labelVisible)
putLabelVisible
in interface Element
labelVisible
- if true the label attachment of this element should be visible,false otherwise.isLabelVisible()
public void putLabelBorder(boolean labelBorder)
putLabelBorder
in interface Element
labelBorder
- if true the border of the label attachment of this element should be visible,false otherwise.isLabelBorder()
public void putLabelUnderline(boolean labelUnderline)
putLabelUnderline
in interface Element
labelUnderline
- if true the underline of the label attachment of this element should be visible,false otherwise.isLabelUnderline()
public 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
putLabelPosition
in interface Element
labelPosition
- the position for the label attachment of this element.getLabelPosition()
public void putLabelOrientation(int labelOrientation)
TWaverConst.LABEL_ORIENTATION_HORIZONTAL
TWaverConst.LABEL_ORIENTATION_VERTICAL
TWaverConst.LABEL_ORIENTATION_LEFT
TWaverConst.LABEL_ORIENTATION_RIGHT
putLabelOrientation
in interface Element
labelOrientation
- the orientation for the label attachment of this elementgetLabelOrientation()
public void putLabelXOffset(int labelXOffset)
putLabelXOffset
in interface Element
labelXOffset
- the horizontal offset for the label attachment of this element.getLabelXOffset()
public void putLabelYOffset(int labelYOffset)
putLabelYOffset
in interface Element
labelYOffset
- the vertical offset for the label attachment of this element.getLabelYOffset()
public void putLabelXGap(int labelXGap)
putLabelXGap
in interface Element
labelXGap
- the horizontal gap for the label attachment of this element.getLabelXGap()
public void putLabelYGap(int labelYGap)
putLabelYGap
in interface Element
labelYGap
- the vertical gap for the label attachment of this element.getLabelYGap()
public void putLabelBorderStroke(java.lang.String labelBorderStroke)
putLabelBorderStroke
in interface Element
labelBorderStroke
- the stroke for the border of the label attachment of this element.getLabelBorderStroke()
public void putLabelBorderColor(java.awt.Color labelBorderColor)
putLabelBorderColor
in interface Element
labelBorderColor
- the border color for the label attachment of this element.getLabelBorderColor()
public void putLabelUnderlineStroke(java.lang.String labelUnderlineStroke)
putLabelUnderlineStroke
in interface Element
labelUnderlineStroke
- the stroke for the underline of the label attachment of this element.getLabelUnderlineStroke()
public void putLabelUnderlineColor(java.awt.Color labelUnderlineColor)
putLabelUnderlineColor
in interface Element
labelUnderlineColor
- the color for the underline of the label attachment of this element.getLabelUnderlineColor()
public void putLabelSelectable(boolean labelSelectable)
putLabelSelectable
in interface Element
labelSelectable
- if true the label attachment of this element is selectable,false otherwise.isLabelSelectable()
public void putLabelHighlightable(boolean labelHighlightable)
putLabelHighlightable
in interface Element
labelHighlightable
- if true the label attachment of this element should be highlight
when this element is selected,false otherwise.isLabelHighlightable()
public void putLabelHighlightBackground(java.awt.Color labelHighlightBackground)
putLabelHighlightBackground
in interface Element
labelHighlightBackground
- the highlight color for the background of the label attachment
of this element when this element is selected.getLabelHighlightBackground()
public void putLabelHighlightForeground(java.awt.Color labelHighlightForeground)
putLabelHighlightForeground
in interface Element
labelHighlightForeground
- the highlight color for the foreground of the label attachment
of this element when this element is selected.getLabelHighlightForeground()
public void putLabelMaxLength(int labelMaxLength)
putLabelMaxLength
in interface Element
labelMaxLength
- the maximal length for the label attachment of this element.getLabelMaxLength()
public void putDrawIconShape(boolean drawIconShape)
putDrawIconShape
in interface Element
drawIconShape
- if true the icon shape is drawn,false otherwise.isDrawIconShape()
public void putRenderAlpha(float renderAlpha)
renderAlpha
must be a floating point number in the inclusive range [0.0, 1.0].putRenderAlpha
in interface Element
renderAlpha
- the render alpha value for this element.getRenderAlpha()
public void putElementTreeIcon(javax.swing.Icon elementTreeIcon)
putElementTreeIcon
in interface Element
elementTreeIcon
- the icon for this element which is used to paint on the tree componentgetElementTreeIcon()
public void putRenderColor(java.awt.Color renderColor)
putRenderColor
in interface Element
renderColor
- the render color for this element.getRenderColor()
public void putStateOutlineColor(java.awt.Color stateOutlineColor)
putStateOutlineColor
in interface Element
stateOutlineColorthe
- color for the outline of the state of this element.getStateOutlineColor()
public void putStateOutlineWidth(int stateOutlineWidth)
putStateOutlineWidth
in interface Element
public 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
putAttachmentPosition
in interface Element
attachmentPosition
- the position for the attachment of this element.getAttachmentPosition()
public 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
putAttachmentOrientation
in interface Element
attachmentOrientation
- the orientation for the attachment of this element.getAttachmentOrientation()
public void putAttachmentXOffset(int attachmentXOffset)
putAttachmentXOffset
in interface Element
attachmentXOffset
- the horizontal offset for the attachment of this element.getAttachmentXOffset()
public void putAttachmentYOffset(int attachmentYOffset)
putAttachmentYOffset
in interface Element
attachmentYOffset
- the vertical offset for the attachment of this element.getAttachmentYOffset()
public void putAttachmentXGap(int attachmentXGap)
putAttachmentXGap
in interface Element
attachmentXGap
- the vertical gap for the attachment of this element.getAttachmentXGap()
public void putAttachmentYGap(int attachmentYGap)
putAttachmentYGap
in interface Element
attachmentYGap
- the vertical gap for the attachment of this element.getAttachmentYGap()
public 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
putAlarmBalloonPosition
in interface Element
alarmBalloonPosition
- the position for the alarm balloon of this element.getAlarmBalloonPosition()
public 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
putAlarmBalloonDirection
in interface Element
alarmBalloonDirection
- the direction for the alarm balloon of this elementgetAlarmBalloonDirection()
public void putAlarmBalloonXoffset(int alarmBalloonXoffset)
putAlarmBalloonXoffset
in interface Element
alarmBalloonXoffset
- the horizontal offset for the alarm balloon of this element.getAlarmBalloonXOffset()
public void putAlarmBalloonYoffset(int alarmBalloonYoffset)
putAlarmBalloonYoffset
in interface Element
alarmBalloonYoffset
- the vertical offset for the alarm balloon of this element.getAlarmBalloonYOffset()
public void putAlarmBalloonVisible(boolean alarmBalloonVisible)
putAlarmBalloonVisible
in interface Element
alarmBalloonVisible
- if true the alarm balloon of this element should be visible,false otherwise.isAlarmBalloonVisible()
public void putAlarmBalloonAlpha(float alarmBalloonAlpha)
alarmBalloonAlpha
must be a floating point number in the inclusive range [0.0, 1.0].putAlarmBalloonAlpha
in interface Element
alarmBalloonAlpha
- the alpha for the alarm balloon of this element.getAlarmBalloonAlpha()
public void putAlarmBalloonTextFont(java.awt.Font alarmBalloonTextFont)
putAlarmBalloonTextFont
in interface Element
alarmBalloonTextFont
- the text font for the alarm balloon of this element.getAlarmBalloonTextFont()
public void putAlarmBalloonTextColor(java.awt.Color alarmBalloonTextColor)
putAlarmBalloonTextColor
in interface Element
alarmBalloonTextColor
- the text color for the alarm balloon of this element.getAlarmBalloonTextColor()
public void putAlarmBalloonTextBlinkable(boolean alarmBalloonTextBlinkable)
putAlarmBalloonTextBlinkable
in interface Element
alarmBalloonTextBlinkable
- if true the text of the alarm balloon of this element is blinkable.isAlarmBalloonTextBlinkable()
public void putAlarmBalloonOutlineColor(java.awt.Color alarmBalloonOutlineColor)
putAlarmBalloonOutlineColor
in interface Element
alarmBalloonOutlineColor
- the color for the outline of the alarm balloon of this element.getAlarmBalloonOutlineColor()
public void putAlarmBalloonShadowColor(java.awt.Color alarmBalloonShadowColor)
putAlarmBalloonShadowColor
in interface Element
alarmBalloonShadowColor
- the color for the shadow of the alarm balloon of this element.getAlarmBalloonShadowColor()
public void putAlarmBalloonShadowOffset(int alarmBalloonShadowOffset)
putAlarmBalloonShadowOffset
in interface Element
alarmBalloonShadowOffset
- the offset for the shadow of the alarm balloon of this element.getAlarmBalloonShadowOffset()
public 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
putTextureFactory
in interface Element
textureFactory
- the texture factory for this element.getTextureFactory()
public void putBorderAntialias(boolean borderAntialias)
putBorderAntialias
in interface Element
borderAntialias
- if true the border should be drawn with antialias mode,false otherwise.getBorderAntialias()
public void putBorderVisible(boolean borderVisible)
putBorderVisible
in interface Element
borderVisible
- if true the border of this element should be visible,false otherwise.isBorderVisible()
public void putBorderFill(boolean borderFill)
putBorderFill
in interface Element
borderFill
- if true the border of this element should be filled with border color,false otherwise.isBorderFill()
public void putBorderUnderneath(boolean borderUnderneath)
putBorderUnderneath
in interface Element
borderUnderneath
- if true the border of this element should be underneath this element,false otherwise.isBorderUnderneath()
public void putBorderXormode(boolean borderXormode)
putBorderXormode
in interface Element
borderXormode
- if true the border of this element should be drawn with XOR mode,false otherwise.isBorderXormode()
public void putBorderStroke(java.lang.String borderStroke)
putBorderStroke
in interface Element
borderStroke
- the stroke for the border of this element.getBorderStroke()
public void putBorderColor(java.awt.Color borderColor)
putBorderColor
in interface Element
borderColor
- the color for the border of this element.getBorderColor()
public void putBorderFillColor(java.awt.Color borderFillColor)
putBorderFillColor
in interface Element
borderFillColor
- the fill color for the border of this element.getBorderFillColor()
public void putBorderInsets(int borderInsets)
putBorderInsets
in interface Element
borderInsets
- the insets for the border of this element.getBorderInsets()
public void putBorderType(int borderType)
TWaverConst.BORDER_TYPE_DEFAULT
TWaverConst.BORDER_TYPE_POINT
TWaverConst.BORDER_TYPE_SHAPE
putBorderType
in interface Element
borderType
- the type for the border of this element.getBorderType()
public 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
putBorderShapeFactory
in interface Element
borderShapeFactory
- the shape factory for the border of this element.getBorderShapeFactory()
public void putStateOutlineInsets(int stateOutlineInsets)
putStateOutlineInsets
in interface Element
stateOutlineInsets
- the insets for the state outline of this element.getStateOutlineInsets()
public void putMessageContent(java.lang.String messageContent)
putMessageContent
in interface Element
messageContent
- the content for the message attachment of this element.getMessageContent()
public void putMessageGradient(boolean gradient)
public void putMessageGradientColor(java.awt.Color color)
public void putMessageGradientFactory(int factory)
public boolean isMessageGradient()
public java.awt.Color getMessageGradientColor()
public int getMessageGradientFactory()
public void putMessageStyle(int messageStyle)
TWaverConst.ATTACHMENT_STYLE_DEFAULT
TWaverConst.ATTACHMENT_STYLE_BUBBLE
putMessageStyle
in interface Element
messageStyle
- the style for the message attachment of this element.getMessageStyle()
public void putMessageComponent(int messageComponent)
TWaverConst.MESSAGE_COMPONENT_LABEL
TWaverConst.MESSAGE_COMPONENT_TEXTPANE
putMessageComponent
in interface Element
messageComponent
- the component type for the message attachment of this element.getMessageComponent()
public void putMessageWidth(int messageWidth)
putMessageWidth
in interface Element
messageWidth
- the width for the message attachment of this element.getMessageWidth()
public void putMessageHeight(int messageHeight)
putMessageHeight
in interface Element
messageHeight
- the height for the message attachment of this element.getMessageHeight()
public void putMessageTail(int messageTail)
putMessageTail
in interface Element
messageTail
- the tail length for the message attachment of this element.getMessageTail()
public void putMessageArc(int messageArc)
putMessageArc
in interface Element
messageArc
- the arc for the message attachment of this element.getMessageArc()
public void putMessageShrinkable(boolean messageShrinkable)
putMessageShrinkable
in interface Element
messageShrinkable
- if true the message attachment of this element is shrinkable,false otherwise.isMessageShrinkable()
public void putMessageMinimized(boolean minimized)
putMessageMinimized
in interface Element
minimized
- if true the message attachment of this element should be minimized,false otherwise.isMessageMinimized()
public void putMessageShrinked(boolean shrinked)
putMessageShrinked
in interface Element
shrinked
- if true the message attachment of this element should be shrinked,false otherwise.isMessageShrinked()
public void putMessageClosable(boolean messageClosable)
putMessageClosable
in interface Element
messageClosable
- if true the message attachment of this element is closable,false otherwise.isMessageClosable()
public void putMessageMinimizable(boolean messageMinimizable)
putMessageMinimizable
in interface Element
messageMinimizable
- if true the message attachment of this element is minimizable,false otherwise.isMessageMinimizable()
public void putMessageAutoAdjustDirection(boolean messageAutoAdjustDirection)
putMessageAutoAdjustDirection
in interface Element
messageAutoAdjustDirection
- if true the the direction of the message attachment should be adjusted automatic,
false otherwise.isMessageAutoAdjustDirection()
public 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
putMessagePosition
in interface Element
messagePosition
- the position for the message attachment of this element.getMessagePosition()
public 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
putMessageDirection
in interface Element
messageDirection
- the direction for the message attachment of this element.getMessageDirection()
public void putMessageFont(java.awt.Font messageFont)
putMessageFont
in interface Element
messageFont
- the font for the message attachment of this element.getMessageFont()
public void putMessageForeground(java.awt.Color messageForeground)
putMessageForeground
in interface Element
messageForeground
- the foreground color for the message attachment of the element.getMessageForeground()
public void putMessageBackground(java.awt.Color messageBackground)
putMessageBackground
in interface Element
messageBackground
- the background color for the message attachment of this element.getMessageBackground()
public void putMessageOpaque(boolean messageOpaque)
putMessageOpaque
in interface Element
messageOpaque
- if true the message attachment of this element should be opaque,false otherwise.isMessageOpaque()
public void putMessageXOffset(int messageXOffset)
putMessageXOffset
in interface Element
messageXOffset
- the horizontal offset for the message attachment of this element.getMessageXOffset()
public void putMessageYOffset(int messageYOffset)
putMessageYOffset
in interface Element
messageYOffset
- the vertical offset for the message attachment of this element.getMessageYOffset()
public void putMessageXGap(int messageXGap)
putMessageXGap
in interface Element
messageXGap
- the horizontal gap for the message attachment of this element.getMessageXGap()
public void putMessageYGap(int messageYGap)
putMessageYGap
in interface Element
messageYGap
- the vertical gap for the message attachment of this element.getMessageYGap()
public void putMessageMinimizedIcon(java.lang.String messageMinimizedIcon)
putMessageMinimizedIcon
in interface Element
messageMinimizedIcon
- the icon for the message attachment of this element when the message attachment is minimized.getMessageMinimizedIcon()
public void putMessageShadowVisible(boolean messageShadowVisible)
putMessageShadowVisible
in interface Element
messageShadowVisible
- if true the shadow of the message attachment of this element should be visible,false otherwise.isMessageShadowVisible()
public void putMessageShadowColor(java.awt.Color messageShadowColor)
putMessageShadowColor
in interface Element
messageShadowColor
- the shadow color for the message attachment of this element.getMessageShadowColor()
public void putMessageBorderColor(java.awt.Color messageBorderColor)
putMessageBorderColor
in interface Element
messageBorderColor
- the border color for the message attachment of this element.getMessageBorderColor()
public void putMessageBorderVisible(boolean messageBorderVisible)
putMessageBorderVisible
in interface Element
messageBorderVisible
- if true the border of the message attachment of this element should be visible,false otherwise.isMessageBorderVisible()
public void putMessageBorderStroke(java.lang.String messageBorderStroke)
putMessageBorderStroke
in interface Element
messageBorderStroke
- the stroke for the border of the message attachment of this element.getMessageBorderStroke()
public void putChartColor(java.awt.Color color)
putChartColor
in interface Element
color
- the color for this element.getChartColor()
public void putChartValue(double value)
putChartValue
in interface Element
value
- the value for this element.getChartValue()
public void putChartMin(double value)
putChartMin
in interface Element
min
- the minimal value for this element.getChartMin()
public void putChartMax(double value)
putChartMax
in interface Element
max
- the maximal value for this element.getChartMax()
public void putChartFormat(java.text.NumberFormat format)
putChartFormat
in interface Element
format
- the number format for this element.getChartFormat()
public void putChartValues(java.util.List values)
putChartValues
in interface Element
values
- the values list for this element.getChartValues()
public void putChartStroke(java.lang.String stroke)
putChartStroke
in interface Element
stroke
- the stroke for this element.getChartStroke()
public void putChartPercentStyle(int percentStyle)
TWaverConst.PERCENT_STYLE_PLANE
TWaverConst.PERCENT_STYLE_SOLID
TWaverConst.PERCENT_STYLE_SEGMENT
putChartPercentStyle
in interface Element
percentStyle
- the style for the percent type chart.getChartPercentStyle()
public void putChartMarkers(java.util.List markers)
putChartMarkers
in interface Element
markers
- the mark list for this element.getChartMarkers()
public javax.swing.Icon getElementTreeIcon()
TUIManger
getElementTreeIcon
in interface Element
putElementTreeIcon(Icon)
public boolean isDrawIconShape()
isDrawIconShape
in interface Element
putDrawIconShape(boolean)
public float getRenderAlpha()
getRenderAlpha
in interface Element
putRenderAlpha(float)
public java.awt.Color getRenderColor()
getRenderColor
in interface Element
putRenderColor(Color)
public java.awt.Color getStateOutlineColor()
getStateOutlineColor
in interface Element
putStateOutlineColor(Color)
public int getStateOutlineWidth()
getStateOutlineWidth
in interface Element
putStateOutlineWidth(int)
public java.lang.String getTextureFactory()
getTextureFactory
in interface Element
putTextureFactory(String)
public boolean getBorderAntialias()
getBorderAntialias
in interface Element
putBorderAntialias(boolean)
public boolean isBorderVisible()
isBorderVisible
in interface Element
putBorderVisible(boolean)
public boolean isBorderFill()
isBorderFill
in interface Element
putBorderFill(boolean)
public boolean isBorderUnderneath()
isBorderUnderneath
in interface Element
putBorderUnderneath(boolean)
public boolean isBorderXormode()
isBorderXormode
in interface Element
putBorderXormode(boolean)
public java.lang.String getBorderStroke()
getBorderStroke
in interface Element
putBorderStroke(String)
public java.awt.Color getBorderColor()
getBorderColor
in interface Element
putBorderColor(Color)
public java.awt.Color getBorderFillColor()
getBorderFillColor
in interface Element
putBorderFillColor(Color)
public int getBorderInsets()
getBorderInsets
in interface Element
putBorderInsets(int)
public int getBorderType()
getBorderType
in interface Element
putBorderType(int)
public int getBorderShapeFactory()
getBorderShapeFactory
in interface Element
putBorderShapeFactory(int)
public int getStateOutlineInsets()
getStateOutlineInsets
in interface Element
putStateOutlineInsets(int)
public java.lang.String getLabelIcon()
TUIManger
getLabelIcon
in interface Element
putLabelIcon(String)
public java.awt.Font getLabelFont()
getLabelFont
in interface Element
putLabelFont(Font)
public java.awt.Color getLabelColor()
getLabelColor
in interface Element
putLabelColor(Color)
public java.awt.Color getLabelBackground()
getLabelBackground
in interface Element
putLabelBackground(Color)
public boolean isLabelVisible()
isLabelVisible
in interface Element
putLabelVisible(boolean)
public boolean isLabelBorder()
isLabelBorder
in interface Element
putLabelBorder(boolean)
public boolean isLabelUnderline()
isLabelUnderline
in interface Element
putLabelUnderline(boolean)
public int getLabelPosition()
getLabelPosition
in interface Element
putLabelPosition(int)
public int getLabelXOffset()
getLabelXOffset
in interface Element
putLabelXOffset(int)
public int getLabelYOffset()
getLabelYOffset
in interface Element
putLabelYOffset(int)
public int getLabelXGap()
getLabelXGap
in interface Element
putLabelXGap(int)
public int getLabelYGap()
getLabelYGap
in interface Element
putLabelYGap(int)
public int getLabelOrientation()
getLabelOrientation
in interface Element
putLabelOrientation(int)
public java.lang.String getLabelBorderStroke()
getLabelBorderStroke
in interface Element
putLabelBorderStroke(String)
public java.lang.String getLabelUnderlineStroke()
getLabelUnderlineStroke
in interface Element
putLabelUnderlineStroke(String)
public boolean isLabelSelectable()
isLabelSelectable
in interface Element
putLabelSelectable(boolean)
public java.awt.Color getLabelBorderColor()
getLabelBorderColor
in interface Element
putLabelBorderColor(Color)
public java.awt.Color getLabelUnderlineColor()
getLabelUnderlineColor
in interface Element
putLabelUnderlineColor(Color)
public boolean isLabelHighlightable()
isLabelHighlightable
in interface Element
putLabelHighlightable(boolean)
public java.awt.Color getLabelHighlightBackground()
getLabelHighlightBackground
in interface Element
putLabelHighlightBackground(Color)
public java.awt.Color getLabelHighlightForeground()
getLabelHighlightForeground
in interface Element
putLabelHighlightForeground(Color)
public int getLabelMaxLength()
getLabelMaxLength
in interface Element
putLabelMaxLength(int)
public int getAttachmentPosition()
getAttachmentPosition
in interface Element
putAttachmentPosition(int)
public int getAttachmentOrientation()
getAttachmentOrientation
in interface Element
putAttachmentOrientation(int)
public int getAttachmentXOffset()
getAttachmentXOffset
in interface Element
putAttachmentXOffset(int)
public int getAttachmentYOffset()
getAttachmentYOffset
in interface Element
putAttachmentYOffset(int)
public int getAttachmentXGap()
getAttachmentXGap
in interface Element
putAttachmentXGap(int)
public int getAttachmentYGap()
getAttachmentYGap
in interface Element
putAttachmentYGap(int)
public int getAlarmBalloonPosition()
getAlarmBalloonPosition
in interface Element
putAlarmBalloonPosition(int)
public int getAlarmBalloonDirection()
getAlarmBalloonDirection
in interface Element
putAlarmBalloonDirection(int)
public int getAlarmBalloonXOffset()
getAlarmBalloonXOffset
in interface Element
putAlarmBalloonXoffset(int)
public int getAlarmBalloonYOffset()
getAlarmBalloonYOffset
in interface Element
putAlarmBalloonYoffset(int)
public boolean isAlarmBalloonVisible()
isAlarmBalloonVisible
in interface Element
putAlarmBalloonVisible(boolean)
public float getAlarmBalloonAlpha()
getAlarmBalloonAlpha
in interface Element
putAlarmBalloonAlpha(float)
public java.awt.Font getAlarmBalloonTextFont()
getAlarmBalloonTextFont
in interface Element
putAlarmBalloonTextFont(Font)
public java.awt.Color getAlarmBalloonTextColor()
getAlarmBalloonTextColor
in interface Element
putAlarmBalloonTextColor(Color)
public boolean isAlarmBalloonTextBlinkable()
isAlarmBalloonTextBlinkable
in interface Element
putAlarmBalloonTextBlinkable(boolean)
public java.awt.Color getAlarmBalloonOutlineColor()
getAlarmBalloonOutlineColor
in interface Element
putAlarmBalloonOutlineColor(Color)
public java.awt.Color getAlarmBalloonShadowColor()
getAlarmBalloonShadowColor
in interface Element
putAlarmBalloonShadowColor(Color)
public int getAlarmBalloonShadowOffset()
getAlarmBalloonShadowOffset
in interface Element
putAlarmBalloonShadowOffset(int)
public java.lang.String getMessageContent()
getMessageContent
in interface Element
putMessageContent(String)
public int getMessageWidth()
getMessageWidth
in interface Element
putMessageWidth(int)
public int getMessageHeight()
getMessageHeight
in interface Element
putMessageHeight(int)
public int getMessageComponent()
getMessageComponent
in interface Element
putMessageComponent(int)
public int getMessageStyle()
getMessageStyle
in interface Element
putMessageStyle(int)
public int getMessageTail()
getMessageTail
in interface Element
putMessageTail(int)
public int getMessageArc()
getMessageArc
in interface Element
putMessageArc(int)
public boolean isMessageShrinkable()
isMessageShrinkable
in interface Element
putMessageShrinkable(boolean)
public boolean isMessageShrinked()
isMessageShrinked
in interface Element
putMessageShrinked(boolean)
public boolean isMessageClosable()
isMessageClosable
in interface Element
putMessageClosable(boolean)
public boolean isMessageAutoAdjustDirection()
isMessageAutoAdjustDirection
in interface Element
putMessageAutoAdjustDirection(boolean)
public boolean isMessageMinimized()
isMessageMinimized
in interface Element
putMessageMinimized(boolean)
public boolean isMessageMinimizable()
isMessageMinimizable
in interface Element
putMessageMinimizable(boolean)
public int getMessagePosition()
getMessagePosition
in interface Element
putMessagePosition(int)
public int getMessageDirection()
getMessageDirection
in interface Element
putMessageDirection(int)
public java.awt.Font getMessageFont()
getMessageFont
in interface Element
putMessageFont(Font)
public java.awt.Color getMessageForeground()
getMessageForeground
in interface Element
putMessageForeground(Color)
public java.awt.Color getMessageBackground()
getMessageBackground
in interface Element
putMessageBackground(Color)
public boolean isMessageOpaque()
isMessageOpaque
in interface Element
putMessageOpaque(boolean)
public int getMessageXOffset()
getMessageXOffset
in interface Element
putMessageXOffset(int)
public int getMessageYOffset()
getMessageYOffset
in interface Element
putMessageYOffset(int)
public int getMessageXGap()
getMessageXGap
in interface Element
putMessageXGap(int)
public int getMessageYGap()
getMessageYGap
in interface Element
putMessageYGap(int)
public java.lang.String getMessageMinimizedIcon()
getMessageMinimizedIcon
in interface Element
putMessageMinimizedIcon(String)
public boolean isMessageShadowVisible()
isMessageShadowVisible
in interface Element
putMessageShadowVisible(boolean)
public java.awt.Color getMessageShadowColor()
getMessageShadowColor
in interface Element
putMessageShadowColor(Color)
public boolean isMessageBorderVisible()
isMessageBorderVisible
in interface Element
putMessageBorderVisible(boolean)
public java.awt.Color getMessageBorderColor()
getMessageBorderColor
in interface Element
putMessageBorderColor(Color)
public java.lang.String getMessageBorderStroke()
getMessageBorderStroke
in interface Element
putMessageBorderStroke(String)
public java.awt.Color getChartColor()
getChartColor
in interface Element
putChartColor(Color)
public double getChartValue()
getChartValue
in interface Element
putChartValue(double)
public double getChartMin()
getChartMin
in interface Element
putChartMin(double)
public double getChartMax()
getChartMax
in interface Element
putChartMax(double)
public java.text.NumberFormat getChartFormat()
getChartFormat
in interface Element
putChartFormat(NumberFormat)
public void setChartValues(java.util.List values)
setChartValues
in interface Element
values
- the values for this element.getChartValues()
public java.util.List getChartValues()
getChartValues
in interface Element
putChartValues(List)
public java.lang.String getChartStroke()
getChartStroke
in interface Element
putChartStroke(String)
public int getChartPercentStyle()
getChartPercentStyle
in interface Element
putChartPercentStyle(int)
public java.util.List getChartMarkers()
getChartMarkers
in interface Element
putChartMarkers(List)
public void putChartInflexionStyle(int inflexionStyle)
TWaverConst.INFLEXION_STYLE_CIRCLE
TWaverConst.INFLEXION_STYLE_DIAMOND
TWaverConst.INFLEXION_STYLE_RECTANGLE
TWaverConst.INFLEXION_STYLE_TRIANGLE
putChartInflexionStyle
in interface Element
inflexionStyle
- the style for the inflexion of the chart.getChartInflexionStyle()
public int getChartInflexionStyle()
getChartInflexionStyle
in interface Element
putChartInflexionStyle(int)
public java.lang.Object getLayerID()
getLayerID
in interface Element
Layer
,
LayerModel
,
TDataBox.getLayerModel()
public void setLayerID(java.lang.Object layerID)
setLayerID
in interface Element
layerID
- int the layer id of the element belongs to.Layer
,
LayerModel
,
TDataBox.getLayerModel()
public void addChartValue(double value)
addChartValue
in interface Element
value
- a Double
object.setChartValues(List)
public void clearChartValues()
clearChartValues
in interface Element
addChartValue(double)
public void addChartValue(java.lang.Double value)
addChartValue
in interface Element
value
- a Double
value.setChartValues(List)
public void putAlarmBalloonShownOnTop(boolean alarmBalloonShownOnTop)
putAlarmBalloonShownOnTop
in interface Element
alarmBalloonShownOnTop
- if true the alarm balloon of this element should be shown on the top,false otherwise.isAlarmBalloonShownOnTop()
public void putMessageShownOnTop(boolean messageShownOnTop)
putMessageShownOnTop
in interface Element
messageShownOnTop
- if true the message attachment of this element should show on top,false otherwise.isMessageShownOnTop()
public boolean isAlarmBalloonShownOnTop()
isAlarmBalloonShownOnTop
in interface Element
putAlarmBalloonShownOnTop(boolean)
public boolean isMessageShownOnTop()
isMessageShownOnTop
in interface Element
putMessageShownOnTop(boolean)
public void putChartDialHandLength(double chartDialHandLength)
putChartDialHandLength
in interface Element
chartDialHandLength
- the dial hand length for the element.getChartDialHandLength()
public double getChartDialHandLength()
getChartDialHandLength
in interface Element
putChartDialHandLength(double)
public void putChartDialHandStyle(int chartDialHandStyle)
TWaverConst.DIAL_HAND_STYLE_LINE
TWaverConst.DIAL_HAND_STYLE_TRIANGLE
TWaverConst.DIAL_HAND_STYLE_ARROW
putChartDialHandStyle
in interface Element
chartDialHandStyle
- the dial hand style for the element.getChartDialHandStyle()
public int getChartDialHandStyle()
getChartDialHandStyle
in interface Element
putChartDialHandStyle(int)
public void putChartPercentSpareFill(boolean spareFill)
putChartPercentSpareFill
in interface Element
spareFill
- if true the spare of the percent chart should be filled,false otherwise.getChartPercentSpareFill()
public boolean getChartPercentSpareFill()
getChartPercentSpareFill
in interface Element
putChartPercentSpareFill(boolean)
public void putChartPercentSpareColor(java.awt.Color spareColor)
putChartPercentSpareColor
in interface Element
spareColor
- the spare color for the percent chart.getChartPercentSpareColor()
public java.awt.Color getChartPercentSpareColor()
getChartPercentSpareColor
in interface Element
putChartPercentSpareColor(Color)
public void putChartPercentSpareCoverColor(java.awt.Color spareCoverColor)
putChartPercentSpareCoverColor
in interface Element
spareCoverColor
- the spare cover color for the percent chart.getChartPercentSpareCoverColor()
public java.awt.Color getChartPercentSpareCoverColor()
getChartPercentSpareCoverColor
in interface Element
putChartPercentSpareCoverColor(Color)
public 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
putChartPercentMarkerPostion
in interface Element
position
- the position of the marker in percent chart.getChartPercentMarkerPostion()
public int getChartPercentMarkerPostion()
getChartPercentMarkerPostion
in interface Element
public void addChartBubble(Bubble bubble)
addChartBubble
in interface Element
bubble
- a Bubble
>public void putChartBubbleStyle(int style)
BubbleChart
.
Legal values are:
TWaverConst.INFLEXION_STYLE_CIRCLE
TWaverConst.INFLEXION_STYLE_DIAMOND
TWaverConst.INFLEXION_STYLE_RECTANGLE
TWaverConst.INFLEXION_STYLE_TRIANGLE
putChartBubbleStyle
in interface Element
style
- the style for the bubble in the BubbleChart
.getChartBubbleStyle()
public int getChartBubbleStyle()
BubbleChart
.getChartBubbleStyle
in interface Element
BubbleChart
.putChartBubbleStyle(int)
public void putChartBubbleShapeLineVisible(boolean visible)
putChartBubbleShapeLineVisible
in interface Element
visible
- if true the line in bubble chart will be visible, false otherwise.#getChartBubbleLineVisible()
public boolean getChartBubbleShapeLineVisible()
getChartBubbleShapeLineVisible
in interface Element
putChartBubbleShapeLineVisible(boolean)
public void putChartBubbleShapeBubbleVisible(boolean visible)
putChartBubbleShapeBubbleVisible
in interface Element
visible
- if true the bubble shape in bubble chart will be visible, false otherwise.getChartBubbleShapeBubbleVisible()
public boolean getChartBubbleShapeBubbleVisible()
getChartBubbleShapeBubbleVisible
in interface Element
putChartBubbleShapeBubbleVisible(boolean)
public 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
putChartValueTextPosition
in interface Element
position
- the position for the label of the chart.getChartValueTextPosition()
public int getChartValueTextPosition()
getChartValueTextPosition
in interface Element
putChartValueTextPosition(int)
public void putChartSectorDivisionPosition(java.util.List list)
putChartSectorDivisionPosition
in interface Element
public java.util.List getChartSectorDivisionPosition()
getChartSectorDivisionPosition
in interface Element
public void putChartSectorStroke(java.util.List list)
putChartSectorStroke
in interface Element
public java.util.List getChartSectorStroke()
getChartSectorStroke
in interface Element
Copyright © 2002 - 2010 Serva Software. All Rights Reserved.