Package org.netxms.client.maps.elements
Class NetworkMapDecoration
- java.lang.Object
-
- org.netxms.client.maps.elements.NetworkMapElement
-
- org.netxms.client.maps.elements.NetworkMapDecoration
-
public class NetworkMapDecoration extends NetworkMapElement
Decoration element of network map
-
-
Field Summary
Fields Modifier and Type Field Description static intGROUP_BOXstatic intIMAGE-
Fields inherited from class org.netxms.client.maps.elements.NetworkMapElement
id, MAP_ELEMENT_DCI_CONTAINER, MAP_ELEMENT_DCI_IMAGE, MAP_ELEMENT_DECORATION, MAP_ELEMENT_GENERIC, MAP_ELEMENT_OBJECT, MAP_ELEMENT_TEXT_BOX, type, x, y
-
-
Constructor Summary
Constructors Modifier Constructor Description NetworkMapDecoration(long id, int decorationType)Create new decoration objectprotectedNetworkMapDecoration(org.netxms.base.NXCPMessage msg, long baseId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfillMessage(org.netxms.base.NXCPMessage msg, long baseId)Fill NXCP message with element dataintgetColor()intgetDecorationType()intgetHeight()StringgetTitle()intgetWidth()voidsetColor(int color)voidsetSize(int w, int h)Set decoration sizevoidsetTitle(String title)-
Methods inherited from class org.netxms.client.maps.elements.NetworkMapElement
addFlag, createMapElement, equals, getFlags, getId, getType, getX, getY, hashCode, removeFlag, setFlags, setLocation
-
-
-
-
Field Detail
-
GROUP_BOX
public static final int GROUP_BOX
- See Also:
- Constant Field Values
-
IMAGE
public static final int IMAGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDecorationType
public int getDecorationType()
- Returns:
- the decorationType
-
getColor
public int getColor()
- Returns:
- the color
-
getTitle
public String getTitle()
- Returns:
- the title
-
setColor
public void setColor(int color)
- Parameters:
color- the color to set
-
setTitle
public void setTitle(String title)
- Parameters:
title- the title to set
-
fillMessage
public void fillMessage(org.netxms.base.NXCPMessage msg, long baseId)Description copied from class:NetworkMapElementFill NXCP message with element data- Overrides:
fillMessagein classNetworkMapElement- Parameters:
msg- NXCP messagebaseId- base variable ID
-
getWidth
public int getWidth()
- Returns:
- the width
-
getHeight
public int getHeight()
- Returns:
- the height
-
setSize
public void setSize(int w, int h)Set decoration size- Parameters:
w- widthh- height
-
-