public class DrawFigureStore extends Object implements FigureStore, StoreSource
StoreSource
as a FigureStore
to save
and restore figures from an application specific backing store file using
a StoreControlFrame
.Modifier and Type | Field and Description |
---|---|
protected DrawActions |
drawActions
The object that controls the graphical figures.
|
protected DrawFigureFactory |
figureFactory
Factory for creating figures.
|
Constructor and Description |
---|
DrawFigureStore(String application,
String storeFile,
String tagName)
Create an instance.
|
Modifier and Type | Method and Description |
---|---|
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 |
protected DrawActions drawActions
protected DrawFigureFactory figureFactory
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 storesetDrawActions
in interface FigureStore
public void activate()
activate
in interface FigureStore
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.