|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.diva.DrawFigureStore
public class DrawFigureStore
Implementation of a StoreSource
as a FigureStore
to save
and restore figures from an application specific backing store file using
a StoreControlFrame
.
Field Summary | |
---|---|
protected DrawActions |
drawActions
The object that controls the graphical figures. |
protected DrawFigureFactory |
figureFactory
Factory for creating figures. |
Constructor Summary | |
---|---|
DrawFigureStore(String application,
String storeFile,
String tagName)
Create an instance. |
Method Summary | |
---|---|
void |
activate()
Make the store control UI active |
String |
getApplicationName()
Return the application name associated with this store |
String |
getStoreName()
Return the file store name associated with this store |
String |
getTagName()
Return the root element tag associated with this store |
void |
restoreState(Element rootElement)
Restore a previous saved state to the DrawActions
object. |
void |
saveState(Element rootElement)
Save all the figures currently held by the DrawActions to the
given root element. |
void |
setDrawActions(DrawActions drawActions)
Set the instance of DrawActions to use with this store |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected DrawActions drawActions
protected DrawFigureFactory figureFactory
Constructor Detail |
---|
public DrawFigureStore(String application, String storeFile, String tagName)
Method Detail |
---|
public void saveState(Element rootElement)
DrawActions
to the
given root element.
saveState
in interface StoreSource
public void restoreState(Element rootElement)
DrawActions
object. These are then repainted by any GraphicsPanes that are
associated with the DrawActions
instance.
restoreState
in interface StoreSource
public String getApplicationName()
getApplicationName
in interface StoreSource
public String getStoreName()
getStoreName
in interface StoreSource
public String getTagName()
getTagName
in interface StoreSource
public void setDrawActions(DrawActions drawActions)
DrawActions
to use with this store
setDrawActions
in interface FigureStore
public void activate()
activate
in interface FigureStore
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |