hep.aida.ref.plotter.style.registry
Interface IStyleStore
-
- All Known Implementing Classes:
- BaseStyleStore, XMLStyleStore
public interface IStyleStoreThis interface can be implemented as "In-Memory" copy of persistent facility, or as keeping live connections and committing any change immediately.
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringSTYLE_PREVIEW_TYPEstatic java.lang.StringSTYLE_STORE_NAME
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description voidaddStyle(java.lang.String styleName, IPlotterStyle style)voidaddStyle(java.lang.String styleName, IPlotterStyle style, IStyleRule rule)voidclose()Close all connections and free all resources.voidcommit()Write all information from Store to the undelying persistent facility: XML file, database, etc.IStyleRulecreateRule()java.lang.String[]getAllStyleNames()IStyleRulegetRuleForStyle(java.lang.String styleName)java.lang.StringgetStoreName()java.lang.StringgetStoreType()IPlotterStylegetStyle(java.lang.String styleName)booleanhasStyle(java.lang.String styleName)booleanisReadOnly()voidmoveDown(java.lang.String styleName)voidmoveUp(java.lang.String styleName)voidremoveRuleForStyle(java.lang.String styleName)IPlotterStyleremoveStyle(java.lang.String styleName)Remove Style and Rule associated with it from the StorevoidsetRuleForStyle(java.lang.String styleName, IStyleRule rule)
-
-
-
Field Detail
-
STYLE_PREVIEW_TYPE
static final java.lang.String STYLE_PREVIEW_TYPE
- See Also:
- Constant Field Values
-
STYLE_STORE_NAME
static final java.lang.String STYLE_STORE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getStoreName
java.lang.String getStoreName()
-
getStoreType
java.lang.String getStoreType()
-
isReadOnly
boolean isReadOnly()
-
hasStyle
boolean hasStyle(java.lang.String styleName)
-
addStyle
void addStyle(java.lang.String styleName, IPlotterStyle style)
-
addStyle
void addStyle(java.lang.String styleName, IPlotterStyle style, IStyleRule rule)
-
getStyle
IPlotterStyle getStyle(java.lang.String styleName)
-
moveUp
void moveUp(java.lang.String styleName)
-
moveDown
void moveDown(java.lang.String styleName)
-
removeStyle
IPlotterStyle removeStyle(java.lang.String styleName)
Remove Style and Rule associated with it from the Store
-
getAllStyleNames
java.lang.String[] getAllStyleNames()
-
createRule
IStyleRule createRule()
-
getRuleForStyle
IStyleRule getRuleForStyle(java.lang.String styleName)
-
setRuleForStyle
void setRuleForStyle(java.lang.String styleName, IStyleRule rule)
-
removeRuleForStyle
void removeRuleForStyle(java.lang.String styleName)
-
commit
void commit()
Write all information from Store to the undelying persistent facility: XML file, database, etc.
-
close
void close()
Close all connections and free all resources. Store is not usable after this method is executed.
-
-
DMelt 3.0 © DataMelt by jWork.ORG