org.opennms.web.map.db
Class Element
java.lang.Object
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
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
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
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.