|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecthep.aida.ref.plotter.style.registry.BaseStyleStore
public abstract class BaseStyleStore
This abstract class as "In-Memory" copy of persistent Store and implements transient style/rule manipulations. Exact "commit" operations are left to concrete implementations, like XMLStyleStore, DBStyleSTore, etc.
| Field Summary |
|---|
| Fields inherited from interface hep.aida.ref.plotter.style.registry.IStyleStore |
|---|
STYLE_PREVIEW_TYPE, STYLE_STORE_NAME |
| Constructor Summary | |
|---|---|
BaseStyleStore(String storeName)
|
|
| Method Summary | |
|---|---|
void |
addStoreEntry(StyleStoreEntry entry)
|
void |
addStyle(String styleName,
IPlotterStyle style)
|
void |
addStyle(String styleName,
IPlotterStyle style,
IStyleRule rule)
|
void |
close()
Close all connections and free all resources. |
abstract void |
commit()
Write all information from Store to the undelying persistent facility: XML file, database, etc. |
IStyleRule |
createRule()
This StyleStore creates IStyleRule based on the JEL library |
String[] |
getAllStyleNames()
|
Properties |
getProperties()
|
IStyleRule |
getRuleForStyle(String styleName)
|
StyleStoreEntry |
getStoreEntry(String styleName)
|
String |
getStoreName()
|
String |
getStoreType()
|
IPlotterStyle |
getStyle(String styleName)
|
boolean |
hasStyle(String styleName)
|
boolean |
isReadOnly()
|
void |
moveDown(String styleName)
|
void |
moveDown(StyleStoreEntry entry)
|
void |
moveUp(String styleName)
|
void |
moveUp(StyleStoreEntry entry)
|
void |
removeRuleForStyle(String styleName)
|
IPlotterStyle |
removeStyle(String styleName)
Remove Style and Rule associated with it from the Store |
void |
setRuleForStyle(String styleName,
IStyleRule rule)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BaseStyleStore(String storeName)
| Method Detail |
|---|
public Properties getProperties()
public StyleStoreEntry getStoreEntry(String styleName)
public void addStoreEntry(StyleStoreEntry entry)
public void moveUp(String styleName)
moveUp in interface IStyleStorepublic void moveUp(StyleStoreEntry entry)
public void moveDown(String styleName)
moveDown in interface IStyleStorepublic void moveDown(StyleStoreEntry entry)
public String getStoreName()
getStoreName in interface IStyleStorepublic String getStoreType()
getStoreType in interface IStyleStorepublic boolean isReadOnly()
isReadOnly in interface IStyleStore
public void addStyle(String styleName,
IPlotterStyle style)
addStyle in interface IStyleStore
public void addStyle(String styleName,
IPlotterStyle style,
IStyleRule rule)
addStyle in interface IStyleStorepublic boolean hasStyle(String styleName)
hasStyle in interface IStyleStorepublic IPlotterStyle getStyle(String styleName)
getStyle in interface IStyleStorepublic IPlotterStyle removeStyle(String styleName)
IStyleStore
removeStyle in interface IStyleStorepublic String[] getAllStyleNames()
getAllStyleNames in interface IStyleStorepublic IStyleRule createRule()
createRule in interface IStyleStorepublic IStyleRule getRuleForStyle(String styleName)
getRuleForStyle in interface IStyleStore
public void setRuleForStyle(String styleName,
IStyleRule rule)
setRuleForStyle in interface IStyleStorepublic void removeRuleForStyle(String styleName)
removeRuleForStyle in interface IStyleStorepublic abstract void commit()
commit in interface IStyleStorepublic void close()
close in interface IStyleStorepublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||