org.netxms.client.maps.elements
Class NetworkMapDecoration

java.lang.Object
  extended by org.netxms.client.maps.elements.NetworkMapElement
      extended by org.netxms.client.maps.elements.NetworkMapDecoration

public class NetworkMapDecoration
extends NetworkMapElement

Decoration element of network map


Field Summary
static int GROUP_BOX
           
static int IMAGE
           
 
Fields inherited from class org.netxms.client.maps.elements.NetworkMapElement
id, MAP_ELEMENT_DECORATION, MAP_ELEMENT_GENERIC, MAP_ELEMENT_OBJECT, type, x, y
 
Constructor Summary
  NetworkMapDecoration(long id, int decorationType)
          Create new decoration object
protected NetworkMapDecoration(NXCPMessage msg, long baseId)
           
 
Method Summary
 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)
           
 
Methods inherited from class org.netxms.client.maps.elements.NetworkMapElement
createMapElement, equals, getId, getType, getX, getY, hashCode, setLocation
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

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
Constructor Detail

NetworkMapDecoration

protected NetworkMapDecoration(NXCPMessage msg,
                               long baseId)
Parameters:
msg -
baseId -

NetworkMapDecoration

public NetworkMapDecoration(long id,
                            int decorationType)
Create new decoration object

Parameters:
id -
decorationType -
Method Detail

getDecorationType

public int getDecorationType()
Returns:
the decorationType

getColor

public int getColor()
Returns:
the color

getTitle

public java.lang.String getTitle()
Returns:
the title

setColor

public void setColor(int color)
Parameters:
color - the color to set

setTitle

public void setTitle(java.lang.String title)
Parameters:
title - the title to set

fillMessage

public void fillMessage(NXCPMessage msg,
                        long baseId)
Description copied from class: NetworkMapElement
Fill NXCP message with element data

Overrides:
fillMessage in class NetworkMapElement
Parameters:
msg - NXCP message
baseId - 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 - width
h - height


Copyright © 2012. All Rights Reserved.