|
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
javax.swing.JRootPane
com.eteks.sweethome3d.swing.HomePane
public class HomePane
The MVC view that edits a home.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JRootPane |
|---|
JRootPane.AccessibleJRootPane, JRootPane.RootLayout |
| 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 |
| Nested classes/interfaces inherited from interface com.eteks.sweethome3d.viewcontroller.HomeView |
|---|
HomeView.ActionType, HomeView.SaveAnswer |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JRootPane |
|---|
COLOR_CHOOSER_DIALOG, contentPane, defaultButton, defaultPressAction, defaultReleaseAction, ERROR_DIALOG, FILE_CHOOSER_DIALOG, FRAME, glassPane, INFORMATION_DIALOG, layeredPane, menuBar, NONE, PLAIN_DIALOG, QUESTION_DIALOG, WARNING_DIALOG |
| 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.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
HomePane(Home home,
UserPreferences preferences,
HomeController controller)
Creates home view associated with its controller. |
|
| Method Summary | |
|---|---|
void |
attachView(View view)
Attaches the given view to home view. |
boolean |
confirmDeleteCatalogSelection()
Displays a dialog that let user choose whether he wants to delete the selected furniture from catalog or not. |
boolean |
confirmExit()
Displays a dialog that let user choose whether he wants to exit application or not. |
boolean |
confirmReplaceFurnitureLibrary(String furnitureLibraryName)
Displays a dialog that lets user choose whether he wants to overwrite an existing furniture library or not. |
boolean |
confirmReplaceLanguageLibrary(String languageLibraryName)
Displays a dialog that lets user choose whether he wants to overwrite an existing language library or not. |
boolean |
confirmReplacePlugin(String pluginName)
Displays a dialog that lets user choose whether he wants to overwrite an existing plug-in or not. |
boolean |
confirmReplaceTexturesLibrary(String texturesLibraryName)
Displays a dialog that lets user choose whether he wants to overwrite an existing textures library or not. |
HomeView.SaveAnswer |
confirmSave(String homeName)
Displays a dialog that lets user choose whether he wants to save the current home or not. |
boolean |
confirmSaveNewerHome(String homeName)
Displays a dialog that let user choose whether he wants to save a home that was created with a newer version of Sweet Home 3D. |
void |
detachView(View view)
Detaches the given view from home view. |
void |
exportToOBJ(String objFile)
Exports the objects of the 3D view to the given OBJ file. |
void |
exportToSVG(String svgFile)
Exports the plan objects to a given SVG file. |
void |
invokeLater(Runnable runnable)
Execute runnable asynchronously in the thread
that manages toolkit events. |
boolean |
isClipboardEmpty()
Returns true if clipboard contains data that
components are able to handle. |
void |
printToPDF(String pdfFile)
Prints a home to a given PDF file. |
void |
setEnabled(HomeView.ActionType actionType,
boolean enabled)
Enables or disables the action matching actionType. |
void |
setTransferEnabled(boolean enabled)
Enables or disables transfer between components. |
void |
setUndoRedoName(String undoText,
String redoText)
Sets the NAME and SHORT_DESCRIPTION properties value
of undo and redo actions. |
void |
showAboutDialog()
Displays an about dialog. |
boolean |
showActionTipMessage(String actionTipKey)
Displays the tip matching actionTipKey and
returns true if the user chose not to display again the tip. |
void |
showError(String message)
Displays message in an error message box. |
String |
showExportToOBJDialog(String homeName)
Shows a content chooser save dialog to export a 3D home in a OBJ file. |
String |
showExportToSVGDialog(String homeName)
Shows a content chooser save dialog to export a home plan in a SVG file. |
String |
showImportFurnitureLibraryDialog()
Displays a content chooser open dialog to choose a furniture library. |
String |
showImportLanguageLibraryDialog()
Displays a content chooser open dialog to choose a language library. |
String |
showImportTexturesLibraryDialog()
Displays a content chooser open dialog to choose a textures library. |
void |
showMessage(String message)
Displays message in a message box. |
String |
showOpenDialog()
Displays a content chooser open dialog to choose the name of a home. |
Callable<Void> |
showPrintDialog()
Shows a print dialog to print the home displayed by this pane. |
String |
showPrintToPDFDialog(String homeName)
Shows a content chooser save dialog to print a home in a PDF file. |
String |
showSaveDialog(String homeName)
Displays a content chooser save dialog to choose the name of a home. |
String |
showStoreCameraDialog(String cameraName)
Displays a dialog that lets the user choose a name for the current camera. |
protected void |
updateOpenRecentHomeMenu(JMenu openRecentHomeMenu,
HomeController controller)
Updates openRecentHomeMenu from current recent homes in preferences. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HomePane(Home home,
UserPreferences preferences,
HomeController controller)
| Method Detail |
|---|
protected void updateOpenRecentHomeMenu(JMenu openRecentHomeMenu,
HomeController controller)
openRecentHomeMenu from current recent homes in preferences.
public void setEnabled(HomeView.ActionType actionType,
boolean enabled)
actionType.
setEnabled in interface HomeView
public void setUndoRedoName(String undoText,
String redoText)
NAME and SHORT_DESCRIPTION properties value
of undo and redo actions. If a parameter is null,
the properties will be reset to their initial values.
setUndoRedoName in interface HomeViewpublic void setTransferEnabled(boolean enabled)
setTransferEnabled in interface HomeViewpublic void detachView(View view)
view from home view.
detachView in interface HomeViewpublic void attachView(View view)
view to home view.
attachView in interface HomeViewpublic String showOpenDialog()
showOpenDialog in interface HomeViewpublic String showImportLanguageLibraryDialog()
showImportLanguageLibraryDialog in interface HomeViewpublic boolean confirmReplaceLanguageLibrary(String languageLibraryName)
confirmReplaceLanguageLibrary in interface HomeViewpublic String showImportFurnitureLibraryDialog()
showImportFurnitureLibraryDialog in interface HomeViewpublic boolean confirmReplaceFurnitureLibrary(String furnitureLibraryName)
confirmReplaceFurnitureLibrary in interface HomeViewpublic String showImportTexturesLibraryDialog()
showImportTexturesLibraryDialog in interface HomeViewpublic boolean confirmReplaceTexturesLibrary(String texturesLibraryName)
confirmReplaceTexturesLibrary in interface HomeViewpublic boolean confirmReplacePlugin(String pluginName)
confirmReplacePlugin in interface HomeViewpublic String showSaveDialog(String homeName)
showSaveDialog in interface HomeViewpublic void showError(String message)
message in an error message box.
showError in interface HomeViewpublic void showMessage(String message)
message in a message box.
showMessage in interface HomeViewpublic boolean showActionTipMessage(String actionTipKey)
actionTipKey and
returns true if the user chose not to display again the tip.
showActionTipMessage in interface HomeViewpublic HomeView.SaveAnswer confirmSave(String homeName)
confirmSave in interface HomeViewHomeView.SaveAnswer.SAVE
if the user chose to save home,
HomeView.SaveAnswer.DO_NOT_SAVE
if he doesn't want to save home,
or HomeView.SaveAnswer.CANCEL
if he doesn't want to continue current operation.public boolean confirmSaveNewerHome(String homeName)
confirmSaveNewerHome in interface HomeViewtrue if user confirmed to save.public boolean confirmExit()
confirmExit in interface HomeViewtrue if user confirmed to exit.public void showAboutDialog()
showAboutDialog in interface HomeViewpublic Callable<Void> showPrintDialog()
showPrintDialog in interface HomeViewnull if the user canceled print.
The call method of the returned task may throw a
RecorderException exception if print failed
or an InterruptedRecorderException
exception if it was interrupted.public String showPrintToPDFDialog(String homeName)
showPrintToPDFDialog in interface HomeView
public void printToPDF(String pdfFile)
throws RecorderException
printToPDF in interface HomeViewRecorderExceptionpublic String showExportToSVGDialog(String homeName)
showExportToSVGDialog in interface HomeView
public void exportToSVG(String svgFile)
throws RecorderException
exportToSVG in interface HomeViewRecorderExceptionpublic String showExportToOBJDialog(String homeName)
showExportToOBJDialog in interface HomeView
public void exportToOBJ(String objFile)
throws RecorderException
exportToOBJ in interface HomeViewRecorderExceptionpublic boolean confirmDeleteCatalogSelection()
confirmDeleteCatalogSelection in interface HomeViewtrue if user confirmed to delete.public String showStoreCameraDialog(String cameraName)
showStoreCameraDialog in interface HomeViewnull if the user canceled.public boolean isClipboardEmpty()
true if clipboard contains data that
components are able to handle.
isClipboardEmpty in interface HomeViewpublic void invokeLater(Runnable runnable)
runnable asynchronously in the thread
that manages toolkit events.
invokeLater in interface HomeView
|
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 |