Gephi Toolkit Javadoc

org.gephi.preview
Class ProcessingRenderTargetBuilder.ProcessingTargetImpl

java.lang.Object
  extended by org.gephi.preview.AbstractRenderTarget
      extended by org.gephi.preview.ProcessingRenderTargetBuilder.ProcessingTargetImpl
All Implemented Interfaces:
ProcessingTarget, RenderTarget, LongTask
Enclosing class:
ProcessingRenderTargetBuilder

public static class ProcessingRenderTargetBuilder.ProcessingTargetImpl
extends AbstractRenderTarget
implements ProcessingTarget


Field Summary
 
Fields inherited from class org.gephi.preview.AbstractRenderTarget
cancel, progressTicket
 
Fields inherited from interface org.gephi.preview.api.RenderTarget
PDF_TARGET, PROCESSING_TARGET, SVG_TARGET
 
Constructor Summary
ProcessingRenderTargetBuilder.ProcessingTargetImpl()
           
ProcessingRenderTargetBuilder.ProcessingTargetImpl(int width, int height)
           
 
Method Summary
 PApplet getApplet()
          Returns the current applet if the mode is set to applet.
 PGraphics getGraphics()
          Returns the current graphics object.
 boolean isRedrawn()
          Returns true if the applet is finished redrawing
 void refresh()
          Redraw the Processing canvas
 void resetZoom()
          Resets the zoom level to default
 void zoomMinus()
          Zooms out
 void zoomPlus()
          Zooms in
 
Methods inherited from class org.gephi.preview.AbstractRenderTarget
cancel, getProgressTicket, isCancelled, setProgressTicket
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessingRenderTargetBuilder.ProcessingTargetImpl

public ProcessingRenderTargetBuilder.ProcessingTargetImpl()

ProcessingRenderTargetBuilder.ProcessingTargetImpl

public ProcessingRenderTargetBuilder.ProcessingTargetImpl(int width,
                                                          int height)
Method Detail

getGraphics

public PGraphics getGraphics()
Description copied from interface: ProcessingTarget
Returns the current graphics object. Use this method to draw to Processing. The PGRraphics object can be cast to PGraphicsJava2D.

Specified by:
getGraphics in interface ProcessingTarget
Returns:
the current graphics to draw to

getApplet

public PApplet getApplet()
Description copied from interface: ProcessingTarget
Returns the current applet if the mode is set to applet. If in headless mode returns null. Always use getGraphics() for drawing.

Specified by:
getApplet in interface ProcessingTarget
Returns:
the current applet or null if in headless mode

resetZoom

public void resetZoom()
Description copied from interface: ProcessingTarget
Resets the zoom level to default

Specified by:
resetZoom in interface ProcessingTarget

refresh

public void refresh()
Description copied from interface: ProcessingTarget
Redraw the Processing canvas

Specified by:
refresh in interface ProcessingTarget

isRedrawn

public boolean isRedrawn()
Description copied from interface: ProcessingTarget
Returns true if the applet is finished redrawing

Specified by:
isRedrawn in interface ProcessingTarget
Returns:
true if the applet is redrawn, false otherwise

zoomPlus

public void zoomPlus()
Description copied from interface: ProcessingTarget
Zooms in

Specified by:
zoomPlus in interface ProcessingTarget

zoomMinus

public void zoomMinus()
Description copied from interface: ProcessingTarget
Zooms out

Specified by:
zoomMinus in interface ProcessingTarget

Gephi Toolkit Javadoc