public interface PieceOfFurniture
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
getColor()
Returns the color of this piece of furniture.
|
java.lang.String |
getCreator()
Returns the creator of this piece or
null . |
java.lang.String |
getCurrency()
Returns the price currency, noted with ISO 4217 code, or
null
if it has no price or default currency should be used. |
float |
getDepth()
Returns the depth of this piece of furniture.
|
java.lang.String |
getDescription()
Returns the description of this piece of furniture.
|
float |
getElevation()
Returns the elevation of this piece of furniture.
|
float |
getHeight()
Returns the height of this piece of furniture.
|
Content |
getIcon()
Returns the icon of this piece of furniture.
|
java.lang.String |
getInformation()
Returns the additional information associated to this piece, or
null . |
Content |
getModel()
Returns the 3D model of this piece of furniture.
|
float[][] |
getModelRotation()
Returns the rotation 3 by 3 matrix of this piece of furniture that ensures
its model is correctly oriented.
|
java.lang.String |
getName()
Returns the name of this piece of furniture.
|
Content |
getPlanIcon()
Returns the icon of this piece of furniture displayed in plan or
null . |
java.math.BigDecimal |
getPrice()
Returns the price of this piece of furniture or
null . |
java.lang.String |
getStaircaseCutOutShape()
Returns the shape used to cut out upper levels when they intersect with the piece
like a staircase.
|
java.math.BigDecimal |
getValueAddedTaxPercentage()
Returns the Value Added Tax percentage applied to the price of this piece of furniture.
|
float |
getWidth()
Returns the width of this piece of furniture.
|
boolean |
isBackFaceShown()
Returns
true if the back face of the piece of furniture
model should be displayed. |
boolean |
isDeformable()
Returns
true if this piece is deformable. |
boolean |
isDoorOrWindow()
Returns
true if this piece of furniture is a door or a window. |
boolean |
isMovable()
Returns
true if this piece of furniture is movable. |
boolean |
isResizable()
Returns
true if this piece is resizable. |
boolean |
isTexturable()
Returns
false if this piece should always keep the same color or texture. |
java.lang.String getName()
java.lang.String getDescription()
java.lang.String getInformation()
null
.float getDepth()
float getHeight()
float getWidth()
float getElevation()
boolean isMovable()
true
if this piece of furniture is movable.boolean isDoorOrWindow()
true
if this piece of furniture is a door or a window.
As this method existed before DoorOrWindow interface,
you shouldn't rely on the value returned by this method to guess if a piece
is an instance of DoorOrWindow
class.Content getIcon()
Content getPlanIcon()
null
.Content getModel()
float[][] getModelRotation()
java.lang.String getStaircaseCutOutShape()
java.lang.String getCreator()
null
.boolean isBackFaceShown()
true
if the back face of the piece of furniture
model should be displayed.java.lang.Integer getColor()
boolean isResizable()
true
if this piece is resizable.boolean isDeformable()
true
if this piece is deformable. The width, depth and height
of a deformable piece may change independently from each other.boolean isTexturable()
false
if this piece should always keep the same color or texture.java.math.BigDecimal getPrice()
null
.java.math.BigDecimal getValueAddedTaxPercentage()
java.lang.String getCurrency()
null
if it has no price or default currency should be used.
© Copyrights 2006-2014 eTeks - All rights reserved
Distributed under GNU General Public License