|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
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(java.lang.String storeName)
|
Method Summary | |
---|---|
void |
addStoreEntry(StyleStoreEntry entry)
|
void |
addStyle(java.lang.String styleName,
hep.aida.IPlotterStyle style)
|
void |
addStyle(java.lang.String styleName,
hep.aida.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 |
java.lang.String[] |
getAllStyleNames()
|
java.util.Properties |
getProperties()
|
IStyleRule |
getRuleForStyle(java.lang.String styleName)
|
StyleStoreEntry |
getStoreEntry(java.lang.String styleName)
|
java.lang.String |
getStoreName()
|
java.lang.String |
getStoreType()
|
hep.aida.IPlotterStyle |
getStyle(java.lang.String styleName)
|
boolean |
hasStyle(java.lang.String styleName)
|
boolean |
isReadOnly()
|
void |
moveDown(java.lang.String styleName)
|
void |
moveDown(StyleStoreEntry entry)
|
void |
moveUp(java.lang.String styleName)
|
void |
moveUp(StyleStoreEntry entry)
|
void |
removeRuleForStyle(java.lang.String styleName)
|
hep.aida.IPlotterStyle |
removeStyle(java.lang.String styleName)
Remove Style and Rule associated with it from the Store |
void |
setRuleForStyle(java.lang.String styleName,
IStyleRule rule)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BaseStyleStore(java.lang.String storeName)
Method Detail |
---|
public java.util.Properties getProperties()
public StyleStoreEntry getStoreEntry(java.lang.String styleName)
public void addStoreEntry(StyleStoreEntry entry)
public void moveUp(java.lang.String styleName)
moveUp
in interface IStyleStore
public void moveUp(StyleStoreEntry entry)
public void moveDown(java.lang.String styleName)
moveDown
in interface IStyleStore
public void moveDown(StyleStoreEntry entry)
public java.lang.String getStoreName()
getStoreName
in interface IStyleStore
public java.lang.String getStoreType()
getStoreType
in interface IStyleStore
public boolean isReadOnly()
isReadOnly
in interface IStyleStore
public void addStyle(java.lang.String styleName, hep.aida.IPlotterStyle style)
addStyle
in interface IStyleStore
public void addStyle(java.lang.String styleName, hep.aida.IPlotterStyle style, IStyleRule rule)
addStyle
in interface IStyleStore
public boolean hasStyle(java.lang.String styleName)
hasStyle
in interface IStyleStore
public hep.aida.IPlotterStyle getStyle(java.lang.String styleName)
getStyle
in interface IStyleStore
public hep.aida.IPlotterStyle removeStyle(java.lang.String styleName)
IStyleStore
removeStyle
in interface IStyleStore
public java.lang.String[] getAllStyleNames()
getAllStyleNames
in interface IStyleStore
public IStyleRule createRule()
createRule
in interface IStyleStore
public IStyleRule getRuleForStyle(java.lang.String styleName)
getRuleForStyle
in interface IStyleStore
public void setRuleForStyle(java.lang.String styleName, IStyleRule rule)
setRuleForStyle
in interface IStyleStore
public void removeRuleForStyle(java.lang.String styleName)
removeRuleForStyle
in interface IStyleStore
public abstract void commit()
commit
in interface IStyleStore
public void close()
close
in interface IStyleStore
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |