public class NetworkMapElement
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected long |
id |
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(NXCPMessage msg,
long baseId)
Create element from NXCP message.
|
| Modifier and Type | Method and Description |
|---|---|
static NetworkMapElement |
createMapElement(NXCPMessage msg,
long baseId)
Factory method for creating map element from NXCP message.
|
boolean |
equals(java.lang.Object obj) |
void |
fillMessage(NXCPMessage msg,
long baseId)
Fill NXCP message with element data
|
long |
getId() |
int |
getType() |
int |
getX() |
int |
getY() |
int |
hashCode() |
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
protected long id
protected int type
protected int x
protected int y
protected NetworkMapElement(NXCPMessage msg, long baseId)
msg - NXCP messagebaseId - base variable IDpublic NetworkMapElement(long id)
public static NetworkMapElement createMapElement(NXCPMessage msg, long baseId)
msg - NXCP messagebaseId - base variable IDpublic void fillMessage(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 boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2013. All Rights Reserved.