org.opennms.web.map.db
Class Element

java.lang.Object
  extended by org.opennms.web.map.db.Element
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
VElement

public class Element
extends Object
implements Cloneable

Author:
Antonio Russo, DJ Gregor TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates

Field Summary
static String defaultMapIcon
           
static String defaultNodeIcon
           
static String MAP_TYPE
           
static String NODE_TYPE
           
protected  String type
           
 
Constructor Summary
protected Element()
           
  Element(Element e)
           
  Element(int mapId, int id, String type, String label, String iconName, int x, int y)
           
 
Method Summary
 Element clone()
           
 String getIcon()
           
 int getId()
           
 String getLabel()
           
 int getMapId()
           
 String getType()
           
 int getX()
           
 int getY()
           
 boolean isMap()
           
 boolean isNode()
           
 void setIcon(String iconName)
           
 void setId(int id)
           
 void setLabel(String label)
           
 void setMapId(int mapId)
           
 void setType(String type)
           
 void setX(int x)
           
 void setY(int y)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

protected String type

MAP_TYPE

public static final String MAP_TYPE
See Also:
Constant Field Values

NODE_TYPE

public static final String NODE_TYPE
See Also:
Constant Field Values

defaultNodeIcon

public static final String defaultNodeIcon
See Also:
Constant Field Values

defaultMapIcon

public static final String defaultMapIcon
See Also:
Constant Field Values
Constructor Detail

Element

protected Element()

Element

public Element(Element e)
        throws MapsException
Throws:
MapsException

Element

public Element(int mapId,
               int id,
               String type,
               String label,
               String iconName,
               int x,
               int y)
        throws MapsException
Throws:
MapsException
Method Detail

getIcon

public String getIcon()
Returns:
Returns the iconName.

setIcon

public void setIcon(String iconName)
Parameters:
iconName - The iconName to set.

getLabel

public String getLabel()
Returns:
Returns the label.

setLabel

public void setLabel(String label)
Parameters:
label - The label to set.

getX

public int getX()
Returns:
Returns the x.

setX

public void setX(int x)
Parameters:
x - The x to set.

getY

public int getY()
Returns:
Returns the y.

setY

public void setY(int y)
Parameters:
y - The y to set.

getType

public String getType()
Returns:
Returns the type.

setType

public void setType(String type)
             throws MapsException
Parameters:
type - The type to set.
Throws:
MapsException

getMapId

public int getMapId()

setMapId

public void setMapId(int mapId)

getId

public int getId()
Returns:
Returns the id.

setId

public void setId(int id)
Parameters:
id - The id to set.

clone

public Element clone()
Overrides:
clone in class Object

isMap

public boolean isMap()

isNode

public boolean isNode()


Copyright © 2009. All Rights Reserved.