Package org.netxms.client.maps.elements
Class NetworkMapTextBox
java.lang.Object
org.netxms.client.maps.elements.NetworkMapElement
org.netxms.client.maps.elements.NetworkMapTextBox
Network map element representing a text box
- 
Field SummaryFields inherited from class org.netxms.client.maps.elements.NetworkMapElementAUTO_GENERATED, id, MAP_ELEMENT_DCI_CONTAINER, MAP_ELEMENT_DCI_IMAGE, MAP_ELEMENT_DECORATION, MAP_ELEMENT_GENERIC, MAP_ELEMENT_OBJECT, MAP_ELEMENT_TEXT_BOX, type, x, y
- 
Constructor SummaryConstructorsModifierConstructorDescriptionNetworkMapTextBox(long id) Create new text box elementprotectedNetworkMapTextBox(NXCPMessage msg, long baseId) Create new text box from NXCP messgae
- 
Method SummaryModifier and TypeMethodDescriptionvoidfillMessage(NXCPMessage msg, long baseId) Fill NXCP message with element dataintGet background color.intGet border color.longintgetText()Get text.intGet text color.booleanvoidsetBackgroundColor(int backgroundColor) Set background color.voidsetBorderColor(int borderColor) Set border color.voidsetBorderRequired(boolean borderRequired) voidsetDrillDownObjectId(long drillDownObjectId) voidsetFontSize(int fontSize) voidSet text.voidsetTextColor(int textColor) Set text color.Methods inherited from class org.netxms.client.maps.elements.NetworkMapElementaddFlag, createMapElement, equals, getFlags, getId, getType, getX, getY, hashCode, removeFlag, setFlags, setLocation
- 
Constructor Details- 
NetworkMapTextBoxCreate new text box from NXCP messgae- Parameters:
- msg- NXCP message
- baseId- base field ID
 
- 
NetworkMapTextBoxpublic NetworkMapTextBox(long id) Create new text box element- Parameters:
- id- element ID
 
 
- 
- 
Method Details- 
fillMessageDescription copied from class:NetworkMapElementFill NXCP message with element data- Overrides:
- fillMessagein class- NetworkMapElement
- Parameters:
- msg- NXCP message
- baseId- base variable ID
- See Also:
 
- 
getTextGet text.- Returns:
- text
 
- 
setTextSet text.- Parameters:
- text- new text
 
- 
getBackgroundColorpublic int getBackgroundColor()Get background color.- Returns:
- background color in BGR format
 
- 
setBackgroundColorpublic void setBackgroundColor(int backgroundColor) Set background color.- Parameters:
- backgroundColor- new background color in BGR format
 
- 
getTextColorpublic int getTextColor()Get text color.- Returns:
- text color in BGR format
 
- 
setTextColorpublic void setTextColor(int textColor) Set text color.- Parameters:
- textColor- new text color in BGR format
 
- 
getBorderColorpublic int getBorderColor()Get border color.- Returns:
- border color in BGR format
 
- 
setBorderColorpublic void setBorderColor(int borderColor) Set border color.- Parameters:
- borderColor- new border color in BGR format
 
- 
isBorderRequiredpublic boolean isBorderRequired()- Returns:
- the borderRequired
 
- 
setBorderRequiredpublic void setBorderRequired(boolean borderRequired) - Parameters:
- borderRequired- the borderRequired to set
 
- 
getFontSizepublic int getFontSize()- Returns:
- font size
 
- 
setFontSizepublic void setFontSize(int fontSize) - Parameters:
- fontSize- to set
 
- 
getDrillDownObjectIdpublic long getDrillDownObjectId()- Returns:
- drill down object id
 
- 
setDrillDownObjectIdpublic void setDrillDownObjectId(long drillDownObjectId) - Parameters:
- drillDownObjectId- to set
 
 
-