org.opennms.netmgt.model
Class OnmsMapElement

java.lang.Object
  extended by org.opennms.netmgt.model.OnmsMapElement
All Implemented Interfaces:
Serializable

public class OnmsMapElement
extends Object
implements Serializable

OnmsMapElement class.

Version:
$Id: $
Author:
ranger
See Also:
Serialized Form

Field Summary
static String defaultMapIcon
          Constant defaultMapIcon="map"
static String defaultNodeIcon
          Constant defaultNodeIcon="unspecified"
static String MAP_HIDE_TYPE
          Constant MAP_HIDE_TYPE="W"
static String MAP_TYPE
          Constant MAP_TYPE="M"
static String NODE_HIDE_TYPE
          Constant NODE_HIDE_TYPE="H"
static String NODE_TYPE
          Constant NODE_TYPE="N"
protected  String type
           
 
Constructor Summary
protected OnmsMapElement()
          Constructor for OnmsMapElement.
  OnmsMapElement(OnmsMapElement e)
          Constructor for OnmsMapElement.
  OnmsMapElement(OnmsMap map, int elementId, String type, String label, String iconName, int x, int y)
          Constructor for OnmsMapElement.
  OnmsMapElement(OnmsMap map, int elementId, String type, String label, String iconName, int x, int y, int id)
          Constructor for OnmsMapElement.
 
Method Summary
 int getElementId()
          Getter for the field elementId.
 String getIconName()
          Getter for the field iconName.
 int getId()
          Getter for the field id.
 String getLabel()
          Getter for the field label.
 OnmsMap getMap()
          Getter for the field map.
 String getMapElementId()
          getMapElementId
 String getType()
          Getter for the field type.
 int getX()
          Getter for the field x.
 int getY()
          Getter for the field y.
 void setElementId(int elementId)
          Setter for the field elementId.
 void setIconName(String iconName)
          Setter for the field iconName.
 void setId(int id)
          Setter for the field id.
 void setLabel(String label)
          Setter for the field label.
 void setMap(OnmsMap map)
          Setter for the field map.
 void setType(String type)
          Setter for the field type.
 void setX(int x)
          Setter for the field x.
 void setY(int y)
          Setter for the field y.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAP_TYPE

public static final String MAP_TYPE
Constant MAP_TYPE="M"

See Also:
Constant Field Values

MAP_HIDE_TYPE

public static final String MAP_HIDE_TYPE
Constant MAP_HIDE_TYPE="W"

See Also:
Constant Field Values

NODE_TYPE

public static final String NODE_TYPE
Constant NODE_TYPE="N"

See Also:
Constant Field Values

NODE_HIDE_TYPE

public static final String NODE_HIDE_TYPE
Constant NODE_HIDE_TYPE="H"

See Also:
Constant Field Values

defaultNodeIcon

public static final String defaultNodeIcon
Constant defaultNodeIcon="unspecified"

See Also:
Constant Field Values

defaultMapIcon

public static final String defaultMapIcon
Constant defaultMapIcon="map"

See Also:
Constant Field Values

type

protected String type
Constructor Detail

OnmsMapElement

protected OnmsMapElement()

Constructor for OnmsMapElement.


OnmsMapElement

public OnmsMapElement(OnmsMapElement e)

Constructor for OnmsMapElement.

Parameters:
e - a OnmsMapElement object.

OnmsMapElement

public OnmsMapElement(OnmsMap map,
                      int elementId,
                      String type,
                      String label,
                      String iconName,
                      int x,
                      int y,
                      int id)

Constructor for OnmsMapElement.

Parameters:
map - a OnmsMap object.
elementId - a int.
type - a String object.
label - a String object.
iconName - a String object.
x - a int.
y - a int.
id - a int.

OnmsMapElement

public OnmsMapElement(OnmsMap map,
                      int elementId,
                      String type,
                      String label,
                      String iconName,
                      int x,
                      int y)

Constructor for OnmsMapElement.

Parameters:
map - a OnmsMap object.
elementId - a int.
type - a String object.
label - a String object.
iconName - a String object.
x - a int.
y - a int.
Method Detail

getId

public int getId()

Getter for the field id.

Returns:
a int.

setId

public void setId(int id)

Setter for the field id.

Parameters:
id - a int.

getMapElementId

public String getMapElementId()

getMapElementId

Returns:
a String object.

getElementId

public int getElementId()

Getter for the field elementId.

Returns:
a int.

setElementId

public void setElementId(int elementId)

Setter for the field elementId.

Parameters:
elementId - a int.

getType

public String getType()

Getter for the field type.

Returns:
a String object.

setType

public void setType(String type)

Setter for the field type.

Parameters:
type - a String object.

getLabel

public String getLabel()

Getter for the field label.

Returns:
a String object.

setLabel

public void setLabel(String label)

Setter for the field label.

Parameters:
label - a String object.

getIconName

public String getIconName()

Getter for the field iconName.

Returns:
a String object.

setIconName

public void setIconName(String iconName)

Setter for the field iconName.

Parameters:
iconName - a String object.

getX

public int getX()

Getter for the field x.

Returns:
a int.

setX

public void setX(int x)

Setter for the field x.

Parameters:
x - a int.

getY

public int getY()

Getter for the field y.

Returns:
a int.

setY

public void setY(int y)

Setter for the field y.

Parameters:
y - a int.

getMap

public OnmsMap getMap()

Getter for the field map.

Returns:
a OnmsMap object.

setMap

public void setMap(OnmsMap map)

Setter for the field map.

Parameters:
map - a OnmsMap object.


Copyright © 2011. All Rights Reserved.