Klasse PThemeMainContext
java.lang.Object
com.processing.mnse.themetools.common.PThemeMainContext
The PThemeMainContext class.
context holds main objects and grants access to it.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
addTable
(PThemeTable table) adds a table from table name.static void
destroy()
Destroy.Find tool tip.getBase()
Gets the base.Gets the current mode.Gets the current editor.Gets the file watcher.int
getFontHeight
(Component c, Font font) Gets the font height.Gets the global font.boolean
Gets the is dirty flag.Gets the main panel.Gets the properties.Get the processing theme settingsGets the main table.Gets the theme file.boolean
Checks for info.void
Inits the.static PThemeMainContext
instance()
Instance.static boolean
isActive()
Checks if is active.void
loadHelp()
Load key words.void
Load key words.void
Reload file.void
Sets the base.void
Sets the editor.void
setFileWatcher
(PThemeFileWatcher fileWatcher) Sets the file watcher.void
setIsDirty
(boolean isdirty) Sets the is dirty flag.void
setMainPanel
(PThemePanel mainpanel) Sets the main panel.void
setProperties
(PThemeProperties properties) Sets the properties.void
Start file watcher.void
updates tables by corresponding properties.
-
Methodendetails
-
instance
Instance.- Gibt zurück:
- the main context instance
-
init
Inits the.- Parameter:
base
- the basethemeFile
- the theme file- Löst aus:
Exception
- the exception
-
getGlobalFont
Gets the global font.- Gibt zurück:
- the global font
-
getFontHeight
Gets the font height.- Parameter:
c
- the cfont
- the font- Gibt zurück:
- the font height
-
startFileWatcher
public void startFileWatcher()Start file watcher. -
getFileWatcher
Gets the file watcher.- Gibt zurück:
- the file watcher
-
setFileWatcher
Sets the file watcher.- Parameter:
fileWatcher
- the new file watcher
-
getIsDirty
public boolean getIsDirty()Gets the is dirty flag.- Gibt zurück:
- the is dirty flag
-
setIsDirty
public void setIsDirty(boolean isdirty) Sets the is dirty flag.- Parameter:
isdirty
- the new is dirty state
-
getProperties
Gets the properties.- Gibt zurück:
- the theme properties
-
setProperties
Sets the properties.- Parameter:
properties
- the new properties
-
getBase
Gets the base.- Gibt zurück:
- the processing base object
-
setBase
Sets the base.- Parameter:
base
- the new processing base object
-
getSettings
Get the processing theme settings- Gibt zurück:
- the current theme settings
-
getEditor
Gets the current editor.- Gibt zurück:
- the current editor
-
setEditor
Sets the editor.- Parameter:
editor
- the new editor
-
getTable
Gets the main table.- Parameter:
name
- of the table- Gibt zurück:
- the table for corresponding name
-
addTable
adds a table from table name.- Parameter:
table
- to be added
-
getMainPanel
Gets the main panel.- Gibt zurück:
- the main panel
-
setMainPanel
Sets the main panel.- Parameter:
mainpanel
- the new main panel
-
getThemeFile
Gets the theme file.- Gibt zurück:
- the theme file
-
getCurrentMode
Gets the current mode.- Gibt zurück:
- the current mode
-
reloadFile
Reload file.- Löst aus:
Exception
- the exception
-
updateTables
updates tables by corresponding properties.- Löst aus:
Exception
- the exception
-
loadKeyWords
public void loadKeyWords()Load key words. -
loadHelp
public void loadHelp()Load key words. -
hasInfo
Checks for info.- Parameter:
v
- the v- Gibt zurück:
- true, if successful
-
findToolTip
Find tool tip.- Parameter:
v
- the v- Gibt zurück:
- the string
-
isActive
public static boolean isActive()Checks if is active.- Gibt zurück:
- true, if is active
-
destroy
public static void destroy()Destroy.
-