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
public class SimpleRenderer extends AbstractRemoteRenderer
-
-
Field Summary
Fields Modifier and Type Field Description private int
antialiasing
Define subsample antialiasing level (default is high).static int
OPTION_ANTIALIASING_HIGH
static int
OPTION_ANTIALIASING_LOW
static int
OPTION_ANTIALIASING_MEDIUM
static int
OPTION_ANTIALIASING_NONE
private int
resolution
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 Constructor Description SimpleRenderer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getAntialiasing()
int
getResolution()
static void
main(java.lang.String[] args)
Main method used to start the renderer in standalone 'slave mode'.java.util.List<PageRaster>
run(Document document, int begin, int end)
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 Detail
-
OPTION_ANTIALIASING_NONE
public static final int OPTION_ANTIALIASING_NONE
- See Also:
- Constant Field Values
-
OPTION_ANTIALIASING_LOW
public static final int OPTION_ANTIALIASING_LOW
- See Also:
- Constant Field Values
-
OPTION_ANTIALIASING_MEDIUM
public static final int OPTION_ANTIALIASING_MEDIUM
- See Also:
- Constant Field Values
-
OPTION_ANTIALIASING_HIGH
public static final int OPTION_ANTIALIASING_HIGH
- See Also:
- Constant Field Values
-
antialiasing
private int antialiasing
Define subsample antialiasing level (default is high).
-
resolution
private int resolution
Define renderer output resolution in DPI (default is 75dpi).
-
-
Method Detail
-
main
public static void main(java.lang.String[] args) throws RendererException
Main method used to start the renderer in standalone 'slave mode'.- Parameters:
args
-- Throws:
RendererException
-
run
public java.util.List<PageRaster> run(Document document, int begin, int end) throws java.io.IOException, RendererException, DocumentException
- Specified by:
run
in classAbstractRemoteRenderer
- Throws:
java.io.IOException
RendererException
DocumentException
-
getAntialiasing
public int getAntialiasing()
-
setAntialiasing
public void setAntialiasing(int antialiasing)
-
getResolution
public int getResolution()
-
setResolution
public void setResolution(int resolution)
-
-