|
Sweet Home 3D 3.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.eteks.sweethome3d.model.HomePieceOfFurniture
com.eteks.sweethome3d.model.HomeFurnitureGroup
public class HomeFurnitureGroup
A group of furniture of furniture.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.eteks.sweethome3d.model.HomePieceOfFurniture |
---|
HomePieceOfFurniture.Property, HomePieceOfFurniture.SortableProperty |
Constructor Summary | |
---|---|
HomeFurnitureGroup(java.util.List<HomePieceOfFurniture> furniture,
java.lang.String name)
Creates a group from the given furniture list. |
Method Summary | |
---|---|
HomeFurnitureGroup |
clone()
Returns a clone of this group with cloned furniture. |
java.lang.String |
getCatalogId()
Returns null . |
float |
getDepth()
Returns the depth of this group. |
java.util.List<HomePieceOfFurniture> |
getFurniture()
Returns an unmodifiable list of the furniture of this group. |
float |
getHeight()
Returns the height of this group. |
Content |
getIcon()
Returns null . |
Content |
getModel()
Returns null . |
float[][] |
getModelRotation()
Returns an identity matrix. |
Content |
getPlanIcon()
Returns null . |
java.math.BigDecimal |
getPrice()
Returns the price of the furniture of this group with a price. |
java.math.BigDecimal |
getPriceValueAddedTaxIncluded()
Returns the total price of the furniture of this group. |
java.math.BigDecimal |
getValueAddedTax()
Returns the VAT of the furniture of this group. |
java.math.BigDecimal |
getValueAddedTaxPercentage()
Returns the VAT percentage of the furniture of this group or null if one piece has no VAT percentage
or has a VAT percentage different from the other furniture. |
float |
getWidth()
Returns the width of this group. |
boolean |
isBackFaceShown()
Returns false . |
boolean |
isDeformable()
Returns true if all furniture of this group are deformable. |
boolean |
isDoorOrWindow()
Returns true if all furniture of this group are doors or windows. |
boolean |
isMovable()
Returns true if all furniture of this group are movable. |
boolean |
isResizable()
Returns true if all furniture of this group are resizable. |
void |
setAngle(float angle)
Sets the angle of the furniture of this group. |
void |
setColor(java.lang.Integer color)
Sets the color of the furniture of this group. |
void |
setDepth(float depth)
Sets the depth of this group, then moves and resizes its furniture accordingly. |
void |
setElevation(float elevation)
Sets the elevation of this group, then moves its furniture accordingly. |
void |
setHeight(float height)
Sets the height of this group, then moves and resizes its furniture accordingly. |
void |
setLevel(Level level)
Set the level of this group and the furniture it contains. |
void |
setModelMirrored(boolean modelMirrored)
Sets whether the furniture of this group should be mirrored or not. |
void |
setMovable(boolean movable)
Sets whether this piece is movable or not. |
void |
setTexture(HomeTexture texture)
Sets the texture of the furniture of this group. |
void |
setVisible(boolean visible)
Sets whether the furniture of this group should be visible or not. |
void |
setWidth(float width)
Sets the width of this group, then moves and resizes its furniture accordingly. |
void |
setX(float x)
Sets the abscissa of this group and moves its furniture accordingly. |
void |
setY(float y)
Sets the ordinate of this group and moves its furniture accordingly. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HomeFurnitureGroup(java.util.List<HomePieceOfFurniture> furniture, java.lang.String name)
furniture
list.
The level of each piece of furniture of the group will be reset to null
and if they belong to levels
with different elevations, their elevation will be updated to be relative to the elevation of the lowest level.
Method Detail |
---|
public java.util.List<HomePieceOfFurniture> getFurniture()
public java.lang.String getCatalogId()
null
.
getCatalogId
in class HomePieceOfFurniture
public boolean isMovable()
true
if all furniture of this group are movable.
isMovable
in interface PieceOfFurniture
isMovable
in class HomePieceOfFurniture
public void setMovable(boolean movable)
setMovable
in class HomePieceOfFurniture
public boolean isDoorOrWindow()
true
if all furniture of this group are doors or windows.
isDoorOrWindow
in interface PieceOfFurniture
isDoorOrWindow
in class HomePieceOfFurniture
public boolean isResizable()
true
if all furniture of this group are resizable.
isResizable
in interface PieceOfFurniture
isResizable
in class HomePieceOfFurniture
public boolean isDeformable()
true
if all furniture of this group are deformable.
isDeformable
in interface PieceOfFurniture
isDeformable
in class HomePieceOfFurniture
public float getWidth()
getWidth
in interface PieceOfFurniture
getWidth
in class HomePieceOfFurniture
public float getDepth()
getDepth
in interface PieceOfFurniture
getDepth
in class HomePieceOfFurniture
public float getHeight()
getHeight
in interface PieceOfFurniture
getHeight
in class HomePieceOfFurniture
public Content getIcon()
null
.
getIcon
in interface PieceOfFurniture
getIcon
in class HomePieceOfFurniture
public Content getPlanIcon()
null
.
getPlanIcon
in interface PieceOfFurniture
getPlanIcon
in class HomePieceOfFurniture
public Content getModel()
null
.
getModel
in interface PieceOfFurniture
getModel
in class HomePieceOfFurniture
public float[][] getModelRotation()
getModelRotation
in interface PieceOfFurniture
getModelRotation
in class HomePieceOfFurniture
public java.math.BigDecimal getPrice()
getPrice
in interface PieceOfFurniture
getPrice
in class HomePieceOfFurniture
public java.math.BigDecimal getValueAddedTaxPercentage()
null
if one piece has no VAT percentage
or has a VAT percentage different from the other furniture.
getValueAddedTaxPercentage
in interface PieceOfFurniture
getValueAddedTaxPercentage
in class HomePieceOfFurniture
public java.math.BigDecimal getValueAddedTax()
getValueAddedTax
in class HomePieceOfFurniture
public java.math.BigDecimal getPriceValueAddedTaxIncluded()
getPriceValueAddedTaxIncluded
in class HomePieceOfFurniture
public boolean isBackFaceShown()
false
.
isBackFaceShown
in interface PieceOfFurniture
isBackFaceShown
in class HomePieceOfFurniture
public void setColor(java.lang.Integer color)
color
of the furniture of this group.
setColor
in class HomePieceOfFurniture
public void setTexture(HomeTexture texture)
texture
of the furniture of this group.
setTexture
in class HomePieceOfFurniture
public void setAngle(float angle)
angle
of the furniture of this group.
setAngle
in class HomePieceOfFurniture
public void setX(float x)
abscissa
of this group and moves its furniture accordingly.
setX
in class HomePieceOfFurniture
public void setY(float y)
ordinate
of this group and moves its furniture accordingly.
setY
in class HomePieceOfFurniture
public void setWidth(float width)
width
of this group, then moves and resizes its furniture accordingly.
setWidth
in class HomePieceOfFurniture
public void setDepth(float depth)
depth
of this group, then moves and resizes its furniture accordingly.
setDepth
in class HomePieceOfFurniture
public void setHeight(float height)
height
of this group, then moves and resizes its furniture accordingly.
setHeight
in class HomePieceOfFurniture
public void setElevation(float elevation)
elevation
of this group, then moves its furniture accordingly.
setElevation
in class HomePieceOfFurniture
public void setModelMirrored(boolean modelMirrored)
setModelMirrored
in class HomePieceOfFurniture
public void setVisible(boolean visible)
setVisible
in class HomePieceOfFurniture
public void setLevel(Level level)
setLevel
in class HomePieceOfFurniture
public HomeFurnitureGroup clone()
clone
in interface Selectable
clone
in class HomePieceOfFurniture
|
Sweet Home 3D 3.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
![]() |
? Copyrights 2006-2011 eTeks - All rights reserved
Distributed under GNU General Public License |