Package org.netxms.client.maps.elements
Class NetworkMapDecoration
java.lang.Object
org.netxms.client.maps.elements.NetworkMapElement
org.netxms.client.maps.elements.NetworkMapDecoration
Decoration element of network map
-
Field Summary
FieldsFields inherited from class org.netxms.client.maps.elements.NetworkMapElement
AUTO_GENERATED, 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
ConstructorsModifierConstructorDescriptionNetworkMapDecoration(long id, int decorationType) Create new decoration object.protectedNetworkMapDecoration(NXCPMessage msg, long baseId) Create from NXCP message. -
Method Summary
Modifier and TypeMethodDescriptionvoidfillMessage(NXCPMessage msg, long baseId) Fill NXCP message with element dataintgetColor()intGet decoration type.intgetTitle()intgetWidth()voidsetColor(int color) voidsetSize(int w, int h) Set decoration sizevoidMethods inherited from class org.netxms.client.maps.elements.NetworkMapElement
addFlag, createMapElement, equals, getFlags, getId, getType, getX, getY, hashCode, removeFlag, setFlags, setLocation
-
Field Details
-
GROUP_BOX
public static final int GROUP_BOX- See Also:
-
IMAGE
public static final int IMAGE- See Also:
-
-
Constructor Details
-
NetworkMapDecoration
Create from NXCP message.- Parameters:
msg- NXCP messagebaseId- base field ID
-
NetworkMapDecoration
public NetworkMapDecoration(long id, int decorationType) Create new decoration object.- Parameters:
id- map element IDdecorationType- decoration type - one of
GROUP_BOX(show box with title that can be used for grouping map elements)IMAGE(arbitrary image)
-
-
Method Details
-
getDecorationType
public int getDecorationType()Get decoration type.- Returns:
- decoration type
-
getColor
public int getColor()- Returns:
- the color
-
getTitle
- Returns:
- the title
-
setColor
public void setColor(int color) - Parameters:
color- the color to set
-
setTitle
- Parameters:
title- the title to set
-
fillMessage
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
-