Package org.ghost4j.renderer
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 int
Define subsample antialiasing level (default is high).static final int
static final int
static final int
static final int
private int
Define renderer output resolution in DPI (default is 75dpi).Fields inherited from class org.ghost4j.AbstractRemoteComponent
maxProcessCount, processCount
Fields inherited from class org.ghost4j.AbstractComponent
supportedDocumentClasses
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
int
static void
Main method used to start the renderer in standalone 'slave mode'.void
setAntialiasing
(int antialiasing) void
setResolution
(int resolution) Methods inherited from class org.ghost4j.renderer.AbstractRemoteRenderer
remoteRender, render, render, startRemoteRenderer
Methods inherited from class org.ghost4j.AbstractRemoteComponent
buildJavaFork, getMaxProcessCount, getProcessCount, getRemoteComponent, isStandAloneModeSupported, setMaxProcessCount, startRemoteServer, waitForFreeProcess
Methods inherited from class org.ghost4j.AbstractComponent
assertDeviceSupported, assertDocumentSupported, copySettings, extractSettings, isDeviceSupported
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ghost4j.Component
copySettings, extractSettings
Methods inherited from interface org.ghost4j.renderer.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:
run
in classAbstractRemoteRenderer
- Throws:
IOException
RendererException
DocumentException
-
getAntialiasing
public int getAntialiasing() -
setAntialiasing
public void setAntialiasing(int antialiasing) -
getResolution
public int getResolution() -
setResolution
public void setResolution(int resolution)
-