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 TypMethodeBeschreibungvoidaddTable(PThemeTable table) adds a table from table name.static voiddestroy()Destroy.Find tool tip.getBase()Gets the base.Gets the current mode.Gets the current editor.Gets the file watcher.intgetFontHeight(Component c, Font font) Gets the font height.Gets the global font.booleanGets the is dirty flag.Gets the main panel.Gets the properties.Get the processing theme settingsGets the main table.Gets the theme file.booleanChecks for info.voidInits the.static PThemeMainContextinstance()Instance.static booleanisActive()Checks if is active.voidloadHelp()Load key words.voidLoad key words.voidReload file.voidSets the base.voidSets the editor.voidsetFileWatcher(PThemeFileWatcher fileWatcher) Sets the file watcher.voidsetIsDirty(boolean isdirty) Sets the is dirty flag.voidsetMainPanel(PThemePanel mainpanel) Sets the main panel.voidsetProperties(PThemeProperties properties) Sets the properties.voidStart file watcher.voidupdates 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.
-