public class Level extends HomeObject
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.
|
Level(java.lang.String id,
java.lang.String name,
float elevation,
float floorThickness,
float height)
Creates a home level.
|
Modifier and Type | Method and Description |
---|---|
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.
|
int |
getElevationIndex()
Returns the index of this level used to order levels at the same elevation.
|
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 |
isViewable()
Returns
true if this level is viewable. |
boolean |
isViewableAndVisible()
Returns
true if this level is viewable and visible. |
boolean |
isVisible()
Returns
true if this level is visible. |
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 |
setElevationIndex(int elevationIndex)
Sets the index of this level used to order levels at the same elevation.
|
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 |
setViewable(boolean viewable)
Sets whether this level is viewable or not.
|
void |
setVisible(boolean visible)
Sets whether this level is visible or not.
|
addPropertyChangeListener, addPropertyChangeListener, createId, duplicate, firePropertyChange, getContentProperty, getId, getProperty, getPropertyNames, isContentProperty, removePropertyChangeListener, removePropertyChangeListener, setProperty, setProperty
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 Level(java.lang.String id, java.lang.String name, float elevation, float floorThickness, float height)
id
- the ID of the levelname
- the name of the levelelevation
- the elevation of the bottom of the levelfloorThickness
- the floor thickness of the levelheight
- the height of the levelpublic 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 boolean isViewable()
true
if this level is viewable.public void setViewable(boolean viewable)
public boolean isViewableAndVisible()
true
if this level is viewable and visible.public int getElevationIndex()
public void setElevationIndex(int elevationIndex)
public Level clone()
clone
in class HomeObject
© Copyright 2024 Space Mushrooms
Distributed under GNU General Public License