Class CustomTexturePaint
java.lang.Object
org.openjump.util.CustomTexturePaint
- All Implemented Interfaces:
Paint, Transparency
CustomTexturePaint is a helper to work around Java2XML
limitations.- Version:
- $Revision:$, $Date:$
- Author:
- Andreas Schmitz, last edited by: $Author:$
-
Field Summary
FieldsFields inherited from interface Transparency
BITMASK, OPAQUE, TRANSLUCENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints) booleanintgetUrl()void
-
Field Details
-
svg
-
-
Constructor Details
-
CustomTexturePaint
public CustomTexturePaint() -
CustomTexturePaint
- Parameters:
url- URL containing the texture description
-
-
Method Details
-
setUrl
- Parameters:
url- URL containing the texture description- Throws:
IOException- if an IOException occurred
-
getUrl
- Returns:
- the image's URL
-
createContext
public PaintContext createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints) - Specified by:
createContextin interfacePaint
-
getTransparency
public int getTransparency()- Specified by:
getTransparencyin interfaceTransparency
-
equals
-