Search this API

y.module.io
Class JPGOutput

java.lang.Object
  extended by y.module.YModule
      extended by y.module.io.IOHandlerModule
          extended by y.module.io.ImageOutputModule
              extended by y.module.io.JPGOutput

public class JPGOutput
extends ImageOutputModule

Exports a diagram to a JPG image. This module provides an option dialog that offers the possibility to modify the settings interactively. Configurable options are the viewport settings, image quality and tiling.

 
Your browser does not support SVG content.

Field Summary
 
Fields inherited from class y.module.io.ImageOutputModule
OPTION_SELECTION_PAINTING
 
Fields inherited from class y.module.io.IOHandlerModule
INPUT_MODE, OPTION_CLIP_GRAPH, OPTION_CLIP_TYPE, OPTION_CLIP_VIEW, OPTION_CUSTOM_HEIGHT, OPTION_CUSTOM_WIDTH, OPTION_GENERATE_HTML_TABLE, OPTION_MARGIN, OPTION_SCALING_FACTOR, OPTION_SIZE_TYPE, OPTION_SIZE_USE_CUSTOM_HEIGHT, OPTION_SIZE_USE_CUSTOM_WIDTH, OPTION_SIZE_USE_ORIGINAL, OPTION_TILE_COLUMN_COUNT, OPTION_TILE_ROW_COUNT, OPTION_TILING_ACTIVE, OUTPUT_MODE, TAB_TILING, TAB_VIEWPORT
 
Fields inherited from class y.module.YModule
FAILED, moduleListenerSupport, PRECONDITION_VIOLATED, SUCCESS
 
Constructor Summary
JPGOutput()
          Creates a new instance of JPGOutput
 
Method Summary
protected  ImageOutputHandler createImageOutputHandler()
          Returns an instance of JPGIOHandler.
protected  OptionHandler createOptionHandler()
          Creates an option handler for this class.
protected  void mainrun()
          Reads or writes a diagram in a specific format to a file.
 
Methods inherited from class y.module.io.ImageOutputModule
addRenderingOptions, configureRendering, configureTiling, configureViewPort, createIOHandler
 
Methods inherited from class y.module.io.IOHandlerModule
addTilingOptions, addViewPortOptions, adoptRenderingHints, adoptViewPortOptions, getIOHandler, getIOMode, getURL, setIOHandler, setIOMode, setURL
 
Methods inherited from class y.module.YModule
addModuleListener, createThread, dispose, exceptionHappened, fitGraph2DView, getAuthor, getDescription, getExitStatus, getGraph2D, getGraph2DView, getModuleListeners, getModuleName, getOptionHandler, getTimer, getView, init, initGuiFactory, isAbortable, isBackupRealizersEnabled, removeModuleListener, run, setBackupRealizersEnabled, setExitStatus, setGraph2D, setModuleName, setOptionHandler, start, startAsThread
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JPGOutput

public JPGOutput()
Creates a new instance of JPGOutput

Method Detail

createOptionHandler

protected OptionHandler createOptionHandler()
Description copied from class: YModule
Creates an option handler for this class. Module writers should override this method to provide an appropriate option handler.

Overrides:
createOptionHandler in class YModule
Returns:
The option handler for this module, null by default.

createImageOutputHandler

protected ImageOutputHandler createImageOutputHandler()
Returns an instance of JPGIOHandler.

Specified by:
createImageOutputHandler in class ImageOutputModule
Returns:
an ImageOutputHandler instance

mainrun

protected void mainrun()
Description copied from class: IOHandlerModule
Reads or writes a diagram in a specific format to a file.

Overrides:
mainrun in class IOHandlerModule

© Copyright 2000-2022,
yWorks GmbH.
All rights reserved.