public class NetworkMapDecoration extends NetworkMapElement
| Modifier and Type | Field and Description |
|---|---|
static int |
GROUP_BOX |
static int |
IMAGE |
id, 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(NXCPMessage msg,
long baseId) |
| Modifier and Type | Method and Description |
|---|---|
void |
fillMessage(NXCPMessage msg,
long baseId)
Fill NXCP message with element data
|
int |
getColor() |
int |
getDecorationType() |
int |
getHeight() |
java.lang.String |
getTitle() |
int |
getWidth() |
void |
setColor(int color) |
void |
setSize(int w,
int h)
Set decoration size
|
void |
setTitle(java.lang.String title) |
createMapElement, equals, getId, getType, getX, getY, hashCode, setLocationpublic static final int GROUP_BOX
public static final int IMAGE
protected NetworkMapDecoration(NXCPMessage msg, long baseId)
msg - baseId - public NetworkMapDecoration(long id,
int decorationType)
id - decorationType - public int getDecorationType()
public int getColor()
public java.lang.String getTitle()
public void setColor(int color)
color - the color to setpublic void setTitle(java.lang.String title)
title - the title to setpublic void fillMessage(NXCPMessage msg, long baseId)
NetworkMapElementfillMessage in class NetworkMapElementmsg - NXCP messagebaseId - base variable IDpublic int getWidth()
public int getHeight()
public void setSize(int w,
int h)
w - widthh - heightCopyright © 2014. All Rights Reserved.