public class BitmapVertexStyle extends VertexStyle
BitmapVertexStyle
shape, size
Constructor and Description |
---|
BitmapVertexStyle() |
BitmapVertexStyle(java.lang.String fileName) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFileName() |
java.awt.Image |
getImage() |
static java.awt.image.BufferedImage |
getUpdatedSVGImage(java.lang.String fileName,
java.lang.String stroke,
java.lang.String fill,
int size) |
void |
paint(java.awt.Graphics2D g,
java.awt.geom.Point2D p) |
protected void |
render(java.awt.Graphics2D g) |
void |
setFileName(java.lang.String fileName) |
void |
setFillColor(java.awt.Color c) |
void |
setLineColor(java.awt.Color c) |
void |
setSize(int size) |
static java.lang.String |
toHexColor(java.awt.Color col) |
static java.lang.StringBuffer |
updateSVGColors(java.io.File file,
java.lang.String stroke,
java.lang.String fill) |
clone, getFillColor, getFilling, getLineColor, getShape, getSize, initialize, isEnabled, paint, setAlpha, setEnabled, setFilling, setLinePattern, setLineWidth, setRenderingLinePattern
public BitmapVertexStyle()
public BitmapVertexStyle(java.lang.String fileName)
fileName
- public void paint(java.awt.Graphics2D g, java.awt.geom.Point2D p)
paint
in class VertexStyle
protected void render(java.awt.Graphics2D g)
render
in class VertexStyle
public java.awt.Image getImage()
public java.lang.String getFileName()
public void setFillColor(java.awt.Color c)
setFillColor
in interface SLDImporter.FillStyle
setFillColor
in class VertexStyle
public void setLineColor(java.awt.Color c)
setLineColor
in interface SLDImporter.StrokeStyle
setLineColor
in class VertexStyle
public void setSize(int size)
setSize
in interface SLDImporter.SizedStyle
setSize
in class VertexStyle
public static java.lang.String toHexColor(java.awt.Color col)
col
- public static java.lang.StringBuffer updateSVGColors(java.io.File file, java.lang.String stroke, java.lang.String fill) throws java.io.IOException
file
- stroke
- fill
- java.io.IOException
public static java.awt.image.BufferedImage getUpdatedSVGImage(java.lang.String fileName, java.lang.String stroke, java.lang.String fill, int size)
fileName
- stroke
- fill
- size
- public void setFileName(java.lang.String fileName)
fileName
-