org.eclipse.birt.chart.device
Class EmptyUpdateNotifier

java.lang.Object
  extended byorg.eclipse.birt.chart.device.EmptyUpdateNotifier
All Implemented Interfaces:
IUpdateNotifier

public class EmptyUpdateNotifier
extends java.lang.Object
implements IUpdateNotifier

A convenient empty update notifier doing nothing.


Constructor Summary
EmptyUpdateNotifier(Chart designModel, Chart runtimeModel)
          The constructor.
 
Method Summary
 java.lang.Object getContext(java.lang.Object key)
          Returns the object from context by given key.
 Chart getDesignTimeModel()
          Returns an instance of the chart design-time model
 Chart getRunTimeModel()
          Returns an instance of the chart run-time model for the last generated instance
 java.lang.Object peerInstance()
          Returns an instance of the peer (component) used for device-specific actions
 java.lang.Object putContext(java.lang.Object key, java.lang.Object value)
          Puts specified key,value to context.
 void regenerateChart()
          Requests the container to regenerate the chart using the design-time model
 java.lang.Object removeContext(java.lang.Object key)
          Removes the entry from context by given key if exists.
 void repaintChart()
          Requests the container to repaint the last generated chart
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmptyUpdateNotifier

public EmptyUpdateNotifier(Chart designModel,
                           Chart runtimeModel)
The constructor.

Parameters:
designModel -
runtimeModel -
Method Detail

regenerateChart

public void regenerateChart()
Description copied from interface: IUpdateNotifier
Requests the container to regenerate the chart using the design-time model

Specified by:
regenerateChart in interface IUpdateNotifier

repaintChart

public void repaintChart()
Description copied from interface: IUpdateNotifier
Requests the container to repaint the last generated chart

Specified by:
repaintChart in interface IUpdateNotifier

peerInstance

public java.lang.Object peerInstance()
Description copied from interface: IUpdateNotifier
Returns an instance of the peer (component) used for device-specific actions

Specified by:
peerInstance in interface IUpdateNotifier
Returns:
An instance of the peer (component) used for device-specific actions

getDesignTimeModel

public Chart getDesignTimeModel()
Description copied from interface: IUpdateNotifier
Returns an instance of the chart design-time model

Specified by:
getDesignTimeModel in interface IUpdateNotifier
Returns:
An instance of the chart design-time model

getRunTimeModel

public Chart getRunTimeModel()
Description copied from interface: IUpdateNotifier
Returns an instance of the chart run-time model for the last generated instance

Specified by:
getRunTimeModel in interface IUpdateNotifier
Returns:
An instance of the chart run-time model for the last generated instance

getContext

public java.lang.Object getContext(java.lang.Object key)
Description copied from interface: IUpdateNotifier
Returns the object from context by given key.

Specified by:
getContext in interface IUpdateNotifier
Parameters:
key - Key object.
Returns:

putContext

public java.lang.Object putContext(java.lang.Object key,
                                   java.lang.Object value)
Description copied from interface: IUpdateNotifier
Puts specified key,value to context.

Specified by:
putContext in interface IUpdateNotifier
Parameters:
key - Key object.
value - Value object.
Returns:
The previous value associated with given key.

removeContext

public java.lang.Object removeContext(java.lang.Object key)
Description copied from interface: IUpdateNotifier
Removes the entry from context by given key if exists.

Specified by:
removeContext in interface IUpdateNotifier
Parameters:
key - Key object.
Returns:
The previous value associated with given key


Copyright © 2005 Actuate Corp. All rights reserved.