Class BitmapVertexStyle
java.lang.Object
com.vividsolutions.jump.workbench.ui.renderer.style.VertexStyle
de.latlon.deejump.plugin.style.BitmapVertexStyle
- All Implemented Interfaces:
Style, Cloneable, SLDImporter.FillStyle, SLDImporter.SizedStrokeFillStyle, SLDImporter.SizedStyle, SLDImporter.StrokeFillStyle, SLDImporter.StrokeStyle
BitmapVertexStyle- Version:
- $Revision$, $Date: 2008-02-14 14:37:00 +0100 (Thu, 14 Feb 2008) $
- Author:
- Andreas Schmitz, last edited by: $Author$
-
Field Summary
Fields inherited from class VertexStyle
shape, size -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetImage()static BufferedImagegetUpdatedSVGImage(String fileName, String stroke, String fill, int size) voidpaint(Graphics2D g, Point2D p) protected voidrender(Graphics2D g) voidsetFileName(String fileName) voidvoidvoidsetSize(int size) static StringtoHexColor(Color color) static StringBufferupdateSVGColors(File file, String stroke, String fill) Methods inherited from class VertexStyle
clone, getFillColor, getFilling, getLineColor, getShape, getSize, initialize, isEnabled, paint, setAlpha, setEnabled, setFilling, setLinePattern, setLineWidth, setRenderingLinePattern
-
Constructor Details
-
BitmapVertexStyle
public BitmapVertexStyle() -
BitmapVertexStyle
- Parameters:
fileName- the name of the file describing this BitmapVertexStyle
-
-
Method Details
-
paint
- Overrides:
paintin classVertexStyle
-
render
- Overrides:
renderin classVertexStyle
-
getImage
- Returns:
- the image
-
getFileName
- Returns:
- the image
-
setFillColor
- Specified by:
setFillColorin interfaceSLDImporter.FillStyle- Overrides:
setFillColorin classVertexStyle- Parameters:
c- a Color
-
setLineColor
- Specified by:
setLineColorin interfaceSLDImporter.StrokeStyle- Overrides:
setLineColorin classVertexStyle- Parameters:
c- line Color
-
setSize
public void setSize(int size) - Specified by:
setSizein interfaceSLDImporter.SizedStyle- Overrides:
setSizein classVertexStyle- Parameters:
size- size
-
toHexColor
-
updateSVGColors
public static StringBuffer updateSVGColors(File file, String stroke, String fill) throws IOException - Parameters:
file- the svg filestroke- hex value of the stroke color to usefill- hex value of the fill color to use- Returns:
- the new svg code
- Throws:
IOException- if an IOException occurs
-
getUpdatedSVGImage
public static BufferedImage getUpdatedSVGImage(String fileName, String stroke, String fill, int size) - Parameters:
fileName- svg file namestroke- hex value of the stroke color to usefill- hex value of the fill color to usesize- image size- Returns:
- a SVG image with black colors overwritten with the given colors
-
setFileName
- Parameters:
fileName- file name to use
-