public class SemZoomGlyph<T> extends Glyph
alphaC, coef, color, cursorInsideColor, ENTERED_GLYPH, EXITED_GLYPH, fColor, HSV, NO_CURSOR_EVENT, orient, sensit, size, stickedTo, stroke, visible, vx, vy, vzacO| Constructor and Description |
|---|
SemZoomGlyph(List<Glyph> glyphs,
List<Double> transitions) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCamera(int index)
Create new projected coordinates.
|
boolean |
coordInside(int jpx,
int jpy,
Camera c,
double cvx,
double cvy)
Not supported in SemZoomGlyph.
|
boolean |
coordInsideP(int jpx,
int jpy,
Camera c)
Not supported in SemZoomGlyph.
|
boolean |
coordInsideV(double cvx,
double cvy,
Camera c)
Not supported in SemZoomGlyph.
|
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.
|
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).
|
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.
|
void |
move(double dx,
double dy)
Translate the glyph by (x,y) - relative translation.
|
void |
moveTo(double x,
double y)
Translate the glyph to (x,y) - absolute translation.
|
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.
|
protected Glyph |
selectChild(int camIndex) |
void |
sizeTo(double newSize)
Set glyph's size by setting its bounding circle's diameter.
|
addHSVbColor, addHSVColor, clone, containedInRegion, getBorderColor, getBounds, getColor, getDefaultColor, getDefaultCursorInsideHighlightColor, getHSVbColor, getHSVColor, getLocation, getOwner, getStickedGlyphArray, getStroke, getTranslucencyValue, getType, getZindex, isBorderDrawn, isFilled, isSelected, isSensitive, isVisible, isVisibleThroughLens, propagateMove, select, setBorderColor, setColor, setCursorInsideHighlightColor, setDefaultCursorInsideHighlightColor, setHSVbColor, setHSVColor, setOwner, setSensitivity, setStroke, setTranslucencyValue, setType, setVisible, setZindex, stick, stickToGlyph, toString, unstick, unstickAllGlyphs, unstickAllGlyphs, unstickFromGlyph, visibleInDisc, visibleInRegion, visibleInViewportpublic boolean fillsView(double w,
double h,
int camIndex)
public boolean coordInside(int jpx,
int jpy,
Camera c,
double cvx,
double cvy)
coordInside 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)
coordInsideV 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)
coordInsideP 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 void removeCamera(int index)
GlyphremoveCamera in class GlyphGlyph.initCams(int nbCam),
Glyph.addCamera(int verifIndex)public void addCamera(int index)
GlyphaddCamera in class Glyphindex - 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 initCams(int nbCam)
GlyphinitCams in class GlyphnbCam - current number of cameras in the virtual spaceGlyph.addCamera(int verifIndex),
Glyph.removeCamera(int index)public void drawForLens(Graphics2D g, int vW, int vH, int i, Stroke stdS, AffineTransform stdT, int dx, int dy)
GlyphdrawForLens in class Glyphg - 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 draw(Graphics2D g, int vW, int vH, int i, Stroke stdS, AffineTransform stdT, int dx, int dy)
Glyphdraw in class Glyphg - 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 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 void project(Camera c, Dimension d)
Glyphpublic void highlight(boolean b,
Color selectedColor)
Glyphpublic void orientTo(double angle)
Glyphpublic double getOrient()
Glyphpublic void reSize(double factor)
GlyphreSize in class GlyphGlyph.sizeTo(double s)public void sizeTo(double newSize)
GlyphsizeTo in class GlyphGlyph.reSize(double factor)public void move(double dx,
double dy)
Glyphmove in class GlyphGlyph.moveTo(double x, double y)public void moveTo(double x,
double y)
GlyphmoveTo in class GlyphGlyph.move(double x, double y)public double getSize()
Glyphprotected Glyph selectChild(int camIndex)
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.