Sweet Home 3D 3.4

com.eteks.sweethome3d.model
Class Sash

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

public class Sash
extends java.lang.Object
implements java.io.Serializable

A sash (moving part) of a door or a window.

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

Constructor Summary
Sash(float xAxis, float yAxis, float width, float startAngle, float endAngle)
          Creates a window sash.
 
Method Summary
 float getEndAngle()
          Returns the opening end angle of this sash.
 float getStartAngle()
          Returns the opening start angle of this sash.
 float getWidth()
          Returns the width of this sash.
 float getXAxis()
          Returns the abscissa of the axis around which this sash turns, relatively to the top left corner of the window or the door.
 float getYAxis()
          Returns the ordinate of the axis around which this sash turns, relatively to the top left corner of the window or the door.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sash

public Sash(float xAxis,
            float yAxis,
            float width,
            float startAngle,
            float endAngle)
Creates a window sash.

Method Detail

getXAxis

public float getXAxis()
Returns the abscissa of the axis around which this sash turns, relatively to the top left corner of the window or the door.

Returns:
a value in percentage of the width of the door or the window.

getYAxis

public float getYAxis()
Returns the ordinate of the axis around which this sash turns, relatively to the top left corner of the window or the door.

Returns:
a value in percentage of the depth of the door or the window.

getWidth

public float getWidth()
Returns the width of this sash.

Returns:
a value in percentage of the width of the door or the window.

getStartAngle

public float getStartAngle()
Returns the opening start angle of this sash.

Returns:
an angle in radians.

getEndAngle

public float getEndAngle()
Returns the opening end angle of this sash.

Returns:
an angle in radians.

Sweet Home 3D 3.4

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