public class HomeDoorOrWindow extends HomePieceOfFurniture implements DoorOrWindow
HomePieceOfFurniture.Property, HomePieceOfFurniture.SortableProperty| Constructor and Description |
|---|
HomeDoorOrWindow(DoorOrWindow doorOrWindow)
Creates a home door or window from an existing one.
|
| Modifier and Type | Method and Description |
|---|---|
HomeDoorOrWindow |
clone()
Returns a clone of this door or window.
|
String |
getCutOutShape()
Returns the shape used to cut out walls that intersect this new door or window.
|
Sash[] |
getSashes()
Returns a copy of the sashes attached to this door or window.
|
float |
getWallDistance()
Returns the default distance that should lie at the back side of this door or window.
|
float |
getWallThickness()
Returns the default thickness of the wall in which this door or window should be placed.
|
boolean |
isBoundToWall()
Returns
true if the location and the size of this door or window
were bound to a wall, last time they were updated. |
boolean |
isDoorOrWindow()
Returns always
true. |
boolean |
isWallCutOutOnBothSides()
Returns
true if this door or window should cut out the both sides
of the walls it intersects, even if its front or back side are within the wall thickness. |
boolean |
isWidthDepthDeformable()
Returns
false if the width and depth of the new door or window may
not be changed independently from each other. |
void |
setAngle(float angle)
Sets the angle of this door or window and
resets its
boundToWall flag if the angle changed. |
void |
setBoundToWall(boolean boundToWall)
Sets whether the location and the size of this door or window
were bound to a wall, last time they were updated.
|
void |
setDepth(float depth)
Sets the depth of this door or window and
resets its
boundToWall flag if the depth changed. |
void |
setX(float x)
Sets the abscissa of this door or window and
resets its
boundToWall flag if the abscissa changed. |
void |
setY(float y)
Sets the ordinate of this door or window and
resets its
boundToWall flag if the ordinate changed. |
addPropertyChangeListener, containsPoint, getAngle, getCatalogId, getColor, getCreator, getCurrency, getDepth, getDepthInPlan, getDescription, getDropOnTopElevation, getElevation, getFurnitureComparator, getGroundElevation, getHeight, getHeightInPlan, getIcon, getInformation, getLevel, getModel, getModelMaterials, getModelRotation, getModelSize, getName, getNameAngle, getNameStyle, getNameXOffset, getNameYOffset, getPitch, getPlanIcon, getPoints, getPrice, getPriceValueAddedTaxIncluded, getRoll, getShininess, getStaircaseCutOutShape, getTexture, getValueAddedTax, getValueAddedTaxPercentage, getWidth, getWidthInPlan, getX, getY, intersectsRectangle, isAtLevel, isBackFaceShown, isBottomLeftPointAt, isBottomRightPointAt, isDeformable, isHorizontallyRotatable, isHorizontallyRotated, isModelCenteredAtOrigin, isModelMirrored, isMovable, isNameCenterPointAt, isNameVisible, isParallelToWall, isPointAt, isResizable, isTexturable, isTopLeftPointAt, isTopRightPointAt, isVisible, move, removePropertyChangeListener, scale, setColor, setDepthInPlan, setDescription, setElevation, setHeight, setHeightInPlan, setLevel, setModelCenteredAtOrigin, setModelMaterials, setModelMirrored, setModelSize, setMovable, setName, setNameAngle, setNameStyle, setNameVisible, setNameXOffset, setNameYOffset, setPitch, setPrice, setRoll, setShininess, setTexture, setVisible, setWidth, setWidthInPlangetProperty, getPropertyNames, setPropertyequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetColor, getCreator, getCurrency, getDepth, getDescription, getDropOnTopElevation, getElevation, getHeight, getIcon, getInformation, getModel, getModelRotation, getModelSize, getName, getPlanIcon, getPrice, getStaircaseCutOutShape, getValueAddedTaxPercentage, getWidth, isBackFaceShown, isDeformable, isHorizontallyRotatable, isMovable, isResizable, isTexturablepublic HomeDoorOrWindow(DoorOrWindow doorOrWindow)
doorOrWindow - the door or window from which data are copiedpublic float getWallThickness()
getWallThickness in interface DoorOrWindowpublic float getWallDistance()
getWallDistance in interface DoorOrWindowpublic Sash[] getSashes()
getSashes in interface DoorOrWindowpublic String getCutOutShape()
getCutOutShape in interface DoorOrWindownull or a shape defined with the syntax of the d attribute of a
SVG path element
that fits in a square spreading from (0, 0) to (1, 1) which will be
scaled afterwards to the real size of this door or window.public boolean isWallCutOutOnBothSides()
true if this door or window should cut out the both sides
of the walls it intersects, even if its front or back side are within the wall thickness.isWallCutOutOnBothSides in interface DoorOrWindowpublic boolean isWidthDepthDeformable()
false if the width and depth of the new door or window may
not be changed independently from each other. When false, this door or window
will also make a hole in the wall when it's placed whatever its depth if its
bouldToWall flag is true.isWidthDepthDeformable in interface DoorOrWindowisWidthDepthDeformable in interface PieceOfFurnitureisWidthDepthDeformable in class HomePieceOfFurniturepublic boolean isBoundToWall()
true if the location and the size of this door or window
were bound to a wall, last time they were updated.public void setBoundToWall(boolean boundToWall)
public void setX(float x)
boundToWall flag if the abscissa changed.setX in class HomePieceOfFurniturepublic void setY(float y)
boundToWall flag if the ordinate changed.setY in class HomePieceOfFurniturepublic void setAngle(float angle)
boundToWall flag if the angle changed.setAngle in class HomePieceOfFurniturepublic void setDepth(float depth)
boundToWall flag if the depth changed.setDepth in class HomePieceOfFurniturepublic boolean isDoorOrWindow()
true.isDoorOrWindow in interface PieceOfFurnitureisDoorOrWindow in class HomePieceOfFurniturepublic HomeDoorOrWindow clone()
clone in interface Selectableclone in class HomePieceOfFurniture

© Copyrights 2006-2017 Emmanuel PUYBARET / eTeks
Distributed under GNU General Public License