public abstract class ZPDFPage extends ClosedShape implements RectangularShape
| Modifier and Type | Field and Description |
|---|---|
double |
ar
Aspect ratio: width divided by height (read-only).
|
fr.inria.zvtm.glyphs.projection.RProjectedCoordsP[] |
pc |
double |
scaleFactor |
boolean |
zoomSensitive |
bColor, borderColor, cursorInsideFColor, HSVbalphaC, coef, color, cursorInsideColor, ENTERED_GLYPH, EXITED_GLYPH, fColor, HSV, NO_CURSOR_EVENT, orient, sensit, size, stickedTo, stroke, visible, vx, vy, vzacO| Constructor and Description |
|---|
ZPDFPage() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCamera(int verifIndex)
Create new projected coordinates.
|
boolean |
coordInside(int jpx,
int jpy,
Camera c,
double cvx,
double cvy)
Detect whether the given point is inside this glyph or not.
|
boolean |
coordInsideP(int jpx,
int jpy,
Camera c)
Detect whether the given point is inside this glyph or not.
|
boolean |
coordInsideV(double cvx,
double cvy,
Camera c)
Detect whether the given point is inside this glyph or not.
|
boolean |
fillsView(double w,
double h,
int camIndex)
Find out if this glyph completely fills a view.
|
abstract void |
flush()
Flush any resource used.
|
double |
getHeight()
Get width in virtual space.
|
Shape |
getJava2DShape()
Get the Java2D Shape corresponding to this Glyph.
|
double |
getOrient()
Get the glyph's orientation.
|
double |
getSize()
Get glyph's size (diameter of bounding circle).
|
double |
getWidth()
Get width in virtual space.
|
void |
highlight(boolean b,
Color selectedColor)
Highlight this glyph to give visual feedback when the cursor is inside it.
|
void |
initCams(int nbCam)
Initialize projected coordinates.
|
boolean |
isZoomSensitive()
Indicates whether the image is scaled according to camera's altitude.
|
void |
orientTo(double angle)
Set the glyph's absolute orientation.
|
void |
project(Camera c,
Dimension d)
Project glyph w.r.t a given camera's coordinate system, prior to actual painting.
|
void |
projectForLens(Camera c,
int lensWidth,
int lensHeight,
float lensMag,
double lensx,
double lensy)
Project glyph w.r.t a given camera's coordinate system, prior to actual painting through a lens.
|
void |
removeCamera(int index)
Dispose of projected coordinates.
|
void |
reSize(double factor)
Set glyph's size by multiplying its bounding circle diameter by a factor.
|
void |
setHeight(double h)
Set height in virtual space.
|
void |
setWidth(double w)
Set width in virtual space.
|
void |
setZoomSensitive(boolean b)
Set to false if the image should not be scaled according to camera's altitude.
|
void |
sizeTo(double s)
Set glyph's size by setting its bounding circle's diameter.
|
boolean |
visibleInDisc(double dvx,
double dvy,
double dvr,
Shape dvs,
int camIndex,
int jpx,
int jpy,
int dpr)
Find out if a glyph is visible in a circular area.
|
boolean |
visibleInRegion(double wb,
double nb,
double eb,
double sb,
int i)
Method used internally to find out if it is necessary to project and draw this glyph for a given camera.
|
addHSVbColor, getBorderColor, getDefaultBorderColor, getHSVbColor, isBorderDrawn, isFilled, setBorderColor, setCursorInsideFillColor, setDrawBorder, setFilled, setHSVbColoraddHSVColor, clone, containedInRegion, draw, drawForLens, 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, visibleInViewportpublic double ar
public fr.inria.zvtm.glyphs.projection.RProjectedCoordsP[] pc
public boolean zoomSensitive
public double scaleFactor
public void initCams(int nbCam)
GlyphinitCams in class GlyphnbCam - current number of cameras in the virtual spaceGlyph.addCamera(int verifIndex),
Glyph.removeCamera(int index)public void addCamera(int verifIndex)
GlyphaddCamera in class GlyphverifIndex - camera index, just to be sure that the number of projected coordinates is consistent with the number of cameras.Glyph.initCams(int nbCam),
Glyph.removeCamera(int index)public void removeCamera(int index)
GlyphremoveCamera in class GlyphGlyph.initCams(int nbCam),
Glyph.addCamera(int verifIndex)public double getSize()
Glyphpublic void sizeTo(double s)
GlyphsizeTo in class GlyphGlyph.reSize(double factor)public void reSize(double factor)
GlyphreSize in class GlyphGlyph.sizeTo(double s)public double getOrient()
Glyphpublic void orientTo(double angle)
Glyphpublic void highlight(boolean b,
Color selectedColor)
ClosedShapehighlight in class ClosedShapepublic void setWidth(double w)
RectangularShapesetWidth in interface RectangularShapepublic void setHeight(double h)
RectangularShapesetHeight in interface RectangularShapepublic double getWidth()
RectangularShapegetWidth in interface RectangularShapepublic double getHeight()
RectangularShapegetHeight in interface RectangularShapepublic void setZoomSensitive(boolean b)
isZoomSensitive()public boolean isZoomSensitive()
setZoomSensitive(boolean b)public boolean fillsView(double w,
double h,
int camIndex)
Glyphpublic boolean coordInside(int jpx,
int jpy,
Camera c,
double cvx,
double cvy)
GlyphcoordInside in class Glyphjpx - provide projected JPanel coordinates of the associated view, not virtual space coordinatesjpy - provide projected JPanel coordinates of the associated view, not virtual space coordinatesc - camera through which the glyph is observed (only a few types of Glyph actually require this information: SICircle, SIRectangle, VText)cvx - virtual space coordinatescvy - virtual space coordinatesGlyph.coordInsideV(double cvx, double cvy, Camera c),
Glyph.coordInsideP(int jpx, int jpy, Camera c)public boolean coordInsideV(double cvx,
double cvy,
Camera c)
GlyphcoordInsideV in class Glyphcvx - virtual space coordinatescvy - virtual space coordinatesc - camera through which the glyph is observed (only a few types of Glyph actually require this information: SICircle, SIRectangle, VText)Glyph.coordInside(int jpx, int jpy, Camera c, double cvx, double cvy),
Glyph.coordInsideP(int jpx, int jpy, Camera c)public boolean coordInsideP(int jpx,
int jpy,
Camera c)
GlyphcoordInsideP in class Glyphjpx - provide projected JPanel coordinates of the associated view, not virtual space coordinatesjpy - provide projected JPanel coordinates of the associated view, not virtual space coordinatesc - camera through which the glyph is observedGlyph.coordInsideV(double cvx, double cvy, Camera c),
Glyph.coordInside(int jpx, int jpy, Camera c, double cvx, double cvy)public boolean visibleInRegion(double wb,
double nb,
double eb,
double sb,
int i)
GlyphvisibleInRegion in class Glyphwb - west region boundary (virtual space coordinates)nb - north region boundary (virtual space coordinates)eb - east region boundary (virtual space coordinates)sb - south region boundary (virtual space coordinates)i - camera index (useuful only for some glyph classes redefining this method)public boolean visibleInDisc(double dvx,
double dvy,
double dvr,
Shape dvs,
int camIndex,
int jpx,
int jpy,
int dpr)
GlyphvisibleInDisc in class Glyphpublic void project(Camera c, Dimension d)
Glyphpublic void projectForLens(Camera c, int lensWidth, int lensHeight, float lensMag, double lensx, double lensy)
GlyphprojectForLens in class Glyphc - cameralensWidth - width of lens activated in View using this cameralensHeight - height of lens activated in View using this cameralensMag - magnification factor of lens activated in View using this cameralensx - horizontal coordinateof lens activated in View using this cameralensy - vertical coordinate of lens activated in View using this camerapublic abstract void flush()
public Shape getJava2DShape()
GlyphgetJava2DShape in class GlyphCopyright © 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.