public class ChartDocument extends AbstractDocument implements Document, Observer
Modifier and Type | Class and Description |
---|---|
static class |
ChartDocument.RegisterPersistence |
Modifier and Type | Field and Description |
---|---|
protected EventListenerList |
listenerList |
change, PERSISTENCE_DEFINITION_NAME
ACCESS_DOCUMENT_AUTHORIZATION
Constructor and Description |
---|
ChartDocument()
documentContext will have information about UsedFields and other
information that may be needed.
|
ChartDocument(DocumentManager factory) |
ChartDocument(DocumentManager factory,
FeatureStore store) |
Modifier and Type | Method and Description |
---|---|
void |
addChartPropertiesChangeEventListener(ChartPropertiesChangeListener listener)
Manejador de eventos cuando hay un cambio en ChartProperties
|
GroupedCharts |
getChartService() |
ChartDocumentManager |
getDocumentManager() |
IWindow |
getMainWindow()
Return the main window associated to this document.
|
FeatureStore |
getStore() |
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
void |
refreshChartServiceData(ChartService cs) |
void |
refreshGroupedChartsData() |
void |
removeChartPropertiesChangeEventListener(ChartPropertiesChangeListener listener) |
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
void |
setChartService(GroupedCharts chartService) |
void |
setStore(FeatureStore store) |
void |
update(Observable observable,
Object notification)
Called whenever a
Observable object is changed and this
Observer has registered on it to receive notifications. |
addListener, addPropertyChangeListener, afterAdd, afterRemove, callCreateWindow, exportDocumentAsText, getComment, getCreationDate, getFactory, getMainComponent, getName, getOwner, getProject, getPropertiesWindow, getTypeName, getWindowLayout, isAvailable, isLocked, isModified, isTemporary, lock, raiseEventCreateWindow, registerPersistent, setComment, setCreationDate, setModified, setName, setOwner, setProject, setStateFromText, setWindowLayout, toString, unlock
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addListener, addPropertyChangeListener, afterAdd, afterRemove, getComment, getCreationDate, getFactory, getMainComponent, getName, getOwner, getProject, getPropertiesWindow, getTypeName, getWindowLayout, isAvailable, isLocked, isModified, isTemporary, lock, setComment, setCreationDate, setModified, setName, setOwner, setProject, setWindowLayout, unlock
protected EventListenerList listenerList
public ChartDocument()
public ChartDocument(DocumentManager factory)
public ChartDocument(DocumentManager factory, FeatureStore store)
public FeatureStore getStore()
public void setStore(FeatureStore store)
public void update(Observable observable, Object notification)
Observer
Observable
object is changed and this
Observer
has registered on it to receive notifications.
Implementations of this method will be called for each simple notification or, if a complex notification is created, for each of the child notifications.
In the latter case, don't assume any ordering in the notification between
this Observer
and other Observer
s listening to the same
Observable
.
In a complex notification scenario, if you want to receive only the
complex notification and not each of the child notifications, just
implement the ComplexObserver
and prepare this method
implementation to handle receiving DefaultComplexNotification
instances
as well as direct notification objects.
public void refreshGroupedChartsData()
public void loadFromState(PersistentState state) throws PersistenceException
Persistent
loadFromState
in interface Persistent
loadFromState
in class AbstractDocument
PersistenceException
public void refreshChartServiceData(ChartService cs) throws DataException
DataException
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
saveToState
in class AbstractDocument
PersistenceException
public IWindow getMainWindow()
Document
this.getFactory().getMainWindow(doc)
getMainWindow
in interface Document
getMainWindow
in class AbstractDocument
public void setChartService(GroupedCharts chartService)
public GroupedCharts getChartService()
public void addChartPropertiesChangeEventListener(ChartPropertiesChangeListener listener)
public void removeChartPropertiesChangeEventListener(ChartPropertiesChangeListener listener)
public ChartDocumentManager getDocumentManager()