public class CustomTexturePaint
extends java.lang.Object
implements java.awt.Paint
CustomTexturePaint
is a helper to work around Java2XML
limitations.Modifier and Type | Field and Description |
---|---|
java.io.File |
svg |
Constructor and Description |
---|
CustomTexturePaint() |
CustomTexturePaint(java.net.URL url) |
Modifier and Type | Method and Description |
---|---|
java.awt.PaintContext |
createContext(java.awt.image.ColorModel cm,
java.awt.Rectangle deviceBounds,
java.awt.geom.Rectangle2D userBounds,
java.awt.geom.AffineTransform xform,
java.awt.RenderingHints hints) |
boolean |
equals(java.lang.Object other) |
int |
getTransparency() |
java.lang.String |
getUrl() |
void |
setUrl(java.lang.String url) |
public CustomTexturePaint()
public CustomTexturePaint(java.net.URL url)
url
- public void setUrl(java.lang.String url) throws java.io.IOException
url
- java.io.IOException
public java.lang.String getUrl()
public java.awt.PaintContext createContext(java.awt.image.ColorModel cm, java.awt.Rectangle deviceBounds, java.awt.geom.Rectangle2D userBounds, java.awt.geom.AffineTransform xform, java.awt.RenderingHints hints)
createContext
in interface java.awt.Paint
public int getTransparency()
getTransparency
in interface java.awt.Transparency
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object