public class VEclipse<T> extends VCircle
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 |
|---|
VEclipse(double x,
double y,
int z,
double d,
float f,
Color c,
Color bc,
double or,
float alpha) |
VEclipse(double x,
double y,
int z,
double d,
float f,
Color c,
Color bc,
float alpha) |
| 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.
|
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.
|
boolean |
fillsView(double w,
double h,
int camIndex)
Find out if this glyph completely fills a view.
|
double |
getFraction()
Get fraction of eclipse.
|
void |
initCams(int nbCam)
Initialize projected coordinates.
|
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 |
setFraction(float f)
Set fraction of eclipse.
|
clone, getJava2DShape, getOrient, getSize, removeCamera, reSize, sizeTo, visibleInDiscaddHSVbColor, getBorderColor, getDefaultBorderColor, getHSVbColor, highlight, isBorderDrawn, isFilled, setBorderColor, setCursorInsideFillColor, setDrawBorder, setFilled, setHSVbColoraddHSVColor, 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, visibleInRegion, visibleInViewportpublic VEclipse(double x,
double y,
int z,
double d,
float f,
Color c,
Color bc,
float alpha)
x - coordinate in virtual spacey - coordinate in virtual spacez - z-index (pass 0 if you do not use z-ordering)d - diameter in virtual spacef - fraction of full eclipse (-1 to 1, with 0 = full eclipse)c - fill colorbc - border coloralpha - in [0;1.0]. 0 is fully transparent, 1 is opaquepublic VEclipse(double x,
double y,
int z,
double d,
float f,
Color c,
Color bc,
double or,
float alpha)
x - coordinate in virtual spacey - coordinate in virtual spacez - z-index (pass 0 if you do not use z-ordering)d - diameter in virtual spacef - fraction of full eclipse (-1 to 1, with 0 = full eclipse)c - fill colorbc - border coloror - orientationalpha - in [0;1.0]. 0 is fully transparent, 1 is opaquepublic void setFraction(float f)
f - fraction of full eclipse (-1 to 1, with 0 = full eclipse)public double getFraction()
public void initCams(int nbCam)
GlyphinitCams in class VCirclenbCam - current number of cameras in the virtual spaceGlyph.addCamera(int verifIndex),
Glyph.removeCamera(int index)public void addCamera(int verifIndex)
GlyphaddCamera in class VCircleverifIndex - 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 orientTo(double angle)
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 VCirclejpx - 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 VCirclecvx - 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 VCirclejpx - 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 void project(Camera c, Dimension d)
Glyphpublic void projectForLens(Camera c, int lensWidth, int lensHeight, float lensMag, double lensx, double lensy)
GlyphprojectForLens in class VCirclec - 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 void draw(Graphics2D g, int vW, int vH, int i, Stroke stdS, AffineTransform stdT, int dx, int dy)
Glyphdraw in class VCircleg - 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)
GlyphdrawForLens in class VCircleg - 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 offsetCopyright © 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.