public class Level
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
Level.Property
The properties of a level that may change.
|
Constructor and Description |
---|
Level(java.lang.String name,
float elevation,
float floorThickness,
float height)
Creates a home level from an existing level.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds the property change
listener in parameter to this level. |
Level |
clone()
Returns a clone of this level.
|
BackgroundImage |
getBackgroundImage()
Returns the plan background image of this level.
|
float |
getElevation()
Returns the elevation of the bottom of this level.
|
float |
getFloorThickness()
Returns the floor thickness of this level.
|
float |
getHeight()
Returns the height of this level.
|
java.lang.String |
getName()
Returns the name of this level.
|
boolean |
isVisible()
Returns
true if this level is visible. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes the property change
listener in parameter from this level. |
void |
setBackgroundImage(BackgroundImage backgroundImage)
Sets the plan background image of this level and fires a
PropertyChangeEvent . |
void |
setElevation(float elevation)
Sets the elevation of this level.
|
void |
setFloorThickness(float floorThickness)
Sets the floor thickness of this level.
|
void |
setHeight(float height)
Sets the height of this level.
|
void |
setName(java.lang.String name)
Sets the name of this level.
|
void |
setVisible(boolean visible)
Sets whether this level is visible or not.
|
public Level(java.lang.String name, float elevation, float floorThickness, float height)
name
- the name of the levelelevation
- the elevation of the bottom of the levelfloorThickness
- the floor thickness of the levelheight
- the height of the levelpublic void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
in parameter to this level.public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
in parameter from this level.public java.lang.String getName()
public void setName(java.lang.String name)
public float getElevation()
public void setElevation(float elevation)
public float getFloorThickness()
public void setFloorThickness(float floorThickness)
public float getHeight()
public void setHeight(float height)
public BackgroundImage getBackgroundImage()
public void setBackgroundImage(BackgroundImage backgroundImage)
PropertyChangeEvent
.public boolean isVisible()
true
if this level is visible.public void setVisible(boolean visible)
public Level clone()
clone
in class java.lang.Object
© Copyrights 2006-2014 eTeks - All rights reserved
Distributed under GNU General Public License