|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.batik.bridge.UpdateManager
This class provides features to manage the update of an SVG document.
Nested Class Summary | |
protected class |
UpdateManager.UpdateManagerRunHander
|
Field Summary | |
protected BridgeContext |
bridgeContext
The bridge context. |
protected org.w3c.dom.Document |
document
The document to manage. |
protected GraphicsNode |
graphicsNode
The GraphicsNode whose updates are to be tracked. |
protected java.util.List |
listeners
The listeners. |
protected RepaintManager |
repaintManager
The repaint manager. |
protected boolean |
running
Whether the update manager is running. |
protected ScriptingEnvironment |
scriptingEnvironment
The scripting environment. |
protected boolean |
started
Whether the manager was started. |
protected boolean |
suspendCalled
Whether the suspend() method was called. |
protected RunnableQueue |
updateRunnableQueue
The update RunnableQueue. |
protected UpdateTracker |
updateTracker
The update tracker. |
Constructor Summary | |
UpdateManager(BridgeContext ctx,
GraphicsNode gn,
org.w3c.dom.Document doc)
Creates a new update manager. |
Method Summary | |
void |
addUpdateManagerListener(UpdateManagerListener l)
Adds a UpdateManagerListener to this UpdateManager. |
protected RunnableQueue.RunHandler |
createRunHandler()
|
void |
dispatchSVGLoadEvent()
Dispatches an 'SVGLoad' event to the document. |
void |
dispatchSVGResizeEvent()
Dispatches an "SVGZoom" event to the document. |
void |
dispatchSVGScrollEvent()
Dispatches an "SVGZoom" event to the document. |
void |
dispatchSVGUnLoadEvent()
Dispatches an 'SVGUnLoad' event to the document. |
void |
dispatchSVGZoomEvent()
Dispatches an "SVGZoom" event to the document. |
protected void |
fireEvent(EventDispatcher.Dispatcher dispatcher,
java.lang.Object event)
|
BridgeContext |
getBridgeContext()
Returns the bridge context. |
org.w3c.dom.Document |
getDocument()
Returns the current Document. |
RepaintManager |
getRepaintManager()
Returns the repaint manager. |
ScriptingEnvironment |
getScriptingEnvironment()
Returns the scripting environment. |
RunnableQueue |
getUpdateRunnableQueue()
Returns the update RunnableQueue. |
UpdateTracker |
getUpdateTracker()
Returns the GVT update tracker. |
void |
interrupt()
Interrupts the manager tasks. |
static boolean |
isDynamicDocument(org.w3c.dom.Document doc)
Tells whether the given SVG document is dynamic. |
boolean |
isRunning()
Tells whether the update manager is currently running. |
void |
manageUpdates(ImageRenderer r)
Finishes the UpdateManager initialization. |
void |
removeUpdateManagerListener(UpdateManagerListener l)
Removes a UpdateManagerListener from this UpdateManager. |
protected void |
repaint()
Repaints the dirty areas, if needed. |
void |
resume()
Resumes the update manager. |
void |
suspend()
Suspends the update manager. |
void |
updateRendering(java.awt.geom.AffineTransform u2d,
boolean dbr,
java.awt.Shape aoi,
int width,
int height)
Updates the rendering buffer. |
protected void |
updateRendering(java.util.List areas)
Updates the rendering buffer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected BridgeContext bridgeContext
protected org.w3c.dom.Document document
protected RunnableQueue updateRunnableQueue
protected boolean running
protected boolean suspendCalled
protected java.util.List listeners
protected ScriptingEnvironment scriptingEnvironment
protected RepaintManager repaintManager
protected UpdateTracker updateTracker
protected GraphicsNode graphicsNode
protected boolean started
Constructor Detail |
public UpdateManager(BridgeContext ctx, GraphicsNode gn, org.w3c.dom.Document doc)
ctx
- The bridge context.gn
- GraphicsNode whose updates are to be tracked.doc
- The document to manage.Method Detail |
public static boolean isDynamicDocument(org.w3c.dom.Document doc)
public void dispatchSVGLoadEvent() throws java.lang.InterruptedException
java.lang.InterruptedException
public void dispatchSVGZoomEvent() throws java.lang.InterruptedException
java.lang.InterruptedException
public void dispatchSVGScrollEvent() throws java.lang.InterruptedException
java.lang.InterruptedException
public void dispatchSVGResizeEvent() throws java.lang.InterruptedException
java.lang.InterruptedException
public void manageUpdates(ImageRenderer r)
public BridgeContext getBridgeContext()
public RunnableQueue getUpdateRunnableQueue()
public RepaintManager getRepaintManager()
public UpdateTracker getUpdateTracker()
public org.w3c.dom.Document getDocument()
public ScriptingEnvironment getScriptingEnvironment()
public boolean isRunning()
public void suspend()
public void resume()
public void interrupt()
public void dispatchSVGUnLoadEvent()
public void updateRendering(java.awt.geom.AffineTransform u2d, boolean dbr, java.awt.Shape aoi, int width, int height)
u2d
- The user to device transform.dbr
- Whether the double buffering should be used.aoi
- The area of interest in the renderer space units.protected void updateRendering(java.util.List areas)
protected void repaint()
public void addUpdateManagerListener(UpdateManagerListener l)
public void removeUpdateManagerListener(UpdateManagerListener l)
protected void fireEvent(EventDispatcher.Dispatcher dispatcher, java.lang.Object event)
protected RunnableQueue.RunHandler createRunHandler()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |