public class NetworkMapElement extends Object
Modifier and Type | Field and Description |
---|---|
protected long |
id |
static int |
MAP_ELEMENT_DCI_CONTAINER |
static int |
MAP_ELEMENT_DCI_IMAGE |
static int |
MAP_ELEMENT_DECORATION |
static int |
MAP_ELEMENT_GENERIC |
static int |
MAP_ELEMENT_OBJECT |
protected int |
type |
protected int |
x |
protected int |
y |
Modifier | Constructor and Description |
---|---|
|
NetworkMapElement(long id)
Create new generic element
|
protected |
NetworkMapElement(org.netxms.base.NXCPMessage msg,
long baseId)
Create element from NXCP message.
|
Modifier and Type | Method and Description |
---|---|
void |
addFlag(int flags) |
static NetworkMapElement |
createMapElement(org.netxms.base.NXCPMessage msg,
long baseId)
Factory method for creating map element from NXCP message.
|
boolean |
equals(Object obj) |
void |
fillMessage(org.netxms.base.NXCPMessage msg,
long baseId)
Fill NXCP message with element data
|
int |
getFlags() |
long |
getId() |
int |
getType() |
int |
getX() |
int |
getY() |
int |
hashCode() |
void |
removeFlag(int flags) |
void |
setFlags(int flags) |
void |
setLocation(int x,
int y)
Set elements's location
|
public static final int MAP_ELEMENT_GENERIC
public static final int MAP_ELEMENT_OBJECT
public static final int MAP_ELEMENT_DECORATION
public static final int MAP_ELEMENT_DCI_CONTAINER
public static final int MAP_ELEMENT_DCI_IMAGE
protected long id
protected int type
protected int x
protected int y
protected NetworkMapElement(org.netxms.base.NXCPMessage msg, long baseId)
msg
- NXCP messagebaseId
- base variable IDpublic NetworkMapElement(long id)
public static NetworkMapElement createMapElement(org.netxms.base.NXCPMessage msg, long baseId)
msg
- NXCP messagebaseId
- base variable IDpublic void fillMessage(org.netxms.base.NXCPMessage msg, long baseId)
msg
- NXCP messagebaseId
- base variable IDpublic int getType()
public int getX()
public int getY()
public long getId()
public void setLocation(int x, int y)
x
- y
- public int getFlags()
public void setFlags(int flags)
flags
- the flags to setpublic void addFlag(int flags)
flag
- the flag to be added to current flagspublic void removeFlag(int flags)
flag
- the flagCopyright © 2015. All rights reserved.