|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.graphics.sld.Mark
public class Mark
A Mark takes a "shape" and applies coloring to it. The shape can be derived either from a well-known name (such as "square"), an external URL in various formats (such as, perhaps GIF), or from a glyph of a font. Multiple external formats may be used with the semantic that they all contain the equivalent shape in different formats. If an image format is used that has inherent coloring, the coloring is discarded and only the opacity channel (or equivalent) is used. A Halo, Fill, and/or Stroke is applied as appropriate for the shape's source format.
Constructor Summary | |
---|---|
Mark()
Constructor for the default Mark. |
|
Mark(java.lang.String wellKnownName,
Stroke stroke,
Fill fill)
constructor initializing the class with the |
Method Summary | |
---|---|
java.awt.image.BufferedImage |
drawCircle(int size,
double fillOpacity,
java.awt.Color fillColor,
double strokeOpacity,
java.awt.Color strokeColor,
float[] dash,
float dashOffset,
float width,
int cap,
int join)
Draws a scaled instance of a circle mark according to the given parameters. |
java.awt.image.BufferedImage |
drawCross1(int size,
double strokeOpacity,
java.awt.Color strokeColor,
float[] dash,
float dashOffset,
float width,
int cap,
int join)
Draws a scaled instance of a cross mark (a "+") according to the given parameters. |
java.awt.image.BufferedImage |
drawCross2(int size,
double strokeOpacity,
java.awt.Color strokeColor,
float[] dash,
float dashOffset,
float width,
int cap,
int join)
Draws a scaled instance of a cross mark (an "X") according to the given parameters. |
java.awt.image.BufferedImage |
drawSquare(int size,
double fillOpacity,
java.awt.Color fillColor,
double strokeOpacity,
java.awt.Color strokeColor,
float[] dash,
float dashOffset,
float width,
int cap,
int join)
Draws a scaled instance of a square mark according to the given parameters. |
java.awt.image.BufferedImage |
drawStar(int size,
double fillOpacity,
java.awt.Color fillColor,
double strokeOpacity,
java.awt.Color strokeColor,
float[] dash,
float dashOffset,
float width,
int cap,
int join)
Draws a five-pointed star (pentagram) according to the given parameters. |
java.awt.image.BufferedImage |
drawTriangle(int size,
double fillOpacity,
java.awt.Color fillColor,
double strokeOpacity,
java.awt.Color strokeColor,
float[] dash,
float dashOffset,
float width,
int cap,
int join)
Draws a scaled instance of a triangle mark according to the given parameters. |
java.lang.String |
exportAsXML()
exports the content of the Mark as XML formated String |
java.awt.image.BufferedImage |
getAsImage(Feature feature,
int size)
Draws the given feature on the buffered image. |
Fill |
getFill()
A Fill allows area geometries to be filled. |
Stroke |
getStroke()
A Stroke allows a string of line segments (or any linear geometry) to be rendered. |
java.lang.String |
getWellKnownName()
Gives the well known name of a Mark's shape. |
void |
setAsImage(java.awt.image.BufferedImage bufferedImage)
Sets the mark as an image. |
void |
setFill(Fill fill)
sets the |
void |
setStroke(Stroke stroke)
sets |
void |
setWellKnownName(java.lang.String wellKnownName)
Sets the well known name of a Mark's shape. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
Mark()
Mark(java.lang.String wellKnownName, Stroke stroke, Fill fill)
wellKnownName
- stroke
- fill
- Method Detail |
---|
public java.lang.String getWellKnownName()
public void setWellKnownName(java.lang.String wellKnownName)
wellKnownName
- the WK-Name of the markpublic Fill getFill()
public void setFill(Fill fill)
fill
- the fill of the markpublic Stroke getStroke()
public void setStroke(Stroke stroke)
stroke
- the stroke of the markpublic java.awt.image.BufferedImage getAsImage(Feature feature, int size) throws FilterEvaluationException
Be careful to set the buffered image first!.
feature
- size
- DOCUMENT ME!
FilterEvaluationException
public void setAsImage(java.awt.image.BufferedImage bufferedImage)
bufferedImage
- the bufferedImage to be set for the markpublic java.awt.image.BufferedImage drawTriangle(int size, double fillOpacity, java.awt.Color fillColor, double strokeOpacity, java.awt.Color strokeColor, float[] dash, float dashOffset, float width, int cap, int join)
size
- resulting image's height and widthfillOpacity
- opacity value for the filled parts of the imagefillColor
- Color to be used for the fillstrokeOpacity
- opacity value for the stroked parts of the imagestrokeColor
- Color to be used for the strokesdash
- dash array for rendering boundary linewidth
- of the boundary linecap
- of the boundary linejoin
- of the boundary linedashOffset
-
public java.awt.image.BufferedImage drawStar(int size, double fillOpacity, java.awt.Color fillColor, double strokeOpacity, java.awt.Color strokeColor, float[] dash, float dashOffset, float width, int cap, int join)
size
- resulting image's height and widthfillOpacity
- opacity value for the filled parts of the imagefillColor
- Color to be used for the fillstrokeOpacity
- opacity value for the stroked parts of the imagestrokeColor
- Color to be used for the strokesdash
- dash array for rendering boundary linewidth
- of the boundary linecap
- of the boundary linejoin
- of the boundary linedashOffset
-
public java.awt.image.BufferedImage drawCircle(int size, double fillOpacity, java.awt.Color fillColor, double strokeOpacity, java.awt.Color strokeColor, float[] dash, float dashOffset, float width, int cap, int join)
size
- resulting image's height and widthhfillOpacity
- opacity value for the filled parts of the imagefillColor
- Color to be used for the fillstrokeOpacity
- opacity value for the stroked parts of the imagestrokeColor
- Color to be used for the strokesdash
- dash array for rendering boundary linewidth
- of the boundary linecap
- of the boundary linejoin
- of the boundary linedashOffset
-
public java.awt.image.BufferedImage drawSquare(int size, double fillOpacity, java.awt.Color fillColor, double strokeOpacity, java.awt.Color strokeColor, float[] dash, float dashOffset, float width, int cap, int join)
size
- resulting image's height and widthhfillOpacity
- opacity value for the filled parts of the imagefillColor
- Color to be used for the fillstrokeOpacity
- opacity value for the stroked parts of the imagestrokeColor
- Color to be used for the strokesdash
- dash array for rendering boundary linewidth
- of the boundary linecap
- of the boundary linejoin
- of the boundary linedashOffset
-
public java.awt.image.BufferedImage drawCross1(int size, double strokeOpacity, java.awt.Color strokeColor, float[] dash, float dashOffset, float width, int cap, int join)
size
- resulting image's height and widthhstrokeOpacity
- opacity value for the stroked parts of the imagestrokeColor
- Color to be used for the strokesdash
- dash array for rendering boundary linewidth
- of the boundary linecap
- of the boundary linejoin
- of the boundary linedashOffset
-
public java.awt.image.BufferedImage drawCross2(int size, double strokeOpacity, java.awt.Color strokeColor, float[] dash, float dashOffset, float width, int cap, int join)
size
- resulting image's height and widthhstrokeOpacity
- opacity value for the stroked parts of the imagestrokeColor
- Color to be used for the strokesdash
- dash array for rendering boundary linewidth
- of the boundary linecap
- of the boundary linejoin
- of the boundary linedashOffset
-
public java.lang.String exportAsXML()
exportAsXML
in interface Marshallable
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org