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 Summary
Fields inherited from class org.netxms.client.maps.elements.NetworkMapElement
AUTO_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 Summary
ConstructorsModifierConstructorDescriptionNetworkMapTextBox(long id) Create new text box elementprotectedNetworkMapTextBox(NXCPMessage msg, long baseId) Create new text box from NXCP messgae -
Method Summary
Modifier 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.NetworkMapElement
addFlag, createMapElement, equals, getFlags, getId, getType, getX, getY, hashCode, removeFlag, setFlags, setLocation
-
Constructor Details
-
NetworkMapTextBox
Create new text box from NXCP messgae- Parameters:
msg- NXCP messagebaseId- base field ID
-
NetworkMapTextBox
public NetworkMapTextBox(long id) Create new text box element- Parameters:
id- element ID
-
-
Method Details
-
fillMessage
Description copied from class:NetworkMapElementFill NXCP message with element data- Overrides:
fillMessagein classNetworkMapElement- Parameters:
msg- NXCP messagebaseId- base variable ID- See Also:
-
getText
Get text.- Returns:
- text
-
setText
Set text.- Parameters:
text- new text
-
getBackgroundColor
public int getBackgroundColor()Get background color.- Returns:
- background color in BGR format
-
setBackgroundColor
public void setBackgroundColor(int backgroundColor) Set background color.- Parameters:
backgroundColor- new background color in BGR format
-
getTextColor
public int getTextColor()Get text color.- Returns:
- text color in BGR format
-
setTextColor
public void setTextColor(int textColor) Set text color.- Parameters:
textColor- new text color in BGR format
-
getBorderColor
public int getBorderColor()Get border color.- Returns:
- border color in BGR format
-
setBorderColor
public void setBorderColor(int borderColor) Set border color.- Parameters:
borderColor- new border color in BGR format
-
isBorderRequired
public boolean isBorderRequired()- Returns:
- the borderRequired
-
setBorderRequired
public void setBorderRequired(boolean borderRequired) - Parameters:
borderRequired- the borderRequired to set
-
getFontSize
public int getFontSize()- Returns:
- font size
-
setFontSize
public void setFontSize(int fontSize) - Parameters:
fontSize- to set
-
getDrillDownObjectId
public long getDrillDownObjectId()- Returns:
- drill down object id
-
setDrillDownObjectId
public void setDrillDownObjectId(long drillDownObjectId) - Parameters:
drillDownObjectId- to set
-