|
Sweet Home 3D 3.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
com.eteks.sweethome3d.swing.HomeComponent3D
public class HomeComponent3D
A component that displays home walls, rooms and furniture with Java 3D.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.print.Printable |
|---|
NO_SUCH_PAGE, PAGE_EXISTS |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
HomeComponent3D(Home home)
Creates a 3D component that displays home walls, rooms and furniture,
with no controller. |
|
HomeComponent3D(Home home,
HomeController3D controller)
Creates a 3D component that displays home walls, rooms and furniture. |
|
HomeComponent3D(Home home,
UserPreferences preferences,
boolean displayShadowOnFloor)
Creates a 3D component that displays home walls, rooms and furniture,
with shadows on the floor. |
|
HomeComponent3D(Home home,
UserPreferences preferences,
HomeController3D controller)
Creates a 3D component that displays home walls, rooms and furniture. |
|
HomeComponent3D(Home home,
UserPreferences preferences,
Object3DFactory object3DFactory,
HomeController3D controller)
Creates a 3D component that displays home walls, rooms and furniture. |
|
| Method Summary | |
|---|---|
BufferedImage |
getOffScreenImage(int width,
int height)
Returns an image of the home viewed by this component at the given size. |
int |
print(Graphics g,
PageFormat pageFormat,
int pageIndex)
Prints this component to make it fill pageFormat imageable size. |
void |
setVisible(boolean visible)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HomeComponent3D(Home home)
home walls, rooms and furniture,
with no controller.
IllegalRenderingStateException - if the canvas 3D displayed
by this component couldn't be created.
public HomeComponent3D(Home home,
HomeController3D controller)
home walls, rooms and furniture.
IllegalRenderingStateException - if the canvas 3D displayed
by this component couldn't be created.
public HomeComponent3D(Home home,
UserPreferences preferences,
boolean displayShadowOnFloor)
home walls, rooms and furniture,
with shadows on the floor.
IllegalRenderingStateException - if the canvas 3D displayed
by this component couldn't be created.
public HomeComponent3D(Home home,
UserPreferences preferences,
HomeController3D controller)
home walls, rooms and furniture.
IllegalRenderingStateException - if the canvas 3D displayed
by this component couldn't be created.
public HomeComponent3D(Home home,
UserPreferences preferences,
Object3DFactory object3DFactory,
HomeController3D controller)
home walls, rooms and furniture.
home - the home to display in this componentpreferences - user preferencesobject3DFactory - a factory able to create 3D objects from home items.
The createObject3D of
this factory is expected to return an instance of Object3DBranch in current implementation.controller - the controller that manages modifications in home.
IllegalRenderingStateException - if the canvas 3D displayed
by this component couldn't be created.| Method Detail |
|---|
public void setVisible(boolean visible)
setVisible in class JComponent
public int print(Graphics g,
PageFormat pageFormat,
int pageIndex)
pageFormat imageable size.
print in interface Printable
public BufferedImage getOffScreenImage(int width,
int height)
|
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 |