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
ModifierConstructorDescriptionNetworkMapTextBox
(long id) Create new text box elementprotected
NetworkMapTextBox
(NXCPMessage msg, long baseId) Create new text box from NXCP messgae -
Method Summary
Modifier and TypeMethodDescriptionvoid
fillMessage
(NXCPMessage msg, long baseId) Fill NXCP message with element dataint
Get background color.int
Get border color.long
int
getText()
Get text.int
Get text color.boolean
void
setBackgroundColor
(int backgroundColor) Set background color.void
setBorderColor
(int borderColor) Set border color.void
setBorderRequired
(boolean borderRequired) void
setDrillDownObjectId
(long drillDownObjectId) void
setFontSize
(int fontSize) void
Set text.void
setTextColor
(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:NetworkMapElement
Fill NXCP message with element data- Overrides:
fillMessage
in 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
-