public class SweetHome3D extends HomeApplication
-open followed by the path of a Sweet Home 3D file.com.eteks.sweethome3d.applicationFolders defines the folder(s) where private files
of Sweet Home 3D are stored. Private files include SH3F furniture library files stored in a subfolder named
furniture, SH3T textures library files stored in a subfolder named textures,
SH3L language library files stored in a subfolder named languages, SH3P application plug-in
files stored in a subfolder named plugins and SH3D files automatically created for recovery
purpose stored in a subfolder named recovery.furniture, textures, languages, plugins,
recovery subfolders don't exist, Sweet Home 3D will create it when needed.furniture, textures, languages, plugins
subfolders. Any of the cited folders may be an absolute path or a relative path to the folder
from which the program was launched.com.eteks.sweethome3d.preferencesFolder defines the folder where preferences
files (preferences.xml and the files depending on it) are stored. The user should have
write access rights on this folder otherwise the program won't be able to save his preferences
and the files he imported in furniture and textures catalogs. This folder may be the same as the
folder cited in com.eteks.sweethome3d.applicationFolders property.com.eteks.sweethome3d.singleInstance can be set to false to prevent Sweet Home 3D
from running as a single instance under operating systems different from Mac OS X. By default, it will try to
run as a single instance when possible.
com.eteks.sweethome3d.checkUpdates should be set to false
if application and library updates shouldn't be checked in Sweet Home 3D.
com.eteks.sweethome3d.resolutionScale can be set to a decimal value different from 1 to enlarge
or reduce user interface elements with a given factor. For example, 1.2 will make them look 20% larger.
com.eteks.sweethome3d.CSVEncoding can be set to change the default UTF-8 encoding used to export
furniture list to CVS text files.com.eteks.sweethome3d.no3D should be set to true
if 3D capabilities (including 3D view and importing furniture 3D models) shouldn't be used in Sweet Home 3D.
com.eteks.sweethome3d.j3d.checkOffScreenSupport should be set to false
when editing preferences, printing, creating a photo or creating a video always lead to a crash of Sweet Home 3D.
This means offscreen 3D images isn't supported by your video driver and Sweet Home 3D doesn't even succeed
to test this support. Setting this System property to false disables this test.com.eteks.sweethome3d.j3d.useOffScreen3DView can be set to true to force Sweet Home 3D
to use offscreen view for its 3D view and other 3D panels displayed at screen.com.eteks.sweethome3d.j3d.additionalLoaderClasses defines additional Java 3D
loader classes that Sweet Home 3D will use to read 3D models content
at formats not supported by default in Sweet Home 3D.The value of a System property can be set with the -D java option.
| Modifier | Constructor and Description |
|---|---|
protected |
SweetHome3D()
Creates a home application instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected HomeFrameController |
createHomeFrameController(Home home)
Returns a new instance of a home frame controller after
home
was created. |
protected ContentManager |
getContentManager()
Returns a content manager able to handle files.
|
HomeRecorder |
getHomeRecorder()
Returns a recorder able to write and read homes in files.
|
HomeRecorder |
getHomeRecorder(HomeRecorder.Type type)
Returns a recorder of a given
type able to write and read homes. |
java.lang.String |
getId()
Returns Sweet Home 3D application read from resources.
|
java.lang.String |
getName()
Returns the name of this application read from resources.
|
protected PluginManager |
getPluginManager()
Returns the plugin manager of this application.
|
UserPreferences |
getUserPreferences()
Returns user preferences stored in resources and local file system.
|
java.lang.String |
getVersion()
Returns information about the version of this application.
|
protected ViewFactory |
getViewFactory()
Returns a Swing view factory.
|
protected void |
init(java.lang.String[] args)
Inits application instance.
|
static void |
main(java.lang.String[] args)
Sweet Home 3D entry point.
|
protected void |
start(java.lang.String[] args)
Starts application once initialized and opens home passed in arguments.
|
addHome, addHomesListener, createHome, deleteHome, getHomes, removeHomesListenerprotected SweetHome3D()
public HomeRecorder getHomeRecorder()
getHomeRecorder in class HomeApplicationpublic HomeRecorder getHomeRecorder(HomeRecorder.Type type)
HomeApplicationtype able to write and read homes.
Subclasses may override this method to return a recorder matching type.getHomeRecorder in class HomeApplicationtype - a hint for the application to choose the returned recorder.public UserPreferences getUserPreferences()
getUserPreferences in class HomeApplicationprotected ContentManager getContentManager()
protected ViewFactory getViewFactory()
protected PluginManager getPluginManager()
public java.lang.String getId()
getId in class HomeApplicationpublic java.lang.String getName()
getName in class HomeApplicationpublic java.lang.String getVersion()
getVersion in class HomeApplicationpublic static void main(java.lang.String[] args)
args - may contain one .sh3d, .sh3x, .sh3f, .sh3t, .sh3l or .sh3p file to open or install,
following a -open option.protected void init(java.lang.String[] args)
protected HomeFrameController createHomeFrameController(Home home)
home
was created.protected void start(java.lang.String[] args)

© Copyright 2024 Space Mushrooms
Distributed under GNU General Public License