public interface DynamicVectorRenderer
| Modifier and Type | Field and Description |
|---|---|
static int |
AF |
static int |
ALT_BACKGROUND_COLOR
Keys for use with set value
|
static int |
ALT_FOREGROUND_COLOR |
static int |
BLENDMODE |
static int |
CLIP |
static int |
COLOR |
static int |
COLOR_REPLACEMENT_THRESHOLD |
static int |
CREATE_EPOS |
static int |
CREATE_HTML |
static int |
CREATE_PATTERN |
static int |
CREATE_SVG |
static int |
CREATE_T3 |
static int |
CUSTOM |
static int |
CUSTOM_COLOR_HANDLER |
static int |
CUSTOM_IMAGE_HANDLER |
static boolean |
debugPaint
flag to enable debugging of painting
|
static int |
DISPLAY_IMAGE |
static int |
DISPLAY_SCREEN
various types of DVR which we have
|
static int |
ENHANCE_FRACTIONAL_LINES |
static int |
FILLCOLOR |
static int |
FILLEDSHAPE |
static int |
FILLOPACITY |
static int |
FLUSH |
static int |
FLUSH_ADDITIONAL_OBJECTS_ON_PAGE |
static int |
FontMode |
static int |
FONTSIZE |
static int |
FOREGROUND_INCLUDE_LINEART |
static int |
IMAGE |
static int |
IsRealText |
static int |
IsSVGMode |
static int |
IsTextSelectable |
static int |
LINEWIDTH |
static int |
MARKER |
static int |
PAGE_DECODING_FINISHED |
static int |
PAINT_BACKGROUND |
static int |
RESET_COLORSPACE |
static int |
REUSED_IMAGE |
static int |
SAVE_EMBEDDED_FONT |
static int |
SHAPE |
static int |
STRING |
static int |
STROKE |
static int |
STROKECOLOR |
static int |
STROKEDSHAPE |
static int |
STROKEOPACITY |
static int |
TEXT |
static int |
TEXT_STRUCTURE_CLOSE |
static int |
TEXT_STRUCTURE_OPEN |
static int |
TEXTCOLOR |
static int |
TOKEN_NUMBER |
static int |
TR |
static int |
TRUETYPE |
static int |
TYPE1C |
static int |
TYPE3 |
| Modifier and Type | Method and Description |
|---|---|
void |
drawAdditionalObjectsOverPage(int[] type,
Color[] colors,
Object[] obj)
Method to add Shape, Text or image to main display on page over PDF - will be flushed on redraw
|
void |
drawClip(GraphicsState currentGraphicsState,
Shape defaultClip,
boolean alwaysApply) |
void |
drawEmbeddedText(float[][] Trm,
int fontSize,
PdfGlyph embeddedGlyph,
Object javaGlyph,
int type,
GraphicsState gs,
double[] at,
String glyf,
PdfFont currentFontData,
float glyfWidth)
Store glyph info
|
int |
drawImage(int pageNumber,
BufferedImage image,
GraphicsState currentGraphicsState,
boolean alreadyCached,
String name,
int previousUse)
save image in array to draw
|
void |
drawShape(Object currentShape,
GraphicsState currentGraphicsState)
Used by FX to Draw shape
|
void |
drawShape(PdfShape currentShape,
GraphicsState currentGraphicsState,
int cmd)
Used by Swing to Draw shape
|
void |
drawText(float[][] Trm,
String text,
GraphicsState currentGraphicsState,
float x,
float y,
Font javaFont)
Saves text object with attributes for rendering
|
void |
drawTR(int value) |
void |
eliminateHiddenText(Shape currentShape,
GraphicsState gs,
int segmentCount,
boolean ignoreScaling) |
boolean |
getBooleanValue(int key)
Generic method to access boolean flags
|
int |
getValue(int key)
Generic method to access int values
|
void |
init(int width,
int height,
Color backgroundColor)
Set page values
|
boolean |
isHTMLorSVG()
Allows generic code to identify if it is doing HTML/SVG conversion
|
void |
paint(Rectangle[] highlights,
AffineTransform viewScaling,
Rectangle userAnnot)
Renders all the objects onto the g2 surface for screen display
|
void |
saveAdvanceWidth(int fontObjID,
String glyphName,
int potentialWidth)
Passes in width value for font glyphs - only used in HTML5 and SVG conversion
|
byte[] |
serializeToByteArray(Set<String> fontsAlreadyOnClient)
Turn object into byte[] so we can move across
this way should be much faster than the stadard Java serialise.
|
void |
setG2(Graphics2D g2)
Used to pass in Graphics2D for all versions
|
void |
setGraphicsState(int fillType,
float value,
int BM)
save opacity settings
|
void |
setScalingValues(double cropX,
double cropH,
float scaling) |
void |
setValue(int key,
int i)
Generic method to set int values
|
void |
writeCustom(int key,
Object obj)
Generic method to set any values as an object
|
static final int FontMode
static final int TEXT
static final int SHAPE
static final int IMAGE
static final int TRUETYPE
static final int TYPE1C
static final int TYPE3
static final int CLIP
static final int COLOR
static final int AF
static final int TEXTCOLOR
static final int FILLCOLOR
static final int STROKECOLOR
static final int STROKE
static final int TR
static final int STRING
static final int STROKEOPACITY
static final int FILLOPACITY
static final int STROKEDSHAPE
static final int FILLEDSHAPE
static final int FONTSIZE
static final int LINEWIDTH
static final int CUSTOM
static final int REUSED_IMAGE
static final int BLENDMODE
static final int SAVE_EMBEDDED_FONT
static final int TEXT_STRUCTURE_OPEN
static final int TEXT_STRUCTURE_CLOSE
static final int IsSVGMode
static final int IsTextSelectable
static final int IsRealText
static final int MARKER
static final boolean debugPaint
static final int DISPLAY_SCREEN
static final int DISPLAY_IMAGE
static final int CREATE_PATTERN
static final int CREATE_HTML
static final int CREATE_SVG
static final int CREATE_EPOS
static final int CREATE_T3
static final int ALT_BACKGROUND_COLOR
static final int ALT_FOREGROUND_COLOR
static final int FOREGROUND_INCLUDE_LINEART
static final int COLOR_REPLACEMENT_THRESHOLD
static final int ENHANCE_FRACTIONAL_LINES
static final int TOKEN_NUMBER
static final int CUSTOM_IMAGE_HANDLER
static final int CUSTOM_COLOR_HANDLER
static final int FLUSH
static final int FLUSH_ADDITIONAL_OBJECTS_ON_PAGE
static final int PAINT_BACKGROUND
static final int PAGE_DECODING_FINISHED
static final int RESET_COLORSPACE
void setG2(Graphics2D g2)
g2 - void eliminateHiddenText(Shape currentShape, GraphicsState gs, int segmentCount, boolean ignoreScaling)
void paint(Rectangle[] highlights, AffineTransform viewScaling, Rectangle userAnnot)
highlights - viewScaling - userAnnot - void drawText(float[][] Trm,
String text,
GraphicsState currentGraphicsState,
float x,
float y,
Font javaFont)
Trm - text - currentGraphicsState - x - y - javaFont - void init(int width,
int height,
Color backgroundColor)
width - height - backgroundColor - int drawImage(int pageNumber,
BufferedImage image,
GraphicsState currentGraphicsState,
boolean alreadyCached,
String name,
int previousUse)
pageNumber - image - currentGraphicsState - alreadyCached - name - previousUse - void drawShape(PdfShape currentShape, GraphicsState currentGraphicsState, int cmd)
currentShape - currentGraphicsState - cmd - void drawShape(Object currentShape, GraphicsState currentGraphicsState)
currentShape - currentGraphicsState - void setGraphicsState(int fillType,
float value,
int BM)
fillType - value - BM - void drawAdditionalObjectsOverPage(int[] type,
Color[] colors,
Object[] obj)
throws PdfException
type - colors - obj - PdfExceptionvoid drawTR(int value)
value - void drawClip(GraphicsState currentGraphicsState, Shape defaultClip, boolean alwaysApply)
currentGraphicsState - defaultClip - alwaysApply - void drawEmbeddedText(float[][] Trm,
int fontSize,
PdfGlyph embeddedGlyph,
Object javaGlyph,
int type,
GraphicsState gs,
double[] at,
String glyf,
PdfFont currentFontData,
float glyfWidth)
Trm - fontSize - embeddedGlyph - javaGlyph - type - gs - at - glyf - currentFontData - glyfWidth - void setScalingValues(double cropX,
double cropH,
float scaling)
cropX - cropH - scaling - byte[] serializeToByteArray(Set<String> fontsAlreadyOnClient) throws IOException
NOT PART OF API and subject to change (DO NOT USE)
fontsAlreadyOnClient - IOExceptionvoid writeCustom(int key,
Object obj)
key - key value defined in this interface or inheriting classobj - value for key settingsvoid setValue(int key,
int i)
key - key value defined in this interface or inheriting classi - value for key settingsint getValue(int key)
key - - int key value defined in this interface or inheriting classboolean getBooleanValue(int key)
key - - int key value defined in this interface or inheriting classvoid saveAdvanceWidth(int fontObjID,
String glyphName,
int potentialWidth)
fontObjID - glyphName - potentialWidth - boolean isHTMLorSVG()
Copyright © 2017. All rights reserved.