public class SelectionAwareTexturePaint extends Object implements Paint, Cloneable, PaintWrapper
| Modifier and Type | Class and Description |
|---|---|
static class |
SelectionAwareTexturePaint.SelectionMode
DOCUMENT ME!
|
BITMASK, OPAQUE, TRANSLUCENT| Constructor and Description |
|---|
SelectionAwareTexturePaint(BufferedImage defaultImage,
BufferedImage highlightedImage,
BufferedImage selectedImage,
Rectangle2D rec)
Creates a new SelectionAwareTexturePaint object.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
PaintContext |
createContext(ColorModel cm,
Rectangle deviceBounds,
Rectangle2D userBounds,
AffineTransform xform,
RenderingHints hints) |
Paint |
getPaint()
DOCUMENT ME!
|
int |
getTransparency() |
void |
setMode(SelectionAwareTexturePaint.SelectionMode mode)
Set the selection mode to highlighted, selected or unselected.
|
void |
setScale(double scale,
com.vividsolutions.jts.geom.Geometry geom)
Set the scale of the map that shows the corresponding feature.
|
public SelectionAwareTexturePaint(BufferedImage defaultImage, BufferedImage highlightedImage, BufferedImage selectedImage, Rectangle2D rec)
defaultImage - this image is used, if the corresponding feature is unselected and not highlightedhighlightedImage - this image is used, if the corresponding feature is highlightedselectedImage - this image is used, if the corresponding feature is selectedrec - the Rectangle2D in user space used to anchor and replicate the texturepublic Paint getPaint()
getPaint in interface PaintWrapperpublic void setMode(SelectionAwareTexturePaint.SelectionMode mode)
mode - the new selection modepublic PaintContext createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints)
createContext in interface Paintpublic int getTransparency()
getTransparency in interface Transparencypublic void setScale(double scale,
com.vividsolutions.jts.geom.Geometry geom)
scale - the current scalegeom - the current feature geometry (a very small feature geometry is assumed to be in a geographic crs
and causes very small rectangle height/width)Copyright © 2012–2026 cismet GmbH. All rights reserved.