public class VTextOr<T> extends VText
VText
,
VTextLayout
font, fontSize, lcoef, mainFont, oldcoef, oldlcoef, paddingX, paddingY, pc, scaleFactor, text, text_anchor, TEXT_ANCHOR_END, TEXT_ANCHOR_MIDDLE, TEXT_ANCHOR_START, 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 |
---|
VTextOr(double x,
double y,
int z,
Color c,
String t,
double or) |
VTextOr(double x,
double y,
int z,
Color c,
String t,
double or,
short ta) |
VTextOr(double x,
double y,
int z,
Color c,
String t,
double or,
short ta,
float scale) |
VTextOr(double x,
double y,
int z,
Color c,
String t,
double or,
short ta,
float scale,
float alpha) |
VTextOr(String t,
double or) |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
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.
|
void |
orientTo(double angle)
Set the glyph's absolute orientation.
|
addCamera, containedInRegion, coordInside, coordInsideP, coordInsideV, getBorderColor, getBounds, getFont, getJava2DShape, getMainFont, getOrient, getPadding, getScale, getSize, getText, getTextAnchor, getTextDisplayedAsSegCoef, highlight, initCams, invalidate, isScaleIndependent, project, projectForLens, removeCamera, reSize, setBorderColor, setFont, setMainFont, setPadding, setScale, setScaleIndependent, setText, setTextAnchor, setTextDisplayedAsSegCoef, sizeTo, usesSpecificFont, validBounds, visibleInDisc, visibleInRegion
addHSVbColor, getDefaultBorderColor, getHSVbColor, isBorderDrawn, isFilled, setCursorInsideFillColor, setDrawBorder, setFilled, setHSVbColor
addHSVColor, 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 VTextOr(String t, double or)
public VTextOr(double x, double y, int z, Color c, String t, double or)
x
- coordinate in virtual spacey
- coordinate in virtual spacez
- z-index (pass 0 if you do not use z-ordering)c
- fill colort
- text stringor
- orientationpublic VTextOr(double x, double y, int z, Color c, String t, double or, short ta)
x
- coordinate in virtual spacey
- coordinate in virtual spacez
- z-index (pass 0 if you do not use z-ordering)c
- fill colort
- text stringor
- orientationta
- text-anchor (for alignment: one of VText.TEXT_ANCHOR_*)public VTextOr(double x, double y, int z, Color c, String t, double or, short ta, float scale)
x
- coordinate in virtual spacey
- coordinate in virtual spacez
- z-index (pass 0 if you do not use z-ordering)c
- fill colort
- text stringor
- orientationta
- text-anchor (for alignment: one of VText.TEXT_ANCHOR_*)scale
- scaleFactor w.r.t original image sizepublic VTextOr(double x, double y, int z, Color c, String t, double or, short ta, float scale, float alpha)
x
- coordinate in virtual spacey
- coordinate in virtual spacez
- z-index (pass 0 if you do not use z-ordering)c
- fill colort
- text stringor
- orientationta
- text-anchor (for alignment: one of VText.TEXT_ANCHOR_*)scale
- scaleFactor w.r.t original image sizealpha
- in [0;1.0]. 0 is fully transparent, 1 is opaquepublic void orientTo(double angle)
public boolean fillsView(double w, double h, int camIndex)
Glyph
public void draw(Graphics2D g, int vW, int vH, int i, Stroke stdS, AffineTransform stdT, int dx, int dy)
Glyph
draw
in class VText
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 VText
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 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.