public class FXDisplay extends G2Display
addBackground, areas, backgroundColor, changeLineArtAndText, colorThresholdToReplace, currentItem, currentTokenNumber, defaultSize, endItem, enhanceFractionalLines, imageIDtoName, invertHighlight, itemToRender, objectStoreRef, objectType, pageObjects, rawPageNumber, textColor, type, userHintsAF, ALT_BACKGROUND_COLOR, ALT_FOREGROUND_COLOR, BLENDMODE, CLIP, COLOR, COLOR_REPLACEMENT_THRESHOLD, CREATE_EPOS, CREATE_HTML, CREATE_PATTERN, CREATE_SVG, CREATE_T3, CUSTOM, CUSTOM_COLOR_HANDLER, CUSTOM_IMAGE_HANDLER, debugPaint, DISPLAY_IMAGE, DISPLAY_SCREEN, ENHANCE_FRACTIONAL_LINES, FILLCOLOR, FILLEDSHAPE, FILLOPACITY, FLUSH, FLUSH_ADDITIONAL_OBJECTS_ON_PAGE, FontMode, FONTSIZE, FOREGROUND_INCLUDE_LINEART, IMAGE, IsRealText, IsSVGMode, IsTextSelectable, LINEWIDTH, MARKER, PAGE_DECODING_FINISHED, PAINT_BACKGROUND, RESET_COLORSPACE, REUSED_IMAGE, SAVE_EMBEDDED_FONT, SHAPE, STRING, STROKE, STROKECOLOR, STROKEDSHAPE, STROKEOPACITY, TEXT, TEXT_STRUCTURE_CLOSE, TEXT_STRUCTURE_OPEN, TEXTCOLOR, TOKEN_NUMBER, TR, TRUETYPE, TYPE1C, TYPE3| Constructor and Description |
|---|
FXDisplay(int pageNumber,
boolean addBackground,
int defaultSize,
ObjectStore newObjectRef) |
FXDisplay(int pageNumber,
ObjectStore newObjectRef,
boolean isPrinting) |
| 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 |
drawCustom(Object value) |
void |
drawEmbeddedText(float[][] Trm,
int fontSize,
PdfGlyph embeddedGlyph,
Object javaGlyph,
int type,
GraphicsState gs,
double[] textScaling,
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 rawShape,
GraphicsState currentGraphicsState)
Used by FX to Draw shape
|
void |
drawUserContent(int[] type1,
Object[] obj,
Color[] colors) |
int[] |
getAreaAsArray(int i)
Returns a Rectangles X,Y,W,H as an Array of integers
Where 0 = x, 1 = y, 2 = w, 3 = h.
|
javafx.scene.Group |
getFXPane() |
int |
getObjectUnderneath(int x,
int y)
return number of image in display queue or -1 if none.
|
int |
isInsideImage(int x,
int y)
return number of image in display queue
or -1 if none
|
void |
paintBackground(Shape dirtyRegion) |
void |
saveImage(int id,
String des,
String type) |
protected static void |
setBlendMode(GraphicsState gs,
javafx.scene.Node n) |
protected void |
setFXParams(javafx.scene.shape.Shape currentShape,
int fillType,
GraphicsState currentGraphicsState,
boolean allowColorChange) |
void |
setInset(DynamicVectorRenderer currentDisplay,
int x,
int y) |
void |
setInset(int x,
int y) |
void |
setneedsHorizontalInvert(boolean b) |
void |
setneedsVerticalInvert(boolean b) |
void |
writeCustom(int section,
Object str)
Add output to correct area so we can assemble later.
|
checkColorThreshold, drawClip, drawShape, drawText, drawTR, eliminateHiddenText, getBooleanValue, getValue, init, isHTMLorSVG, paint, renderComposite, saveAdvanceWidth, serializeToByteArray, setG2, setGraphicsState, setScalingValues, setValuepublic FXDisplay(int pageNumber,
boolean addBackground,
int defaultSize,
ObjectStore newObjectRef)
public FXDisplay(int pageNumber,
ObjectStore newObjectRef,
boolean isPrinting)
public void setInset(DynamicVectorRenderer currentDisplay, int x, int y)
public void setInset(int x,
int y)
public void writeCustom(int section,
Object str)
writeCustom in interface DynamicVectorRendererwriteCustom in class BaseDisplaysection - key value defined in this interface or inheriting classstr - value for key settingspublic void drawAdditionalObjectsOverPage(int[] type,
Color[] colors,
Object[] obj)
throws PdfException
DynamicVectorRendererdrawAdditionalObjectsOverPage in interface DynamicVectorRendererdrawAdditionalObjectsOverPage in class BaseDisplayPdfExceptionpublic int drawImage(int pageNumber,
BufferedImage image,
GraphicsState currentGraphicsState,
boolean alreadyCached,
String name,
int previousUse)
DynamicVectorRendererdrawImage in interface DynamicVectorRendererdrawImage in class BaseDisplaypublic void drawShape(Object rawShape, GraphicsState currentGraphicsState)
DynamicVectorRendererdrawShape in interface DynamicVectorRendererdrawShape in class BaseDisplayprotected void setFXParams(javafx.scene.shape.Shape currentShape,
int fillType,
GraphicsState currentGraphicsState,
boolean allowColorChange)
public void drawCustom(Object value)
public void drawEmbeddedText(float[][] Trm,
int fontSize,
PdfGlyph embeddedGlyph,
Object javaGlyph,
int type,
GraphicsState gs,
double[] textScaling,
String glyf,
PdfFont currentFontData,
float glyfWidth)
drawEmbeddedText in interface DynamicVectorRendererdrawEmbeddedText in class BaseDisplayTrm - the Trm matrix (x,y is Trm[2][0], Trm[2][1]), other values are width (usually Trm[0][0] unless
rotated when could be Trm[0][1]) and height (usually Trm[1][1] or sometimes Trm[1][0]) Trm is defined in PDF
specificationfontSize - The font size of the drawn textembeddedGlyph - For displaying rendered testjavaGlyph - Is of type object used to draw texttype - The type of text renderinggs - The graphics state to usetextScaling - An array of text scalingglyf - Is of type String used to draw text in the ViewercurrentFontData - font of the current decoded page in the ViewerglyfWidth - The width of drawn textpublic javafx.scene.Group getFXPane()
protected static void setBlendMode(GraphicsState gs, javafx.scene.Node n)
public void paintBackground(Shape dirtyRegion)
paintBackground in class BaseDisplaypublic void setneedsVerticalInvert(boolean b)
public void setneedsHorizontalInvert(boolean b)
public int getObjectUnderneath(int x,
int y)
public int[] getAreaAsArray(int i)
public int isInsideImage(int x,
int y)
public void drawUserContent(int[] type1,
Object[] obj,
Color[] colors)
throws PdfException
PdfExceptionCopyright © 2017. All rights reserved.