public class NetworkMapTextBox extends 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| Modifier | Constructor and Description |
|---|---|
|
NetworkMapTextBox(long id)
Create new text box element
|
protected |
NetworkMapTextBox(org.netxms.base.NXCPMessage msg,
long baseId)
Create new text box from NXCPMessgae
|
| Modifier and Type | Method and Description |
|---|---|
void |
fillMessage(org.netxms.base.NXCPMessage msg,
long baseId)
Fill NXCP message with element data
|
int |
getBackgroundColor() |
int |
getBorderColor() |
long |
getDrillDownObjectId() |
int |
getFontSize() |
String |
getText() |
int |
getTextColor() |
boolean |
isBorderRequired() |
void |
setBackgroundColor(int backgroundColor) |
void |
setBorderColor(int borderColor) |
void |
setBorderRequired(boolean borderRequired) |
void |
setDrillDownObjectId(long drillDownObjectId) |
void |
setFontSize(int fontSize) |
void |
setText(String text)
Set text
|
void |
setTextColor(int textColor) |
addFlag, createMapElement, equals, getFlags, getId, getType, getX, getY, hashCode, removeFlag, setFlags, setLocationprotected NetworkMapTextBox(org.netxms.base.NXCPMessage msg,
long baseId)
msg - baseId - public NetworkMapTextBox(long id)
id - element IDpublic void fillMessage(org.netxms.base.NXCPMessage msg,
long baseId)
NetworkMapElementfillMessage in class NetworkMapElementmsg - NXCP messagebaseId - base variable IDpublic String getText()
public void setText(String text)
text - to setpublic int getBackgroundColor()
public void setBackgroundColor(int backgroundColor)
backgroundColor - the backgroundColor to setpublic int getTextColor()
public void setTextColor(int textColor)
textColor - the textColor to setpublic int getBorderColor()
public void setBorderColor(int borderColor)
borderColor - the borderColor to setpublic boolean isBorderRequired()
public void setBorderRequired(boolean borderRequired)
borderRequired - the borderRequired to setpublic int getFontSize()
public void setFontSize(int fontSize)
fontSize - to setpublic long getDrillDownObjectId()
public void setDrillDownObjectId(long drillDownObjectId)
drillDownObjectId - to setCopyright © 2018. All rights reserved.