Gephi Toolkit Javadoc

org.gephi.io.exporter.preview
Class SVGExporter

java.lang.Object
  extended by org.gephi.io.exporter.preview.SVGExporter
All Implemented Interfaces:
CharacterExporter, Exporter, VectorExporter, LongTask

public class SVGExporter
extends java.lang.Object
implements CharacterExporter, VectorExporter, LongTask

Class exporting the preview graph as an SVG image.

Author:
Jérémy Subtil

Constructor Summary
SVGExporter()
           
 
Method Summary
 boolean cancel()
          Cancel the task.
 boolean execute()
          Run the export process.
 Workspace getWorkspace()
          Returns the workspace from where data are exported
 boolean isScaleStrokes()
           
 void setProgressTicket(ProgressTicket progressTicket)
          Set the progress ticket for the long task.
 void setScaleStrokes(boolean scaleStrokes)
           
 void setWorkspace(Workspace workspace)
          Sets the worksapce from where to export data
 void setWriter(java.io.Writer writer)
          Set the writer where to export.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SVGExporter

public SVGExporter()
Method Detail

execute

public boolean execute()
Description copied from interface: Exporter
Run the export process.

Specified by:
execute in interface Exporter
Returns:
true if the operation is successful, false if it has been cancelled

cancel

public boolean cancel()
Description copied from interface: LongTask
Cancel the task. Returns true if the task has been sucessfully cancelled, false otherwise.

Specified by:
cancel in interface LongTask
Returns:
true if the task has been sucessfully cancelled, false otherwise

setProgressTicket

public void setProgressTicket(ProgressTicket progressTicket)
Description copied from interface: LongTask
Set the progress ticket for the long task. Can't be null.

Specified by:
setProgressTicket in interface LongTask
Parameters:
progressTicket - the progress ticket for this task

setWriter

public void setWriter(java.io.Writer writer)
Description copied from interface: CharacterExporter
Set the writer where to export.

Specified by:
setWriter in interface CharacterExporter
Parameters:
writer - the writer the exporter is to write

getWorkspace

public Workspace getWorkspace()
Description copied from interface: Exporter
Returns the workspace from where data are exported

Specified by:
getWorkspace in interface Exporter
Returns:
the workspace the data are to be exported

setWorkspace

public void setWorkspace(Workspace workspace)
Description copied from interface: Exporter
Sets the worksapce from where to export data

Specified by:
setWorkspace in interface Exporter
Parameters:
workspace - the workspace to export

setScaleStrokes

public void setScaleStrokes(boolean scaleStrokes)

isScaleStrokes

public boolean isScaleStrokes()

Gephi Toolkit Javadoc