com.jinsight.svg
Class SVGEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--com.jinsight.svg.SVGEvent
All Implemented Interfaces:
java.io.Serializable

public class SVGEvent
extends java.util.EventObject

An event which indicates that an SVG line is about to be appended to the SVG character stream. This event is dispatched to registered SVGListener objects before an SVG encoded line is appended to the output string, allowing modifications to be applied to the SVG content.

See Also:
SVGListener, Serialized Form

Fields inherited from class java.util.EventObject
source
 
Constructor Summary
SVGEvent(SVGGraphics svg)
          The SVGEvent constructor.
 
Method Summary
 java.lang.Object getSource()
          Returns a reference to the SVGGraphics object.
 java.lang.String getSVGLine()
          Gets the last SVG line processed.
 void setSVGLine(java.lang.String svgLine)
          Sets the SVG line.
 
Methods inherited from class java.util.EventObject
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SVGEvent

public SVGEvent(SVGGraphics svg)
The SVGEvent constructor.
Parameters:
svg - An SVGGraphics object.
See Also:
SVGGraphics
Method Detail

getSource

public java.lang.Object getSource()
Returns a reference to the SVGGraphics object.
Overrides:
getSource in class java.util.EventObject
Returns:
An SVGGraphics object.
See Also:
SVGGraphics

setSVGLine

public void setSVGLine(java.lang.String svgLine)
Sets the SVG line. This method must be invoked from inside the method lineProcessed(SVGEvent evt) of SVGListener objects if a processed SVG line is modified before it is appended to the output string.
Parameters:
xml - The modified SVG xml line.
See Also:
getSVGLine(), SVGListener

getSVGLine

public java.lang.String getSVGLine()
Gets the last SVG line processed. This method must be invoked from inside the method lineProcessed(SVGEvent evt) of SVGListener objects. This line can be modified and resubmitted using the setSVGLine(String svgLine) method.
Returns:
The last SVG line processed.
See Also:
setSVGLine(java.lang.String), SVGListener