org.enhydra.jawe.components.graph.actions.jped
Class SaveAsSVG
java.lang.Object
javax.swing.AbstractAction
org.enhydra.jawe.ActionBase
org.enhydra.jawe.components.graph.actions.jped.SaveAsSVG
- All Implemented Interfaces:
- javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable
- public class SaveAsSVG
- extends ActionBase
svg graph exporter. This action exports the current graph into
a vectorial svg file. The svg file is generated using batik, by
providing a SVGGraphics2D to the paint() method. You get vectors
but you have lost the structure (no grouping of visual elements).
Based on original work from enhydra team, with improvements to make it
real vectorial output (and not a encapsulated png image).
- Author:
- tchize
- See Also:
- Serialized Form
Nested classes inherited from class javax.swing.AbstractAction |
|
Fields inherited from class javax.swing.AbstractAction |
changeSupport, enabled |
Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
Methods inherited from class javax.swing.AbstractAction |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SaveAsSVG
public SaveAsSVG(JaWEComponent jawecomponent)
enableDisableAction
public void enableDisableAction()
- Specified by:
enableDisableAction
in class ActionBase
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
saveGraphAsSVG
public static void saveGraphAsSVG(java.lang.String file,
Graph graph)
throws java.lang.Exception
- Throws:
java.lang.Exception