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.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.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.
|
void |
showDefaultHomeFrame()
Shows a home frame, either a new one when no home is opened, or the last created home frame.
|
protected void |
start(java.lang.String[] args)
Starts application once initialized and opens home passed in arguments.
|
addHome, addHomesListener, createHome, deleteHome, getHomes, removeHomesListener
protected SweetHome3D()
public HomeRecorder getHomeRecorder()
getHomeRecorder
in class HomeApplication
public HomeRecorder getHomeRecorder(HomeRecorder.Type type)
HomeApplication
type
able to write and read homes.
Subclasses may override this method to return a recorder matching type
.getHomeRecorder
in class HomeApplication
type
- a hint for the application to choose the returned recorder.public UserPreferences getUserPreferences()
getUserPreferences
in class HomeApplication
protected ContentManager getContentManager()
protected ViewFactory getViewFactory()
protected PluginManager getPluginManager()
public java.lang.String getId()
getId
in class HomeApplication
public java.lang.String getName()
getName
in class HomeApplication
public java.lang.String getVersion()
getVersion
in class HomeApplication
public static void main(java.lang.String[] args)
args
- may contain one .sh3d, .sh3f 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)
public void showDefaultHomeFrame()
© Copyrights 2006-2014 eTeks - All rights reserved
Distributed under GNU General Public License