public class PDFPageDescription extends ResourceDescription
src, vx, vy
id, parentRegion, sensitive, takesTo, takesToType, zindex
Constructor and Description |
---|
PDFPageDescription(String id,
double x,
double y,
int z,
float df,
float sf,
URL p,
int pg,
Color sc,
Object im,
Region pr)
Constructs the description of an image (VImageST).
|
PDFPageDescription(String id,
double x,
double y,
int z,
float df,
float sf,
URL p,
int pg,
Color sc,
Region pr)
Constructs the description of an image (VImageST).
|
Modifier and Type | Method and Description |
---|---|
boolean |
coordInside(double pvx,
double pvy)
Always returns false in the case of a PDF page because we do not have
any information about the page's width and height before actually loading it.
|
void |
createObject(SceneManager sm,
VirtualSpace vs,
boolean fadeIn)
Called automatically by scene manager.
|
void |
destroyObject(SceneManager sm,
VirtualSpace vs,
boolean fadeOut)
Called automatically by scene manager.
|
Glyph |
getGlyph()
Get Glyph described by this description.
|
String |
getType()
Type of object.
|
void |
moveTo(double x,
double y) |
getFeedbackWhenFetching, getURL, getX, getY, isInJAR, isLocal, setDefaultFeedbackWhenFetching, setFeedbackWhenFetching, setProgressBarBackgroundColor, setProgressBarColor, setProgressBarDefaultColors, setURL
getID, getParentRegion, getZindex, isSensitive, setParentRegion, setSensitive, setTakesTo, setZindex, takesTo, takesToType
public PDFPageDescription(String id, double x, double y, int z, float df, float sf, URL p, int pg, Color sc, Region pr)
id
- ID of object in scenex
- x-coordinate in sceney
- y-coordinate in scenedf
- detail factorsf
- scale factorz
- z-index (layer). Feed 0 if you don't know.p
- path to resource (any valid URL)pg
- page number starting from 0 (for page 1)sc
- border colorpr
- parent Region in scenepublic PDFPageDescription(String id, double x, double y, int z, float df, float sf, URL p, int pg, Color sc, Object im, Region pr)
id
- ID of object in scenex
- x-coordinate in sceney
- y-coordinate in scenedf
- detail factorsf
- scale factorz
- z-index (layer). Feed 0 if you don't know.p
- path to resource (any valid URL)pg
- page number starting from 0 (for page 1)sc
- border colorim
- one of java.awt.RenderingHints.{VALUE_INTERPOLATION_NEAREST_NEIGHBOR,VALUE_INTERPOLATION_BILINEAR,VALUE_INTERPOLATION_BICUBIC} ; default is VALUE_INTERPOLATION_NEAREST_NEIGHBORpr
- parent Region in scenepublic String getType()
ObjectDescription
getType
in class ObjectDescription
public void createObject(SceneManager sm, VirtualSpace vs, boolean fadeIn)
ObjectDescription
createObject
in class ObjectDescription
public void destroyObject(SceneManager sm, VirtualSpace vs, boolean fadeOut)
ObjectDescription
destroyObject
in class ObjectDescription
public Glyph getGlyph()
ObjectDescription
getGlyph
in class ObjectDescription
public void moveTo(double x, double y)
moveTo
in class ResourceDescription
public boolean coordInside(double pvx, double pvy)
coordInside
in class ObjectDescription
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.