|
Sweet Home 3D 3.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HomeView
The main view that displays a home.
Nested Class Summary | |
---|---|
static class |
HomeView.ActionType
The actions proposed by the view to user. |
static class |
HomeView.SaveAnswer
|
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(java.lang.String furnitureLibraryName)
Displays a dialog that lets user choose whether he wants to overwrite an existing furniture library or not. |
boolean |
confirmReplaceLanguageLibrary(java.lang.String languageLibraryName)
Displays a dialog that lets user choose whether he wants to overwrite an existing language library or not. |
boolean |
confirmReplacePlugin(java.lang.String pluginName)
Displays a dialog that lets user choose whether he wants to overwrite an existing plug-in or not. |
boolean |
confirmReplaceTexturesLibrary(java.lang.String texturesLibraryName)
Displays a dialog that lets user choose whether he wants to overwrite an existing textures library or not. |
HomeView.SaveAnswer |
confirmSave(java.lang.String homeName)
Displays a dialog that lets user choose whether he wants to save the current home or not. |
boolean |
confirmSaveNewerHome(java.lang.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(java.lang.String objFile)
Exports the 3D home objects to a given OBJ file. |
void |
exportToSVG(java.lang.String svgName)
Exports the plan objects to a given SVG file. |
void |
invokeLater(java.lang.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(java.lang.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(java.lang.String undoText,
java.lang.String redoText)
Sets the name and tool tip of undo and redo actions. |
void |
showAboutDialog()
Displays an about dialog. |
boolean |
showActionTipMessage(java.lang.String actionTipKey)
Displays the tip matching actionTipKey and
returns true if the user chose not to display again the tip. |
void |
showError(java.lang.String message)
Displays message in an error message box. |
java.lang.String |
showExportToOBJDialog(java.lang.String homeName)
Shows a content chooser save dialog to export a 3D home in a OBJ file. |
java.lang.String |
showExportToSVGDialog(java.lang.String name)
Shows a content chooser save dialog to export a home plan in a SVG file. |
java.lang.String |
showImportFurnitureLibraryDialog()
Displays a content chooser open dialog to choose a furniture library. |
java.lang.String |
showImportLanguageLibraryDialog()
Displays a content chooser open dialog to choose a language library. |
java.lang.String |
showImportTexturesLibraryDialog()
Displays a content chooser open dialog to choose a textures library. |
void |
showMessage(java.lang.String message)
Displays message in a message box. |
java.lang.String |
showOpenDialog()
Displays a content chooser open dialog to choose the name of a home. |
java.util.concurrent.Callable<java.lang.Void> |
showPrintDialog()
Shows a print dialog to print the home displayed by this pane. |
java.lang.String |
showPrintToPDFDialog(java.lang.String homeName)
Shows a content chooser save dialog to print a home in a PDF file. |
java.lang.String |
showSaveDialog(java.lang.String homeName)
Displays a content chooser save dialog to choose the name of a home. |
java.lang.String |
showStoreCameraDialog(java.lang.String cameraName)
Displays a dialog that lets the user choose a name for the current camera. |
Method Detail |
---|
void setEnabled(HomeView.ActionType actionType, boolean enabled)
actionType
.
void setUndoRedoName(java.lang.String undoText, java.lang.String redoText)
null
,
the properties will be reset to their initial values.
void setTransferEnabled(boolean enabled)
void detachView(View view)
view
from home view.
void attachView(View view)
view
to home view.
java.lang.String showOpenDialog()
java.lang.String showImportLanguageLibraryDialog()
boolean confirmReplaceLanguageLibrary(java.lang.String languageLibraryName)
java.lang.String showImportFurnitureLibraryDialog()
boolean confirmReplaceFurnitureLibrary(java.lang.String furnitureLibraryName)
java.lang.String showImportTexturesLibraryDialog()
boolean confirmReplaceTexturesLibrary(java.lang.String texturesLibraryName)
boolean confirmReplacePlugin(java.lang.String pluginName)
java.lang.String showSaveDialog(java.lang.String homeName)
HomeView.SaveAnswer confirmSave(java.lang.String homeName)
HomeView.SaveAnswer.SAVE
if user chose to save home,
HomeView.SaveAnswer.DO_NOT_SAVE
if user don't want to save home,
or HomeView.SaveAnswer.CANCEL
if doesn't want to continue current operation.boolean confirmSaveNewerHome(java.lang.String homeName)
true
if user confirmed to save.boolean confirmDeleteCatalogSelection()
true
if user confirmed to delete.boolean confirmExit()
true
if user confirmed to exit.void showError(java.lang.String message)
message
in an error message box.
void showMessage(java.lang.String message)
message
in a message box.
boolean showActionTipMessage(java.lang.String actionTipKey)
actionTipKey
and
returns true
if the user chose not to display again the tip.
void showAboutDialog()
java.util.concurrent.Callable<java.lang.Void> showPrintDialog()
null
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.
java.lang.String showPrintToPDFDialog(java.lang.String homeName)
void printToPDF(java.lang.String pdfFile) throws RecorderException
RecorderException
java.lang.String showExportToSVGDialog(java.lang.String name)
void exportToSVG(java.lang.String svgName) throws RecorderException
RecorderException
java.lang.String showExportToOBJDialog(java.lang.String homeName)
void exportToOBJ(java.lang.String objFile) throws RecorderException
RecorderException
java.lang.String showStoreCameraDialog(java.lang.String cameraName)
boolean isClipboardEmpty()
true
if clipboard contains data that
components are able to handle.
void invokeLater(java.lang.Runnable runnable)
runnable
asynchronously in the thread
that manages toolkit events.
|
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 |