Package org.openjump.util
Class CustomTexturePaint
- java.lang.Object
-
- org.openjump.util.CustomTexturePaint
-
- All Implemented Interfaces:
Paint,Transparency
public class CustomTexturePaint extends Object implements Paint
CustomTexturePaintis a helper to work around Java2XML limitations.- Version:
- $Revision:$, $Date:$
- Author:
- Andreas Schmitz, last edited by: $Author:$
-
-
Field Summary
Fields Modifier and Type Field Description Filesvg-
Fields inherited from interface java.awt.Transparency
BITMASK, OPAQUE, TRANSLUCENT
-
-
Constructor Summary
Constructors Constructor Description CustomTexturePaint()CustomTexturePaint(URL url)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PaintContextcreateContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints)booleanequals(Object other)intgetTransparency()StringgetUrl()voidsetUrl(String url)
-
-
-
Field Detail
-
svg
public File svg
-
-
Constructor Detail
-
CustomTexturePaint
public CustomTexturePaint()
-
CustomTexturePaint
public CustomTexturePaint(URL url)
- Parameters:
url- URL containing the texture description
-
-
Method Detail
-
setUrl
public void setUrl(String url) throws IOException
- Parameters:
url- URL containing the texture description- Throws:
IOException- if an IOException occurred
-
getUrl
public String 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
-
-