public class RImage<T> extends VImage
ar, at, image, interpolationMethod, pc, scaleFactor, trueCoef, vh, vw, 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 |
---|
RImage(double x,
double y,
int z,
Image img,
double scale,
float alpha)
Construct an image at (x, y) with a custom scale.
|
RImage(double x,
double y,
int z,
Image img,
double scale,
float alpha,
boolean hir)
Construct an image at (x, y) with a custom scale.
|
RImage(double x,
double y,
int z,
Image img,
float alpha)
Construct an image at (x, y) with original scale.
|
RImage(Image img,
float alpha) |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
static BufferedImage |
createReflection(Image src) |
static BufferedImage |
createReflection(Image src,
GradientPaint mask) |
static BufferedImage |
getBufferedImageFromFile(File f) |
double |
getHeight()
Get width in virtual space.
|
boolean |
includesReflectionInHeightComputation() |
void |
setImage(Image i)
Set bitmap image to be displayed.
|
static void |
setReflectionHeight(float ratio) |
static void |
setReflectionMaskEndPoints(float base,
float edge) |
addCamera, coordInside, coordInsideP, coordInsideV, draw, drawForLens, fillsView, getBounds, getImage, getInterpolationMethod, getJava2DShape, getOrient, getScale, getSize, getWidth, initCams, isZoomSensitive, orientTo, project, projectForLens, removeCamera, reSize, setHeight, setInterpolationMethod, setScale, setWidth, setZoomSensitive, sizeTo, visibleInDisc, visibleInRegion
addHSVbColor, getBorderColor, getDefaultBorderColor, getHSVbColor, highlight, isBorderDrawn, isFilled, setBorderColor, setCursorInsideFillColor, setDrawBorder, setFilled, setHSVbColor
addHSVColor, containedInRegion, 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 RImage(Image img, float alpha)
img
- image to be displayedalpha
- alpha channel value in [0;1.0] 0 is fully transparent, 1 is opaquepublic RImage(double x, double y, int z, Image img, float alpha)
x
- coordinate in virtual spacey
- coordinate in virtual spacez
- z-index (pass 0 if you do not use z-ordering)img
- image to be displayedalpha
- alpha channel value in [0;1.0] 0 is fully transparent, 1 is opaquepublic RImage(double x, double y, int z, Image img, double scale, float alpha)
x
- coordinate in virtual spacey
- coordinate in virtual spacez
- z-index (pass 0 if you do not use z-ordering)img
- image to be displayedscale
- scaleFactor w.r.t original image sizealpha
- alpha channel value in [0;1.0] 0 is fully transparent, 1 is opaquepublic RImage(double x, double y, int z, Image img, double scale, float alpha, boolean hir)
x
- coordinate in virtual spacey
- coordinate in virtual spacez
- z-index (pass 0 if you do not use z-ordering)img
- image to be displayedscale
- scaleFactor w.r.t original image sizealpha
- alpha channel value in [0;1.0] 0 is fully transparent, 1 is opaquehir
- true if height measurement should include mirrored version of the image (doubles the image's height) - defaults to falsepublic static void setReflectionHeight(float ratio)
public static void setReflectionMaskEndPoints(float base, float edge)
base
- alpha value between in [0.0,1.0] (default value: 0.2)edge
- alpha value between in [0.0,1.0] (typically 0.0)public boolean includesReflectionInHeightComputation()
public void setImage(Image i)
public double getHeight()
RectangularShape
getHeight
in interface RectangularShape
getHeight
in class VImage
public static BufferedImage getBufferedImageFromFile(File f)
public static BufferedImage createReflection(Image src)
public static BufferedImage createReflection(Image src, GradientPaint mask)
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.