Sweet Home 3D 3.4

com.eteks.sweethome3d.model
Class Level

java.lang.Object
  extended by com.eteks.sweethome3d.model.Level
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class Level
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

A level in a home.

Since:
3.4
Author:
Emmanuel Puybaret
See Also:
Serialized Form

Nested Class Summary
static class Level.Property
          The properties of a level that may change.
 
Constructor Summary
Level(java.lang.String name, float elevation, float floorThickness, float height)
          Creates a home level from an existing level.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Level

public Level(java.lang.String name,
             float elevation,
             float floorThickness,
             float height)
Creates a home level from an existing level.

Parameters:
name - the name of the level
elevation - the elevation of the bottom of the level
floorThickness - the floor thickness of the level
height - the height of the level
Method Detail

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds the property change listener in parameter to this level.


removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes the property change listener in parameter from this level.


getName

public java.lang.String getName()
Returns the name of this level.


setName

public void setName(java.lang.String name)
Sets the name of this level. Once this level is updated, listeners added to this level will receive a change notification.


getElevation

public float getElevation()
Returns the elevation of the bottom of this level.


setElevation

public void setElevation(float elevation)
Sets the elevation of this level. Once this level is updated, listeners added to this level will receive a change notification.


getFloorThickness

public float getFloorThickness()
Returns the floor thickness of this level.


setFloorThickness

public void setFloorThickness(float floorThickness)
Sets the floor thickness of this level. Once this level is updated, listeners added to this level will receive a change notification.


getHeight

public float getHeight()
Returns the height of this level.


setHeight

public void setHeight(float height)
Sets the height of this level. Once this level is updated, listeners added to this level will receive a change notification.


getBackgroundImage

public BackgroundImage getBackgroundImage()
Returns the plan background image of this level.


setBackgroundImage

public void setBackgroundImage(BackgroundImage backgroundImage)
Sets the plan background image of this level and fires a PropertyChangeEvent.


isVisible

public boolean isVisible()
Returns true if this level is visible.


setVisible

public void setVisible(boolean visible)
Sets whether this level is visible or not. Once this level is updated, listeners added to this level will receive a change notification.


clone

public Level clone()
Returns a clone of this level.

Overrides:
clone in class java.lang.Object

Sweet Home 3D 3.4

? Copyrights 2006-2011 eTeks - All rights reserved
Distributed under GNU General Public License