|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.formaria.aria.style.StyleManager
org.formaria.editor.project.style.EditorStyleManager
public class EditorStyleManager
A subclass of the StyleManager intended to allow saving of styles on behalf of the editor-ide
Copyright (c) Formaria Ltd., 1998-2003
| Field Summary |
|---|
| Fields inherited from class org.formaria.aria.style.StyleManager |
|---|
baseStyle, currentProject, fontCache, fontMap, mergedStyles, styles, uiManagerAttributes |
| Constructor Summary | |
|---|---|
EditorStyleManager(Project project,
int styleCount)
|
|
| Method Summary | |
|---|---|
protected void |
addChildStyles(XmlElement eleRoot,
java.lang.String[] styleNames,
int start)
Add/derive a refinement of a style |
protected void |
addColorElement(XmlElement ele,
Style xstyle,
java.lang.String styleEleName,
int index,
Style parent)
Add an element that represents a colour to the style hierarchy |
protected void |
addFontStyles(XmlElement ele,
Style xstyle,
Style parent)
|
protected void |
addIntElement(XmlElement ele,
Style xstyle,
java.lang.String styleEleName,
int index,
Style parent)
|
protected XmlElement |
addStyle(XmlElement eleRoot,
java.lang.String fullName,
java.lang.String newName,
Style parent)
|
protected java.lang.String |
formatColor(int portion)
|
static StyleManager |
getInstance()
Deprecated. use EditorProjectManager.getStyleManager() instead |
java.lang.String[] |
getStylesArray()
Get an array of style names |
void |
load(java.lang.String file)
Load the styles from the specified file |
void |
removeAll()
|
void |
removeStyle(java.lang.String name)
|
void |
saveStyles(java.lang.String filename)
Save the styles to the specified file |
void |
setupSynthStyles()
Try to add the default styles for the Synth LAF |
| Methods inherited from class org.formaria.aria.style.StyleManager |
|---|
addStyle, getFont, getFont, getStyle, getStyle, getStyleParent, getStyles, hasStyle, loadStyle, mapUiMgrAttribute, reset, setFontMap, setUiMgrAttribute |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EditorStyleManager(Project project,
int styleCount)
| Method Detail |
|---|
public static StyleManager getInstance()
public void load(java.lang.String file)
load in class StyleManagerfile - the file name of the file to loadpublic void saveStyles(java.lang.String filename)
filename -
protected void addChildStyles(XmlElement eleRoot,
java.lang.String[] styleNames,
int start)
eleRoot - styleNames - start -
protected XmlElement addStyle(XmlElement eleRoot,
java.lang.String fullName,
java.lang.String newName,
Style parent)
protected void addColorElement(XmlElement ele,
Style xstyle,
java.lang.String styleEleName,
int index,
Style parent)
ele - the source elementxstyle - the stylestyleEleName - index - parent - protected java.lang.String formatColor(int portion)
protected void addFontStyles(XmlElement ele,
Style xstyle,
Style parent)
protected void addIntElement(XmlElement ele,
Style xstyle,
java.lang.String styleEleName,
int index,
Style parent)
public java.lang.String[] getStylesArray()
public void removeStyle(java.lang.String name)
public void removeAll()
public void setupSynthStyles()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||