|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netxms.client.maps.elements.NetworkMapElement
public class NetworkMapElement
Network map element.
| Field Summary | |
|---|---|
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
|
| Constructor Summary | |
|---|---|
|
NetworkMapElement(long id)
Create new generic element |
protected |
NetworkMapElement(NXCPMessage msg,
long baseId)
Create element from NXCP message. |
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
protected NetworkMapElement(NXCPMessage msg,
long baseId)
msg - NXCP messagebaseId - base variable IDpublic NetworkMapElement(long id)
| Method Detail |
|---|
public static NetworkMapElement createMapElement(NXCPMessage msg,
long baseId)
msg - NXCP messagebaseId - base variable ID
public 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.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||