Package | Description |
---|---|
com.eteks.sweethome3d.j3d |
Contains various tool 3D classes and 3D home objects useful in
Swing package.
|
com.eteks.sweethome3d.model |
Describes model classes of Sweet Home 3D.
|
com.eteks.sweethome3d.swing |
Implements views created by Sweet Home 3D controllers
with Swing components.
|
com.eteks.sweethome3d.viewcontroller |
Describes controller classes and view interfaces of Sweet Home 3D.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
Object3DBranchFactory.createObject3D(Home home,
Selectable item,
boolean waitForLoading)
Returns the 3D object matching a given
item . |
java.lang.Object |
Object3DBranchFactory.createObject3D(Home home,
Selectable item,
UserPreferences preferences,
java.lang.Object context,
boolean waitForLoading)
Returns the 3D object matching a given
item . |
Modifier and Type | Method and Description |
---|---|
abstract void |
AbstractPhotoRenderer.render(java.awt.image.BufferedImage image,
Camera camera,
java.util.List<? extends Selectable> updatedItems,
java.awt.image.ImageObserver observer)
Renders home in
image at the given camera location and image size. |
void |
YafarayRenderer.render(java.awt.image.BufferedImage image,
Camera camera,
java.util.List<? extends Selectable> updatedItems,
java.awt.image.ImageObserver observer) |
void |
PhotoRenderer.render(java.awt.image.BufferedImage image,
Camera camera,
java.util.List<? extends Selectable> updatedItems,
java.awt.image.ImageObserver observer)
Renders home in
image at the given camera location and image size. |
Modifier and Type | Class and Description |
---|---|
class |
Compass
A compass used to locate where a home is located and how it's oriented towards North.
|
class |
DimensionLine
A dimension line in plan.
|
class |
HomeDoorOrWindow
A door or a window in home.
|
class |
HomeFurnitureGroup
A group of furniture of furniture.
|
class |
HomeLight
A light in home.
|
class |
HomePieceOfFurniture
A piece of furniture in home.
|
class |
HomeShelfUnit
A shelf unit in home.
|
class |
Label
A free label.
|
class |
ObserverCamera
Observer camera characteristics in home.
|
class |
Polyline
A polyline or a polygon in a home plan.
|
class |
Room
A room or a polygon in a home plan.
|
class |
Wall
A wall of a home plan.
|
Modifier and Type | Method and Description |
---|---|
Selectable |
Selectable.clone()
Returns a clone of this object.
|
Modifier and Type | Method and Description |
---|---|
static java.util.List<Selectable> |
Home.duplicate(java.util.List<? extends Selectable> items)
Returns a deep copy of home selectable
items . |
java.util.List<Selectable> |
Home.getSelectableViewableItems()
Returns all the selectable and viewable items in this home, except the observer camera.
|
java.util.List<Selectable> |
Home.getSelectedItems()
Returns an unmodifiable list of the selected items in home.
|
Modifier and Type | Method and Description |
---|---|
void |
Home.deselectItem(Selectable item)
Deselects
item if it's selected and notifies listeners selection change. |
boolean |
Home.isItemSelected(Selectable item)
Returns
true if the given item is selected in this home |
Modifier and Type | Method and Description |
---|---|
static java.util.List<Selectable> |
Home.duplicate(java.util.List<? extends Selectable> items)
Returns a deep copy of home selectable
items . |
TextStyle |
UserPreferences.getDefaultTextStyle(java.lang.Class<? extends Selectable> selectableClass)
Returns the default text style of a class of selectable item.
|
static java.util.List<DimensionLine> |
Home.getDimensionLinesSubList(java.util.List<? extends Selectable> items)
Returns a sub list of
items that contains only dimension lines. |
static java.util.List<HomePieceOfFurniture> |
Home.getFurnitureSubList(java.util.List<? extends Selectable> items)
Returns a sub list of
items that contains only home furniture. |
static java.util.List<Label> |
Home.getLabelsSubList(java.util.List<? extends Selectable> items)
Returns a sub list of
items that contains only labels. |
static java.util.List<Polyline> |
Home.getPolylinesSubList(java.util.List<? extends Selectable> items)
Returns a sub list of
items that contains only labels. |
static java.util.List<Room> |
Home.getRoomsSubList(java.util.List<? extends Selectable> items)
Returns a sub list of
items that contains only rooms. |
static <T> java.util.List<T> |
Home.getSubList(java.util.List<? extends Selectable> items,
java.lang.Class<T> subListClass)
Returns a sub list of
items that contains only instances of subListClass . |
static java.util.List<Wall> |
Home.getWallsSubList(java.util.List<? extends Selectable> items)
Returns a sub list of
items that contains only walls. |
void |
Home.setSelectedItems(java.util.List<? extends Selectable> selectedItems)
Sets the selected items in home and notifies listeners selection change.
|
Modifier and Type | Method and Description |
---|---|
Selectable |
HomeComponent3D.getClosestItemAt(int x,
int y)
Deprecated.
Use rather getClosestSelectableItemAt.
|
Selectable |
HomeComponent3D.getClosestSelectableItemAt(int x,
int y)
Returns the closest
Selectable object at component coordinates (x, y),
or null if not found. |
Modifier and Type | Method and Description |
---|---|
java.util.List<Selectable> |
HomePane.getClipboardItems()
Returns the list of selectable items that are currently in clipboard
or
null if clipboard doesn't contain any selectable item. |
protected java.util.List<Selectable> |
PlanComponent.getPaintedItems()
Returns the collection of walls, furniture, rooms and dimension lines of the home
painted by this component wherever the level they belong to is selected or not.
|
Modifier and Type | Method and Description |
---|---|
protected java.awt.Shape |
PlanComponent.getIndicator(Selectable item,
PlanComponent.IndicatorType indicatorType)
Returns the shape of the given indicator type.
|
protected java.awt.geom.Rectangle2D |
PlanComponent.getItemBounds(java.awt.Graphics g,
Selectable item)
Returns the bounds of the given
item . |
void |
PlanComponent.setAlignmentFeedback(java.lang.Class<? extends Selectable> alignedObjectClass,
Selectable alignedObject,
float x,
float y,
boolean showPointFeedback)
Sets the location point for alignment feedback.
|
void |
MultipleLevelsPlanPanel.setAlignmentFeedback(java.lang.Class<? extends Selectable> alignedObjectClass,
Selectable alignedObject,
float x,
float y,
boolean showPoint)
Sets the location point for alignment feedback.
|
Modifier and Type | Method and Description |
---|---|
boolean |
PlanComponent.canImportDraggedItems(java.util.List<Selectable> items,
int x,
int y)
Returns
true . |
boolean |
MultipleLevelsPlanPanel.canImportDraggedItems(java.util.List<Selectable> items,
int x,
int y)
Returns
true if the given coordinates belong to the plan displayed by this component. |
void |
PlanComponent.setAlignmentFeedback(java.lang.Class<? extends Selectable> alignedObjectClass,
Selectable alignedObject,
float x,
float y,
boolean showPointFeedback)
Sets the location point for alignment feedback.
|
void |
MultipleLevelsPlanPanel.setAlignmentFeedback(java.lang.Class<? extends Selectable> alignedObjectClass,
Selectable alignedObject,
float x,
float y,
boolean showPoint)
Sets the location point for alignment feedback.
|
void |
PlanComponent.setDraggedItemsFeedback(java.util.List<Selectable> draggedItems)
Sets the feedback of dragged items drawn during a drag and drop operation,
initiated from outside of plan view.
|
void |
MultipleLevelsPlanPanel.setDraggedItemsFeedback(java.util.List<Selectable> draggedItems)
Sets the feedback of dragged items drawn during a drag and drop operation,
initiated from outside of the plan displayed by this component.
|
Constructor and Description |
---|
HomeTransferableList(java.util.List<? extends Selectable> items)
Creates a transferable list of a copy of
items . |
Modifier and Type | Method and Description |
---|---|
Selectable |
View3D.getClosestSelectableItemAt(int x,
int y)
Returns the closest
Selectable object at component coordinates (x, y),
or null if not found. |
Selectable |
PlanController.getSelectableItemAt(float x,
float y)
Returns the selectable item at (
x , y ) point. |
Modifier and Type | Method and Description |
---|---|
java.util.List<Selectable> |
HomeView.getClipboardItems()
Returns the list of selectable items that are currently in clipboard
or
null if clipboard doesn't contain any selectable item. |
java.util.List<Selectable> |
PlanController.getSelectableItemsAt(float x,
float y)
Returns the selectable items at (
x , y ) point. |
protected java.util.List<Selectable> |
PlanController.getSelectableItemsIntersectingRectangle(float x0,
float y0,
float x1,
float y1)
Returns the items that intersects with the rectangle of (
x0 ,
y0 ), (x1 , y1 ) opposite corners. |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
Object3DFactory.createObject3D(Home home,
Selectable item,
boolean waitForLoading)
Returns the 3D object matching a given
item . |
java.lang.Object |
Object3DFactory.createObject3D(Home home,
Selectable item,
UserPreferences preferences,
java.lang.Object context,
boolean waitForLoading)
Returns the 3D object matching a given
item . |
void |
HomeController.drop(java.util.List<? extends Selectable> items,
View destinationView,
Selectable beforeItem)
Adds items to home before the given item
and posts a drop operation to undo support.
|
protected void |
PlanController.flipItem(Selectable item,
float[] itemTextBaseOffsets,
int offsetIndex,
float axisCoordinate,
boolean horizontalFlip,
java.util.List<Selectable> flippedItems)
Flips the given
item with the given axis coordinate. |
protected boolean |
PlanController.isItemDeletable(Selectable item)
Returns
true if the given item may be deleted. |
protected boolean |
PlanController.isItemMovable(Selectable item)
Returns
true if the given item may be moved
in the plan. |
protected boolean |
PlanController.isItemPartOfBasePlan(Selectable item)
Returns
true it the given item belongs
to the base plan. |
protected boolean |
PlanController.isItemResizable(Selectable item)
Returns
true if the given item may be resized. |
void |
PlanController.selectItem(Selectable item)
Selects the given
item . |
void |
PlanView.setAlignmentFeedback(java.lang.Class<? extends Selectable> alignedObjectClass,
Selectable alignedObject,
float x,
float y,
boolean showPoint)
Sets the location point for alignment feedback.
|
void |
PlanController.toggleItemSelection(Selectable item)
Toggles the selection of the given
item . |
Modifier and Type | Method and Description |
---|---|
void |
PlanController.addItems(java.util.List<? extends Selectable> items)
Adds
items to home and post an undoable operation. |
boolean |
PlanView.canImportDraggedItems(java.util.List<Selectable> items,
int x,
int y)
Returns
true if this plan accepts to import dragged items at the given coordinates. |
void |
HomeController.cut(java.util.List<? extends Selectable> items)
Deletes items and post a cut operation to undo support.
|
void |
PlanController.deleteItems(java.util.List<? extends Selectable> items)
Deletes
items in plan and record it as an undoable operation. |
void |
HomeController.drop(java.util.List<? extends Selectable> items,
float dx,
float dy)
Adds items to home, moves them of (dx, dy)
and posts a drop operation to undo support.
|
void |
HomeController.drop(java.util.List<? extends Selectable> items,
View destinationView,
float dx,
float dy)
Adds items to home, moves them of (dx, dy)
and posts a drop operation to undo support.
|
void |
HomeController.drop(java.util.List<? extends Selectable> items,
View destinationView,
Level level,
float dx,
float dy,
java.lang.Float dz)
Adds items to home, moves them of (dx, dy, dz) delta vector
and posts a drop operation to undo support.
|
void |
HomeController.drop(java.util.List<? extends Selectable> items,
View destinationView,
Selectable beforeItem)
Adds items to home before the given item
and posts a drop operation to undo support.
|
protected void |
PlanController.flipItem(Selectable item,
float[] itemTextBaseOffsets,
int offsetIndex,
float axisCoordinate,
boolean horizontalFlip,
java.util.List<Selectable> flippedItems)
Flips the given
item with the given axis coordinate. |
void |
PlanController.moveItems(java.util.List<? extends Selectable> items,
float dx,
float dy)
Moves
items of (dx , dy ) units. |
void |
HomeController.paste(java.util.List<? extends Selectable> items)
Adds items to home and posts a paste operation to undo support.
|
protected void |
PlanController.selectAndShowItems(java.util.List<? extends Selectable> items)
Selects
items and make them visible at screen. |
protected void |
PlanController.selectItems(java.util.List<? extends Selectable> items)
Selects
items . |
void |
PlanView.setAlignmentFeedback(java.lang.Class<? extends Selectable> alignedObjectClass,
Selectable alignedObject,
float x,
float y,
boolean showPoint)
Sets the location point for alignment feedback.
|
void |
PlanView.setDraggedItemsFeedback(java.util.List<Selectable> draggedItems)
Sets the feedback of dragged items drawn during a drag and drop operation,
initiated from outside of plan view.
|
void |
PlanController.startDraggedItems(java.util.List<Selectable> draggedItems,
float x,
float y)
Displays in plan view the feedback of
draggedItems ,
during a drag and drop operation initiated from outside of plan view. |
© Copyright 2024 Space Mushrooms
Distributed under GNU General Public License