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_NAMEACCESS_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, unlockclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddListener, 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, unlockprotected 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)
ObserverObservable 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 Observers 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
PersistentloadFromState in interface PersistentloadFromState in class AbstractDocumentPersistenceExceptionpublic void refreshChartServiceData(ChartService cs) throws DataException
DataExceptionpublic void saveToState(PersistentState state) throws PersistenceException
PersistentsaveToState in interface PersistentsaveToState in class AbstractDocumentPersistenceExceptionpublic IWindow getMainWindow()
Documentthis.getFactory().getMainWindow(doc)getMainWindow in interface DocumentgetMainWindow in class AbstractDocumentpublic void setChartService(GroupedCharts chartService)
public GroupedCharts getChartService()
public void addChartPropertiesChangeEventListener(ChartPropertiesChangeListener listener)
public void removeChartPropertiesChangeEventListener(ChartPropertiesChangeListener listener)
public ChartDocumentManager getDocumentManager()