public class IcePDFPageImg extends ZPDFPage
Modifier and Type | Field and Description |
---|---|
AffineTransform |
at
For internal use.
|
Object |
interpolationMethod
For internal use.
|
double |
trueCoef
For internal use.
|
ar, pc, scaleFactor, zoomSensitive
bColor, borderColor, cursorInsideFColor, HSVb
alphaC, coef, color, cursorInsideColor, ENTERED_GLYPH, EXITED_GLYPH, fColor, HSV, NO_CURSOR_EVENT, orient, sensit, size, stickedTo, stroke, visible, vx, vy, vz
acO
Constructor and Description |
---|
IcePDFPageImg(Document pdfDoc,
int pageNumber)
Instantiate a PDF page as a ZVTM glyph, rendered at a resolution that matches the default scale for that page.
|
IcePDFPageImg(double x,
double y,
int z,
Document pdfDoc,
int pageNumber)
Instantiate a PDF page as a ZVTM glyph, rendered at a resolution that matches the default scale for that page.
|
IcePDFPageImg(double x,
double y,
int z,
Document pdfDoc,
int pageNumber,
float detailFactor,
double scaleFactor)
Instantiate a PDF page as a ZVTM glyph, rendered at a resolution that matches the default scale for that page multiplied by detailFactor.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Cloning this PDF page glyph.
|
void |
draw(Graphics2D g,
int vW,
int vH,
int i,
Stroke stdS,
AffineTransform stdT,
int dx,
int dy)
Draw this glyph.
|
void |
drawForLens(Graphics2D g,
int vW,
int vH,
int i,
Stroke stdS,
AffineTransform stdT,
int dx,
int dy)
Draw this glyph through a lens.
|
void |
flush()
Flush any resource used.
|
Object |
getInterpolationMethod()
Get information about how image should be interpolated when drawn at a scale different from its original scale.
|
BufferedImage |
getPageImage()
Get rasterized rendering of this page.
|
void |
setInterpolationMethod(Object im)
Specify how image should be interpolated when drawn at a scale different from its original scale.
|
addCamera, coordInside, coordInsideP, coordInsideV, fillsView, getHeight, getJava2DShape, getOrient, getSize, getWidth, highlight, initCams, isZoomSensitive, orientTo, project, projectForLens, removeCamera, reSize, setHeight, setWidth, setZoomSensitive, sizeTo, visibleInDisc, visibleInRegion
addHSVbColor, getBorderColor, getDefaultBorderColor, getHSVbColor, isBorderDrawn, isFilled, setBorderColor, setCursorInsideFillColor, setDrawBorder, setFilled, setHSVbColor
addHSVColor, containedInRegion, getBounds, getColor, getDefaultColor, getDefaultCursorInsideHighlightColor, getHSVColor, getLocation, getOwner, getStickedGlyphArray, getStroke, getTranslucencyValue, getType, getZindex, isSelected, isSensitive, isVisible, isVisibleThroughLens, move, moveTo, propagateMove, select, setColor, setCursorInsideHighlightColor, setDefaultCursorInsideHighlightColor, setHSVColor, setOwner, setSensitivity, setStroke, setTranslucencyValue, setType, setVisible, setZindex, stick, stickToGlyph, toString, unstick, unstickAllGlyphs, unstickAllGlyphs, unstickFromGlyph, visibleInViewport
public double trueCoef
public AffineTransform at
public Object interpolationMethod
public IcePDFPageImg(Document pdfDoc, int pageNumber)
pdfDoc
- the PDF document from ICEpdfpageNumber
- page number starting from 0 (for page 1)public IcePDFPageImg(double x, double y, int z, Document pdfDoc, int pageNumber)
x
- coordinate in virtual spacey
- coordinate in virtual spacez
- z-index (pass 0 if you do not use z-ordering)pdfDoc
- the PDF document from ICEpdfpageNumber
- page number starting from 0 (for page 1)public IcePDFPageImg(double x, double y, int z, Document pdfDoc, int pageNumber, float detailFactor, double scaleFactor)
x
- coordinate in virtual spacey
- coordinate in virtual spacez
- z-index (pass 0 if you do not use z-ordering)pdfDoc
- the PDF document from ICEpdfpageNumber
- page number starting from 0 (for page 1)detailFactor
- Multiplication factor applied to compute the actual width and height of the bitmap image in which to render the page, taking the default rendering scale as a basis (1.0f).
This has a direct impact of the PDF page rendering quality. > 1.0 will create higher quality renderings, < will create lower quality renderings.scaleFactor
- glyph size multiplication factor in virtual space w.r.t specified image size (default is 1.0). This has not impact on the PDF page rendering quality (a posteriori rescaling in ZVTM).public void setInterpolationMethod(Object im)
im
- one of java.awt.RenderingHints.{VALUE_INTERPOLATION_NEAREST_NEIGHBOR,VALUE_INTERPOLATION_BILINEAR,VALUE_INTERPOLATION_BICUBIC} ; default is VALUE_INTERPOLATION_NEAREST_NEIGHBORpublic Object getInterpolationMethod()
public void draw(Graphics2D g, int vW, int vH, int i, Stroke stdS, AffineTransform stdT, int dx, int dy)
Glyph
draw
in class Glyph
g
- graphics context in which the glyph should be drawnvW
- associated View width (used by some closed shapes to determine if it is worth painting the glyph's border)vH
- associated View height (used by some closed shapes to determine if it is worth painting the glyph's border)i
- camera index in the virtual space containing the glyphstdS
- default strokestdT
- identity transformdx
- horizontal offsetdy
- vertical offsetpublic void drawForLens(Graphics2D g, int vW, int vH, int i, Stroke stdS, AffineTransform stdT, int dx, int dy)
Glyph
drawForLens
in class Glyph
g
- graphics context in which the glyph should be drawnvW
- associated View width (used by some closed shapes to determine if it is worth painting the glyph's border)vH
- associated View height (used by some closed shapes to determine if it is worth painting the glyph's border)i
- camera index in the virtual space containing the glyphstdS
- default strokestdT
- identity transformdx
- horizontal offsetdy
- vertical offsetpublic Object clone()
public void flush()
ZPDFPage
public BufferedImage getPageImage()
Copyright © 2000-2002 Xerox Corporation. All Rights Reserved
Copyright © 2003 World Wide Web Consortium. All Rights Reserved
Copyright © 2004-2015 INRIA. All Rights Reserved
Licensed under the GNU LGPL. For full terms see the file COPYING.