Class SimpleRenderer
java.lang.Object
org.ghost4j.AbstractComponent
org.ghost4j.AbstractRemoteComponent
org.ghost4j.renderer.AbstractRemoteRenderer
org.ghost4j.renderer.SimpleRenderer
- All Implemented Interfaces:
Component, RemoteRenderer, Renderer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intDefine subsample antialiasing level (default is high).static final intstatic final intstatic final intstatic final intprivate intDefine renderer output resolution in DPI (default is 75dpi).Fields inherited from class AbstractRemoteComponent
maxProcessCount, processCountFields inherited from class AbstractComponent
supportedDocumentClasses -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintstatic voidMain method used to start the renderer in standalone 'slave mode'.voidsetAntialiasing(int antialiasing) voidsetResolution(int resolution) Methods inherited from class AbstractRemoteRenderer
remoteRender, render, render, startRemoteRendererMethods inherited from class AbstractRemoteComponent
buildJavaFork, getMaxProcessCount, getProcessCount, getRemoteComponent, isStandAloneModeSupported, setMaxProcessCount, startRemoteServer, waitForFreeProcessMethods inherited from class AbstractComponent
assertDeviceSupported, assertDocumentSupported, copySettings, extractSettings, isDeviceSupportedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Component
copySettings, extractSettingsMethods inherited from interface RemoteRenderer
setMaxProcessCount
-
Field Details
-
OPTION_ANTIALIASING_NONE
public static final int OPTION_ANTIALIASING_NONE- See Also:
-
OPTION_ANTIALIASING_LOW
public static final int OPTION_ANTIALIASING_LOW- See Also:
-
OPTION_ANTIALIASING_MEDIUM
public static final int OPTION_ANTIALIASING_MEDIUM- See Also:
-
OPTION_ANTIALIASING_HIGH
public static final int OPTION_ANTIALIASING_HIGH- See Also:
-
antialiasing
private int antialiasingDefine subsample antialiasing level (default is high). -
resolution
private int resolutionDefine renderer output resolution in DPI (default is 75dpi).
-
-
Constructor Details
-
SimpleRenderer
public SimpleRenderer()
-
-
Method Details
-
main
Main method used to start the renderer in standalone 'slave mode'.- Parameters:
args-- Throws:
RendererException
-
run
public List<PageRaster> run(Document document, int begin, int end) throws IOException, RendererException, DocumentException - Specified by:
runin classAbstractRemoteRenderer- Throws:
IOExceptionRendererExceptionDocumentException
-
getAntialiasing
public int getAntialiasing() -
setAntialiasing
public void setAntialiasing(int antialiasing) -
getResolution
public int getResolution() -
setResolution
public void setResolution(int resolution)
-