public class HomeFurnitureGroup extends HomePieceOfFurniture
HomePieceOfFurniture.Property, HomePieceOfFurniture.SortableProperty| Constructor and Description |
|---|
HomeFurnitureGroup(java.util.List<HomePieceOfFurniture> furniture,
java.lang.String name)
Creates a group from the given
furniture list. |
| Modifier and Type | Method and Description |
|---|---|
HomeFurnitureGroup |
clone()
Returns a clone of this group with cloned furniture.
|
boolean |
containsPoint(float x,
float y,
float margin)
Returns
true if one of the pieces of this group contains
the point at (x, y)
with a given margin. |
java.lang.String |
getCatalogId()
Returns
null. |
java.lang.String |
getCreator()
Returns
null. |
java.lang.String |
getCurrency()
Returns the currency of the furniture of this group
or
null if one piece has no currency
or has a currency different from the other furniture. |
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. |
java.lang.String |
getInformation()
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.lang.String |
getStaircaseCutOutShape()
Returns
null. |
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 |
intersectsRectangle(float x0,
float y0,
float x1,
float y1)
Returns
true if one of the pieces of this group intersects
with the horizontal rectangle which opposite corners are at points
(x0, y0) and (x1, y1). |
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. |
boolean |
isTexturable()
Returns
true if all furniture of this group are texturable. |
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 |
setPrice(java.math.BigDecimal price)
Sets the price of this group.
|
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. |
addPropertyChangeListener, getAngle, getColor, getDescription, getElevation, getFurnitureComparator, getGroundElevation, getLevel, getModelMaterials, getName, getNameAngle, getNameStyle, getNameXOffset, getNameYOffset, getPoints, getShininess, getTexture, getX, getY, isAtLevel, isBottomLeftPointAt, isBottomRightPointAt, isModelMirrored, isNameCenterPointAt, isNameVisible, isPointAt, isTopLeftPointAt, isTopRightPointAt, isVisible, move, removePropertyChangeListener, setDescription, setModelMaterials, setName, setNameAngle, setNameStyle, setNameVisible, setNameXOffset, setNameYOffset, setShininesspublic 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.public java.util.List<HomePieceOfFurniture> getFurniture()
public java.lang.String getCatalogId()
null.getCatalogId in class HomePieceOfFurniturepublic java.lang.String getInformation()
null.getInformation in interface PieceOfFurnituregetInformation in class HomePieceOfFurniturepublic boolean isMovable()
true if all furniture of this group are movable.isMovable in interface PieceOfFurnitureisMovable in class HomePieceOfFurniturepublic void setMovable(boolean movable)
setMovable in class HomePieceOfFurniturepublic boolean isDoorOrWindow()
true if all furniture of this group are doors or windows.isDoorOrWindow in interface PieceOfFurnitureisDoorOrWindow in class HomePieceOfFurniturepublic boolean isResizable()
true if all furniture of this group are resizable.isResizable in interface PieceOfFurnitureisResizable in class HomePieceOfFurniturepublic boolean isDeformable()
true if all furniture of this group are deformable.isDeformable in interface PieceOfFurnitureisDeformable in class HomePieceOfFurniturepublic boolean isTexturable()
true if all furniture of this group are texturable.isTexturable in interface PieceOfFurnitureisTexturable in class HomePieceOfFurniturepublic float getWidth()
getWidth in interface PieceOfFurnituregetWidth in class HomePieceOfFurniturepublic float getDepth()
getDepth in interface PieceOfFurnituregetDepth in class HomePieceOfFurniturepublic float getHeight()
getHeight in interface PieceOfFurnituregetHeight in class HomePieceOfFurniturepublic Content getIcon()
null.getIcon in interface PieceOfFurnituregetIcon in class HomePieceOfFurniturepublic Content getPlanIcon()
null.getPlanIcon in interface PieceOfFurnituregetPlanIcon in class HomePieceOfFurniturepublic Content getModel()
null.getModel in interface PieceOfFurnituregetModel in class HomePieceOfFurniturepublic float[][] getModelRotation()
getModelRotation in interface PieceOfFurnituregetModelRotation in class HomePieceOfFurniturepublic java.lang.String getStaircaseCutOutShape()
null.getStaircaseCutOutShape in interface PieceOfFurnituregetStaircaseCutOutShape in class HomePieceOfFurniturepublic java.lang.String getCreator()
null.getCreator in interface PieceOfFurnituregetCreator in class HomePieceOfFurniturepublic java.math.BigDecimal getPrice()
getPrice in interface PieceOfFurnituregetPrice in class HomePieceOfFurniturepublic void setPrice(java.math.BigDecimal price)
setPrice in class HomePieceOfFurniturejava.lang.UnsupportedOperationException - if the price of one of the pieces is setpublic 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 PieceOfFurnituregetValueAddedTaxPercentage in class HomePieceOfFurniturepublic java.lang.String getCurrency()
null if one piece has no currency
or has a currency different from the other furniture.getCurrency in interface PieceOfFurnituregetCurrency in class HomePieceOfFurniturepublic java.math.BigDecimal getValueAddedTax()
getValueAddedTax in class HomePieceOfFurniturepublic java.math.BigDecimal getPriceValueAddedTaxIncluded()
getPriceValueAddedTaxIncluded in class HomePieceOfFurniturepublic boolean isBackFaceShown()
false.isBackFaceShown in interface PieceOfFurnitureisBackFaceShown in class HomePieceOfFurniturepublic void setColor(java.lang.Integer color)
color of the furniture of this group.setColor in class HomePieceOfFurniturecolor - the color of this piece of furniture or null if piece color is the default onepublic void setTexture(HomeTexture texture)
texture of the furniture of this group.setTexture in class HomePieceOfFurnituretexture - the texture of this piece of furniture or null if piece texture is the default onepublic void setAngle(float angle)
angle of the furniture of this group.setAngle in class HomePieceOfFurniturepublic void setX(float x)
abscissa of this group and moves its furniture accordingly.setX in class HomePieceOfFurniturepublic void setY(float y)
ordinate of this group and moves its furniture accordingly.setY in class HomePieceOfFurniturepublic void setWidth(float width)
width of this group, then moves and resizes its furniture accordingly.setWidth in class HomePieceOfFurniturepublic void setDepth(float depth)
depth of this group, then moves and resizes its furniture accordingly.setDepth in class HomePieceOfFurniturepublic void setHeight(float height)
height of this group, then moves and resizes its furniture accordingly.setHeight in class HomePieceOfFurniturepublic void setElevation(float elevation)
elevation of this group, then moves its furniture accordingly.setElevation in class HomePieceOfFurniturepublic void setModelMirrored(boolean modelMirrored)
setModelMirrored in class HomePieceOfFurniturepublic void setVisible(boolean visible)
setVisible in class HomePieceOfFurniturepublic void setLevel(Level level)
setLevel in class HomePieceOfFurniturepublic boolean intersectsRectangle(float x0,
float y0,
float x1,
float y1)
true if one of the pieces of this group intersects
with the horizontal rectangle which opposite corners are at points
(x0, y0) and (x1, y1).intersectsRectangle in interface SelectableintersectsRectangle in class HomePieceOfFurniturepublic boolean containsPoint(float x,
float y,
float margin)
true if one of the pieces of this group contains
the point at (x, y)
with a given margin.containsPoint in interface SelectablecontainsPoint in class HomePieceOfFurniturepublic HomeFurnitureGroup clone()
clone in interface Selectableclone in class HomePieceOfFurniture

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