hep.aida.ref.plotter.style.registry
Interface IStyleStore

All Known Implementing Classes:
BaseStyleStore, XMLStyleStore

public interface IStyleStore

This interface can be implemented as "In-Memory" copy of persistent facility, or as keeping live connections and committing any change immediately.


Field Summary
static java.lang.String STYLE_PREVIEW_TYPE
           
static java.lang.String STYLE_STORE_NAME
           
 
Method Summary
 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.
 void commit()
          Write all information from Store to the undelying persistent facility: XML file, database, etc.
 IStyleRule createRule()
           
 java.lang.String[] getAllStyleNames()
           
 IStyleRule getRuleForStyle(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 moveUp(java.lang.String styleName)
           
 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)
           
 

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,
              hep.aida.IPlotterStyle style)

addStyle

void addStyle(java.lang.String styleName,
              hep.aida.IPlotterStyle style,
              IStyleRule rule)

getStyle

hep.aida.IPlotterStyle getStyle(java.lang.String styleName)

moveUp

void moveUp(java.lang.String styleName)

moveDown

void moveDown(java.lang.String styleName)

removeStyle

hep.aida.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.



jHepWork 1.1 (C) Chekanov