public class NetworkMapDecoration extends NetworkMapElement
Modifier and Type | Field and Description |
---|---|
static int |
GROUP_BOX |
static int |
IMAGE |
id, MAP_ELEMENT_DCI_CONTAINER, MAP_ELEMENT_DCI_IMAGE, MAP_ELEMENT_DECORATION, MAP_ELEMENT_GENERIC, MAP_ELEMENT_OBJECT, type, x, y
Modifier | Constructor and Description |
---|---|
|
NetworkMapDecoration(long id,
int decorationType)
Create new decoration object
|
protected |
NetworkMapDecoration(org.netxms.base.NXCPMessage msg,
long baseId) |
Modifier and Type | Method and Description |
---|---|
void |
fillMessage(org.netxms.base.NXCPMessage msg,
long baseId)
Fill NXCP message with element data
|
int |
getColor() |
int |
getDecorationType() |
int |
getHeight() |
String |
getTitle() |
int |
getWidth() |
void |
setColor(int color) |
void |
setSize(int w,
int h)
Set decoration size
|
void |
setTitle(String title) |
addFlag, createMapElement, equals, getFlags, getId, getType, getX, getY, hashCode, removeFlag, setFlags, setLocation
public static final int GROUP_BOX
public static final int IMAGE
protected NetworkMapDecoration(org.netxms.base.NXCPMessage msg, long baseId)
msg
- baseId
- public NetworkMapDecoration(long id, int decorationType)
id
- decorationType
- public int getDecorationType()
public int getColor()
public String getTitle()
public void setColor(int color)
color
- the color to setpublic void setTitle(String title)
title
- the title to setpublic void fillMessage(org.netxms.base.NXCPMessage msg, long baseId)
NetworkMapElement
fillMessage
in class NetworkMapElement
msg
- NXCP messagebaseId
- base variable IDpublic int getWidth()
public int getHeight()
public void setSize(int w, int h)
w
- widthh
- heightCopyright © 2015. All rights reserved.