Package org.netxms.client.maps.elements
Class NetworkMapTextBox
- java.lang.Object
-
- org.netxms.client.maps.elements.NetworkMapElement
-
- org.netxms.client.maps.elements.NetworkMapTextBox
-
public class NetworkMapTextBox extends NetworkMapElement
Network map element representing a text box
-
-
Field Summary
-
Fields inherited from class org.netxms.client.maps.elements.NetworkMapElement
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
Constructors Modifier Constructor Description NetworkMapTextBox(long id)Create new text box elementprotectedNetworkMapTextBox(org.netxms.base.NXCPMessage msg, long baseId)Create new text box from NXCPMessgae
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfillMessage(org.netxms.base.NXCPMessage msg, long baseId)Fill NXCP message with element dataintgetBackgroundColor()intgetBorderColor()longgetDrillDownObjectId()intgetFontSize()StringgetText()intgetTextColor()booleanisBorderRequired()voidsetBackgroundColor(int backgroundColor)voidsetBorderColor(int borderColor)voidsetBorderRequired(boolean borderRequired)voidsetDrillDownObjectId(long drillDownObjectId)voidsetFontSize(int fontSize)voidsetText(String text)Set textvoidsetTextColor(int textColor)-
Methods inherited from class org.netxms.client.maps.elements.NetworkMapElement
addFlag, createMapElement, equals, getFlags, getId, getType, getX, getY, hashCode, removeFlag, setFlags, setLocation
-
-
-
-
Method Detail
-
fillMessage
public void fillMessage(org.netxms.base.NXCPMessage msg, long baseId)Description copied from class:NetworkMapElementFill NXCP message with element data- Overrides:
fillMessagein classNetworkMapElement- Parameters:
msg- NXCP messagebaseId- base variable ID
-
getText
public String getText()
- Returns:
- text
-
setText
public void setText(String text)
Set text- Parameters:
text- to set
-
getBackgroundColor
public int getBackgroundColor()
- Returns:
- the backgroundColor
-
setBackgroundColor
public void setBackgroundColor(int backgroundColor)
- Parameters:
backgroundColor- the backgroundColor to set
-
getTextColor
public int getTextColor()
- Returns:
- the textColor
-
setTextColor
public void setTextColor(int textColor)
- Parameters:
textColor- the textColor to set
-
getBorderColor
public int getBorderColor()
- Returns:
- the borderColor
-
setBorderColor
public void setBorderColor(int borderColor)
- Parameters:
borderColor- the borderColor to set
-
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
-
-