public class Item extends BaseElement
Modifier and Type | Field and Description |
---|---|
static java.text.NumberFormat |
DEFAULT_DOUBLE_FORMATER |
static java.text.NumberFormat |
DEFAULT_INT_FORMATER |
xLocation, yLocation
alarmState, businessObject, clientProperties, delegate, displayName, elements, iconUrl, id, imageUrl, name, parent, propertyChangeSupport, selected, toolTipText, userObject, userProperties, visible
Constructor and Description |
---|
Item()
Creates a new
Item |
Item(java.lang.String name)
Creates a new
Item object initialized with a name text. |
Item(java.lang.String name,
java.awt.Color color)
Creates a new
Item object initialized with a name text and a color. |
Item(java.lang.String name,
double value,
java.awt.Color color)
Creates a new
Item object initialized with a name text,a value and a color. |
Item(java.lang.String name,
double value,
java.awt.Color color,
java.lang.String toolTipText)
Creates a new
Item object initialized with a name text,a value a color and a tooltip text. |
Item(java.lang.String name,
double value,
java.awt.Color color,
java.lang.String toolTipText,
java.text.NumberFormat format)
Creates a new
Item object initialized with a name text,a value a color a tooltip text and a number format. |
Modifier and Type | Method and Description |
---|---|
void |
addValue(double value)
Adds a value to the item list.
|
java.awt.Color |
getColor()
Gets the color of the item.
|
java.text.NumberFormat |
getFormat()
Gets the number format of the item.
|
double |
getValue()
Gets the value of the item.
|
java.util.List |
getValueList()
Gets the value list of the item.
|
void |
setColor(java.awt.Color color)
Sets a new color for the item.
|
void |
setFormat(java.text.NumberFormat format)
Sets a new number format for the item.
|
void |
setValue(double value)
Sets a new value for the item.
|
void |
setValueList(java.util.List valueList)
Sets a new value list for the item.
|
getBodyColor, getBounds, getCenterLocation, getCustomDrawFillColor, getCustomDrawGradientColor, getCustomDrawGradientFactory, getCustomDrawOutlineColor, getCustomDrawOutlineStroke, getCustomDrawShapeFactory, getHeight, getLocation, getSVGUIClassID, getUIClassID, getWidth, getX, getY, isBodyFill, isBodyRaised, isCustomDraw, isCustomDrawAntialias, isCustomDrawDefaultBorder, isCustomDrawFill, isCustomDrawFill3D, isCustomDrawGradient, isCustomDrawOutline, isCustomDrawOutline3D, putBodyColor, putBodyFill, putBodyRaised, putCustomDraw, putCustomDrawAntialias, putCustomDrawDefaultBorder, putCustomDrawFill, putCustomDrawFill3D, putCustomDrawFillColor, putCustomDrawGradient, putCustomDrawGradientColor, putCustomDrawGradientFactory, putCustomDrawOutline, putCustomDrawOutline3D, putCustomDrawOutlineColor, putCustomDrawOutlineStroke, putCustomDrawShapeFactory, setCenterLocation, setCenterLocation, setLocation, setLocation, setLocation, setLocation
addAttachment, addChartBubble, addChartValue, addChartValue, addChild, addChild, addPropertyChangeListener, addPropertyChangeListener, children, childrenSize, clearChartValues, clearChildren, containsAttachment, copy, copy, copy, copy, createAlarmState, createChildrenList, createChildrenMap, equals, exportValues, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAlarmBalloonAlpha, getAlarmBalloonDirection, getAlarmBalloonOutlineColor, getAlarmBalloonPosition, getAlarmBalloonShadowColor, getAlarmBalloonShadowOffset, getAlarmBalloonTextColor, getAlarmBalloonTextFont, getAlarmBalloonXOffset, getAlarmBalloonYOffset, getAlarmState, getAttachmentOrientation, getAttachmentPosition, getAttachmentXGap, getAttachmentXOffset, getAttachmentYGap, getAttachmentYOffset, getBorderAntialias, getBorderColor, getBorderFillColor, getBorderInsets, getBorderShapeFactory, getBorderStroke, getBorderType, getBusinessObject, getChartBubbleShapeBubbleVisible, getChartBubbleShapeLineVisible, getChartBubbleStyle, getChartColor, getChartDialHandLength, getChartDialHandStyle, getChartFormat, getChartInflexionStyle, getChartMarkers, getChartMax, getChartMin, getChartPercentMarkerPostion, getChartPercentSpareColor, getChartPercentSpareCoverColor, getChartPercentSpareFill, getChartPercentStyle, getChartSectorDivisionPosition, getChartSectorStroke, getChartStroke, getChartValue, getChartValues, getChartValueTextPosition, getChildren, getChildrenByID, getClientProperties, getClientProperty, getDisplayName, getElementTreeIcon, getGeoCoordinate, getIcon, getIconURL, getID, getImage, getImageURL, getLabelBackground, getLabelBorderColor, getLabelBorderStroke, getLabelColor, getLabelFont, getLabelHighlightBackground, getLabelHighlightForeground, getLabelIcon, getLabelMaxLength, getLabelOrientation, getLabelPosition, getLabelUnderlineColor, getLabelUnderlineStroke, getLabelXGap, getLabelXOffset, getLabelYGap, getLabelYOffset, getLayerID, getMessageArc, getMessageBackground, getMessageBorderColor, getMessageBorderStroke, getMessageComponent, getMessageContent, getMessageDirection, getMessageFont, getMessageForeground, getMessageGradientColor, getMessageGradientFactory, getMessageHeight, getMessageMinimizedIcon, getMessagePosition, getMessageShadowColor, getMessageStyle, getMessageTail, getMessageWidth, getMessageXGap, getMessageXOffset, getMessageYGap, getMessageYOffset, getName, getParent, getPropertyChangeSupport, getPropertyValue, getRenderAlpha, getRenderColor, getStateOutlineColor, getStateOutlineInsets, getStateOutlineWidth, getTextureFactory, getToolTipText, getUserObject, getUserProperties, getUserProperty, isAdjustToBottom, isAlarmBalloonShownOnTop, isAlarmBalloonTextBlinkable, isAlarmBalloonVisible, isBorderFill, isBorderUnderneath, isBorderVisible, isBorderXormode, isDescendantOf, isDrawIconShape, isEmpty, isEnableAlarmPropagationFromChildren, isLabelBorder, isLabelHighlightable, isLabelSelectable, isLabelUnderline, isLabelVisible, isMessageAutoAdjustDirection, isMessageBorderVisible, isMessageClosable, isMessageGradient, isMessageMinimizable, isMessageMinimized, isMessageOpaque, isMessageShadowVisible, isMessageShownOnTop, isMessageShrinkable, isMessageShrinked, isParentOf, isSelected, isVisible, putAlarmBalloonAlpha, putAlarmBalloonDirection, putAlarmBalloonOutlineColor, putAlarmBalloonPosition, putAlarmBalloonShadowColor, putAlarmBalloonShadowOffset, putAlarmBalloonShownOnTop, putAlarmBalloonTextBlinkable, putAlarmBalloonTextColor, putAlarmBalloonTextFont, putAlarmBalloonVisible, putAlarmBalloonXoffset, putAlarmBalloonYoffset, putAttachmentOrientation, putAttachmentPosition, putAttachmentXGap, putAttachmentXOffset, putAttachmentYGap, putAttachmentYOffset, putBorderAntialias, putBorderColor, putBorderFill, putBorderFillColor, putBorderInsets, putBorderShapeFactory, putBorderStroke, putBorderType, putBorderUnderneath, putBorderVisible, putBorderXormode, putChartBubbleShapeBubbleVisible, putChartBubbleShapeLineVisible, putChartBubbleStyle, putChartColor, putChartDialHandLength, putChartDialHandStyle, putChartFormat, putChartInflexionStyle, putChartMarkers, putChartMax, putChartMin, putChartPercentMarkerPostion, putChartPercentSpareColor, putChartPercentSpareCoverColor, putChartPercentSpareFill, putChartPercentStyle, putChartSectorDivisionPosition, putChartSectorStroke, putChartStroke, putChartValue, putChartValues, putChartValueTextPosition, putClientProperty, putClientProperty, putClientProperty, putClientProperty, putDrawIconShape, putElementTreeIcon, putLabelBackground, putLabelBorder, putLabelBorderColor, putLabelBorderStroke, putLabelColor, putLabelFont, putLabelHighlightable, putLabelHighlightBackground, putLabelHighlightForeground, putLabelIcon, putLabelMaxLength, putLabelOrientation, putLabelPosition, putLabelSelectable, putLabelUnderline, putLabelUnderlineColor, putLabelUnderlineStroke, putLabelVisible, putLabelXGap, putLabelXOffset, putLabelYGap, putLabelYOffset, putMessageArc, putMessageAutoAdjustDirection, putMessageBackground, putMessageBorderColor, putMessageBorderStroke, putMessageBorderVisible, putMessageClosable, putMessageComponent, putMessageContent, putMessageDirection, putMessageFont, putMessageForeground, putMessageGradient, putMessageGradientColor, putMessageGradientFactory, putMessageHeight, putMessageMinimizable, putMessageMinimized, putMessageMinimizedIcon, putMessageOpaque, putMessagePosition, putMessageShadowColor, putMessageShadowVisible, putMessageShownOnTop, putMessageShrinkable, putMessageShrinked, putMessageStyle, putMessageTail, putMessageWidth, putMessageXGap, putMessageXOffset, putMessageYGap, putMessageYOffset, putRenderAlpha, putRenderColor, putStateOutlineColor, putStateOutlineInsets, putStateOutlineWidth, putTextureFactory, putUserProperty, putUserProperty, putUserProperty, removeAttachment, removeChild, removeFromParent, removePropertyChangeListener, removePropertyChangeListener, setAlarmState, setBusinessObject, setChartValues, setDisplayName, setEnableAlarmPropagationFromChildren, setGeoCoordinate, setIcon, setImage, setLayerID, setName, setParent, setPropertyValue, setSelected, setToolTipText, setUserObject, setVisible, toString, updateUI
public static final java.text.NumberFormat DEFAULT_INT_FORMATER
public static final java.text.NumberFormat DEFAULT_DOUBLE_FORMATER
public Item()
Item
public Item(java.lang.String name)
Item
object initialized with a name text.name
- a String
textpublic Item(java.lang.String name, java.awt.Color color)
Item
object initialized with a name text and a color.name
- a String
textcolor
- a Color
instancepublic Item(java.lang.String name, double value, java.awt.Color color)
Item
object initialized with a name text,a value and a color.name
- a String
textvalue
- a double
valuecolor
- a Color
instancepublic Item(java.lang.String name, double value, java.awt.Color color, java.lang.String toolTipText)
Item
object initialized with a name text,a value a color and a tooltip text.name
- a String
textvalue
- a double
valuecolor
- a Color
instancetoolTipText
- a tooltip String
textpublic Item(java.lang.String name, double value, java.awt.Color color, java.lang.String toolTipText, java.text.NumberFormat format)
Item
object initialized with a name text,a value a color a tooltip text and a number format.name
- a String
textvalue
- a double
valuecolor
- a Color
instancetoolTipText
- a tooltip String
textNumberFormat
- a NumberFormat
instancepublic java.awt.Color getColor()
public void setColor(java.awt.Color color)
color
- a new color for the itempublic java.text.NumberFormat getFormat()
public void setFormat(java.text.NumberFormat format)
format
- a new NumberFormat
instance for the itempublic double getValue()
public void setValue(double value)
value
- a new double
value for the itempublic void addValue(double value)
value
- a new double
valuepublic java.util.List getValueList()
List
of the item valuepublic void setValueList(java.util.List valueList)
valueList
- a new List
instance for the item.Copyright © 2002 - 2010 Serva Software. All Rights Reserved.