de.cau.cs.kieler.kev.mapping.animations
Class SVGLoadingStatusListener

java.lang.Object
  extended by de.cau.cs.kieler.kev.mapping.animations.SVGLoadingStatusListener
All Implemented Interfaces:
org.apache.batik.swing.svg.SVGDocumentLoaderListener

public class SVGLoadingStatusListener
extends Object
implements org.apache.batik.swing.svg.SVGDocumentLoaderListener

This class implements the SVGDocumentLoaderListener. It returns the loadingStatus of the SVGDocument. return values for the getLoadingStatus() method are: -1 : not initilized! 0 : loading completed 1 : document loading cancelled 2 : document loading failed 3 : document loading started

Rating proposed yellow
(2010-02-17)

Field Summary
static byte LOADING_CANCELLED
          Return value for status LoadingCancelled.
static byte LOADING_COMPLETED
          Return value for status LoadingCompleted.
static byte LOADING_FAILED
          Return value for status LoadingFailed.
static byte LOADING_STARTED
          Return value for status LoadingStarted.
static byte NOT_INITILIZED
          This the default value, if no event was ever triggered for this listener.
 
Constructor Summary
SVGLoadingStatusListener()
           
 
Method Summary
 void documentLoadingCancelled(org.apache.batik.swing.svg.SVGDocumentLoaderEvent e)
          Documents SVG-document loadingstatus.
 void documentLoadingCompleted(org.apache.batik.swing.svg.SVGDocumentLoaderEvent e)
          Documents SVG-document loadingstatus.
 void documentLoadingFailed(org.apache.batik.swing.svg.SVGDocumentLoaderEvent e)
          Documents SVG-document loadingstatus.
 void documentLoadingStarted(org.apache.batik.swing.svg.SVGDocumentLoaderEvent e)
          Documents SVG-document loadingstatus.
 byte getLoadingStatus()
          Just returns the current loading status.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NOT_INITILIZED

public static final byte NOT_INITILIZED
This the default value, if no event was ever triggered for this listener.

See Also:
Constant Field Values

LOADING_STARTED

public static final byte LOADING_STARTED
Return value for status LoadingStarted.

See Also:
Constant Field Values

LOADING_COMPLETED

public static final byte LOADING_COMPLETED
Return value for status LoadingCompleted.

See Also:
Constant Field Values

LOADING_FAILED

public static final byte LOADING_FAILED
Return value for status LoadingFailed.

See Also:
Constant Field Values

LOADING_CANCELLED

public static final byte LOADING_CANCELLED
Return value for status LoadingCancelled.

See Also:
Constant Field Values
Constructor Detail

SVGLoadingStatusListener

public SVGLoadingStatusListener()
Method Detail

getLoadingStatus

public byte getLoadingStatus()
Just returns the current loading status.

Returns:
the current loading status.

documentLoadingCancelled

public void documentLoadingCancelled(org.apache.batik.swing.svg.SVGDocumentLoaderEvent e)
Documents SVG-document loadingstatus.

Specified by:
documentLoadingCancelled in interface org.apache.batik.swing.svg.SVGDocumentLoaderListener
Parameters:
e - the current SVGDocumentLoaderEvent

documentLoadingCompleted

public void documentLoadingCompleted(org.apache.batik.swing.svg.SVGDocumentLoaderEvent e)
Documents SVG-document loadingstatus.

Specified by:
documentLoadingCompleted in interface org.apache.batik.swing.svg.SVGDocumentLoaderListener
Parameters:
e - the current SVGDocumentLoaderEvent

documentLoadingFailed

public void documentLoadingFailed(org.apache.batik.swing.svg.SVGDocumentLoaderEvent e)
Documents SVG-document loadingstatus.

Specified by:
documentLoadingFailed in interface org.apache.batik.swing.svg.SVGDocumentLoaderListener
Parameters:
e - the current SVGDocumentLoaderEvent

documentLoadingStarted

public void documentLoadingStarted(org.apache.batik.swing.svg.SVGDocumentLoaderEvent e)
Documents SVG-document loadingstatus.

Specified by:
documentLoadingStarted in interface org.apache.batik.swing.svg.SVGDocumentLoaderListener
Parameters:
e - the current SVGDocumentLoaderEvent