public class HomeShelfUnit extends HomePieceOfFurniture implements ShelfUnit
| Modifier and Type | Class and Description |
|---|---|
static class |
HomeShelfUnit.Property
The properties of a shelf unit that may change.
|
HomePieceOfFurniture.SortablePropertyEMPTY_PROPERTY_ARRAYDEFAULT_CUT_OUT_SHAPE, HIDE_EDGE_COLOR_MATERIAL, IDENTITY_ROTATION, SHOW_BACK_FACE| Constructor and Description |
|---|
HomeShelfUnit(ShelfUnit shelfUnit)
Creates a shelf unit from an existing one.
|
HomeShelfUnit(ShelfUnit shelfUnit,
java.lang.String[] copiedProperties)
Creates a shelf unit from an existing one.
|
HomeShelfUnit(java.lang.String id,
ShelfUnit shelfUnit)
Creates a shelf unit from an existing one.
|
HomeShelfUnit(java.lang.String id,
ShelfUnit shelfUnit,
java.lang.String[] copiedProperties)
Creates a shelf unit from an existing one.
|
| Modifier and Type | Method and Description |
|---|---|
HomeShelfUnit |
clone()
Returns a clone of this shelf unit.
|
BoxBounds[] |
getShelfBoxes()
Returns the coordinates of the shelf box(es) in which other objects can be placed in this shelf unit.
|
float[] |
getShelfElevations()
Returns the elevation(s) at which other objects can be placed on this shelf unit.
|
void |
setShelfBoxes(BoxBounds[] shelfBoxes)
Sets the coordinates of the shelf box(es) in which other objects can be placed in this shelf.
|
void |
setShelfElevations(float[] shelfElevations)
Sets the elevation(s) at which other objects can be placed on this shelf unit.
|
containsPoint, getAngle, getCatalogId, getColor, getCreator, getCurrency, getDepth, getDepthInPlan, getDescription, getDropOnTopElevation, getElevation, getFurnitureComparator, getGroundElevation, getHeight, getHeightInPlan, getIcon, getInformation, getLevel, getLicense, getModel, getModelFlags, getModelMaterials, getModelRotation, getModelSize, getModelTransformations, 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, isDoorOrWindow, isHorizontallyRotatable, isHorizontallyRotated, isModelCenteredAtOrigin, isModelMirrored, isMovable, isNameCenterPointAt, isNameVisible, isParallelToWall, isPointAt, isResizable, isTexturable, isTopLeftPointAt, isTopRightPointAt, isVisible, isWidthDepthDeformable, move, scale, setAngle, setBackFaceShown, setCatalogId, setColor, setCreator, setCurrency, setDepth, setDepthInPlan, setDescription, setElevation, setHeight, setHeightInPlan, setIcon, setInformation, setLevel, setLicense, setModel, setModelCenteredAtOrigin, setModelFlags, setModelMaterials, setModelMirrored, setModelRotation, setModelSize, setModelTransformations, setMovable, setName, setNameAngle, setNameStyle, setNameVisible, setNameXOffset, setNameYOffset, setPitch, setPlanIcon, setPrice, setRoll, setShininess, setStaircaseCutOutShape, setTexture, setValueAddedTaxPercentage, setVisible, setWidth, setWidthInPlan, setX, setYaddPropertyChangeListener, addPropertyChangeListener, createId, duplicate, firePropertyChange, getContentProperty, getId, getProperty, getPropertyNames, isContentProperty, removePropertyChangeListener, removePropertyChangeListener, setProperty, setPropertyequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetColor, getContentProperty, getCreator, getCurrency, getDepth, getDescription, getDropOnTopElevation, getElevation, getHeight, getIcon, getInformation, getLicense, getModel, getModelFlags, getModelRotation, getModelSize, getName, getPlanIcon, getPrice, getProperty, getPropertyNames, getStaircaseCutOutShape, getValueAddedTaxPercentage, getWidth, isBackFaceShown, isContentProperty, isDeformable, isDoorOrWindow, isHorizontallyRotatable, isMovable, isResizable, isTexturable, isWidthDepthDeformablepublic HomeShelfUnit(ShelfUnit shelfUnit)
shelfUnit - the shelfUnit from which data are copiedpublic HomeShelfUnit(ShelfUnit shelfUnit, java.lang.String[] copiedProperties)
shelfUnit - the shelfUnit from which data are copiedcopiedProperties - the names of the additional properties which should be copied from the existing piece
or null if all properties should be copied.public HomeShelfUnit(java.lang.String id,
ShelfUnit shelfUnit)
id - the ID of the shelfUnitshelfUnit - the shelfUnit from which data are copiedpublic HomeShelfUnit(java.lang.String id,
ShelfUnit shelfUnit,
java.lang.String[] copiedProperties)
id - the ID of the shelfUnitshelfUnit - the shelfUnit from which data are copiedcopiedProperties - the names of the additional properties which should be copied from the existing piece
or null if all properties should be copied.public float[] getShelfElevations()
getShelfElevations in interface ShelfUnitpublic void setShelfElevations(float[] shelfElevations)
shelfElevations - elevation of the shelvespublic BoxBounds[] getShelfBoxes()
getShelfBoxes in interface ShelfUnitpublic void setShelfBoxes(BoxBounds[] shelfBoxes)
shelfElevations - elevation of the shelvespublic HomeShelfUnit clone()
clone in interface Selectableclone in class HomePieceOfFurniture

© Copyright 2024 Space Mushrooms
Distributed under GNU General Public License