|
Sweet Home 3D 2.5 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.eteks.sweethome3d.model.Wall
public class Wall
A wall of a home plan.
| Nested Class Summary | |
|---|---|
static class |
Wall.Property
The properties of a wall that may change. |
| Constructor Summary | |
|---|---|
Wall(float xStart,
float yStart,
float xEnd,
float yEnd,
float thickness)
Creates a wall from ( xStart,yStart)
to (xEnd, yEnd),
with given thickness. |
|
Wall(float xStart,
float yStart,
float xEnd,
float yEnd,
float thickness,
float height)
Creates a wall from ( xStart,yStart)
to (xEnd, yEnd),
with given thickness and height. |
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds the property change listener in parameter to this wall. |
Wall |
clone()
Returns a clone of this wall expected its wall at start and wall at end aren't copied. |
static List<Wall> |
clone(List<Wall> walls)
Returns a clone of the walls list. |
boolean |
containsPoint(float x,
float y,
float margin)
Returns true if this wall contains
the point at (x, y)
with a given margin. |
boolean |
containsWallEndAt(float x,
float y,
float margin)
Returns true if this wall end line contains
the point at (x, y)
with a given margin around the wall end line. |
boolean |
containsWallStartAt(float x,
float y,
float margin)
Returns true if this wall start line contains
the point at (x, y)
with a given margin around the wall start line. |
Float |
getHeight()
Returns the height of this wall. |
Float |
getHeightAtEnd()
Returns the height of this wall at its end point. |
Integer |
getLeftSideColor()
Returns left side color of this wall. |
HomeTexture |
getLeftSideTexture()
Returns the left side texture of this wall. |
float |
getLength()
Returns the length from the start point of this wall to its end point. |
float[][] |
getPoints()
Returns the points of each corner of a wall. |
Integer |
getRightSideColor()
Returns right side color of this wall. |
HomeTexture |
getRightSideTexture()
Returns the right side texture of this wall. |
float |
getThickness()
Returns the thickness of this wall. |
Wall |
getWallAtEnd()
Returns the wall joined to this wall at end point. |
Wall |
getWallAtStart()
Returns the wall joined to this wall at start point. |
float |
getXEnd()
Returns the end point abscissa of this wall. |
float |
getXStart()
Returns the start point abscissa of this wall. |
float |
getYEnd()
Returns the end point ordinate of this wall. |
float |
getYStart()
Returns the start point ordinate of this wall. |
boolean |
intersectsRectangle(float x0,
float y0,
float x1,
float y1)
Returns true if this wall intersects
with the horizontal rectangle which opposite corners are at points
(x0, y0) and (x1, y1). |
boolean |
isTrapezoidal()
Returns true if the height of this wall is different
at its start and end points. |
void |
move(float dx,
float dy)
Moves this wall of ( dx, dy) units. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes the property change listener in parameter from this wall. |
void |
setHeight(Float height)
Sets the height of this wall. |
void |
setHeightAtEnd(Float heightAtEnd)
Sets the height of this wall at its end point. |
void |
setLeftSideColor(Integer leftSideColor)
Sets left side color of this wall. |
void |
setLeftSideTexture(HomeTexture leftSideTexture)
Sets the left side texture of this wall. |
void |
setRightSideColor(Integer rightSideColor)
Sets right side color of this wall. |
void |
setRightSideTexture(HomeTexture rightSideTexture)
Sets the right side texture of this wall. |
void |
setThickness(float thickness)
Sets wall thickness. |
void |
setWallAtEnd(Wall wallAtEnd)
Sets the wall joined to this wall at end point. |
void |
setWallAtStart(Wall wallAtStart)
Sets the wall joined to this wall at start point. |
void |
setXEnd(float xEnd)
Sets the end point abscissa of this wall. |
void |
setXStart(float xStart)
Sets the start point abscissa of this wall. |
void |
setYEnd(float yEnd)
Sets the end point ordinate of this wall. |
void |
setYStart(float yStart)
Sets the start point ordinate of this wall. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Wall(float xStart,
float yStart,
float xEnd,
float yEnd,
float thickness)
xStart,yStart)
to (xEnd, yEnd),
with given thickness. Height, left and right colors are null.
public Wall(float xStart,
float yStart,
float xEnd,
float yEnd,
float thickness,
float height)
xStart,yStart)
to (xEnd, yEnd),
with given thickness and height. Left and right colors are null.
| Method Detail |
|---|
public void addPropertyChangeListener(PropertyChangeListener listener)
listener in parameter to this wall.
public void removePropertyChangeListener(PropertyChangeListener listener)
listener in parameter from this wall.
public float getXStart()
public void setXStart(float xStart)
public float getYStart()
public void setYStart(float yStart)
public float getXEnd()
public void setXEnd(float xEnd)
public float getYEnd()
public void setYEnd(float yEnd)
public float getLength()
public Wall getWallAtStart()
public void setWallAtStart(Wall wallAtStart)
wallAtStart - a wall or null to detach this wall
from any wall it was attached to before.public Wall getWallAtEnd()
public void setWallAtEnd(Wall wallAtEnd)
wallAtEnd - a wall or null to detach this wall
from any wall it was attached to before.public float getThickness()
public void setThickness(float thickness)
public Float getHeight()
getHeightAtEnd
returns a value not null, the returned height should be
considered as the height of this wall at its start point.
public void setHeight(Float height)
public Float getHeightAtEnd()
public void setHeightAtEnd(Float heightAtEnd)
public boolean isTrapezoidal()
true if the height of this wall is different
at its start and end points.
public Integer getLeftSideColor()
public void setLeftSideColor(Integer leftSideColor)
public Integer getRightSideColor()
public void setRightSideColor(Integer rightSideColor)
public HomeTexture getLeftSideTexture()
public void setLeftSideTexture(HomeTexture leftSideTexture)
public HomeTexture getRightSideTexture()
public void setRightSideTexture(HomeTexture rightSideTexture)
public float[][] getPoints()
getPoints in interface Selectable
public boolean intersectsRectangle(float x0,
float y0,
float x1,
float y1)
true if this wall intersects
with the horizontal rectangle which opposite corners are at points
(x0, y0) and (x1, y1).
intersectsRectangle in interface Selectable
public boolean containsPoint(float x,
float y,
float margin)
true if this wall contains
the point at (x, y)
with a given margin.
containsPoint in interface Selectable
public boolean containsWallStartAt(float x,
float y,
float margin)
true if this wall start line contains
the point at (x, y)
with a given margin around the wall start line.
public boolean containsWallEndAt(float x,
float y,
float margin)
true if this wall end line contains
the point at (x, y)
with a given margin around the wall end line.
public static List<Wall> clone(List<Wall> walls)
walls list. All existing walls
are copied and their wall at start and end point are set with copied
walls only if they belong to the returned list.
public void move(float dx,
float dy)
dx, dy) units.
move in interface Selectablepublic Wall clone()
clone in interface Selectableclone in class Object
|
Sweet Home 3D 2.5 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
![]() |
© Copyrights 2006-2010 eTeks - All rights reserved
Distributed under GNU General Public License |