org.geotools.renderer.style
Class GraphicStyle2D

java.lang.Object
  extended byorg.geotools.renderer.style.Style
      extended byorg.geotools.renderer.style.Style2D
          extended byorg.geotools.renderer.style.GraphicStyle2D

public class GraphicStyle2D
extends Style2D

A style class used to depict a point, polygon centroid or line with a small graphic icon

Version:
$Id: GraphicStyle2D.java 17703 2006-01-23 00:12:44Z desruisseaux $
Author:
Andrea Aime

Field Summary
 
Fields inherited from class org.geotools.renderer.style.Style
maxScale, minScale
 
Constructor Summary
GraphicStyle2D(java.awt.image.BufferedImage image, float rotation, float opacity)
          Creates a new GraphicStyle2D object.
 
Method Summary
 java.awt.image.BufferedImage getImage()
           
 float getOpacity()
           
 float getRotation()
           
 void setImage(java.awt.image.BufferedImage image)
           
 void setOpacity(float f)
           
 void setRotation(float f)
           
 
Methods inherited from class org.geotools.renderer.style.Style
getMaxScale, getMinScale, isScaleInRange, setMinMaxScale
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphicStyle2D

public GraphicStyle2D(java.awt.image.BufferedImage image,
                      float rotation,
                      float opacity)
Creates a new GraphicStyle2D object.

Parameters:
image - The image that will be used to depict the centroid/point/...
rotation - The image rotation
opacity - The image opacity
Method Detail

getImage

public java.awt.image.BufferedImage getImage()
Returns:

getOpacity

public float getOpacity()
Returns:

getRotation

public float getRotation()
Returns:

setImage

public void setImage(java.awt.image.BufferedImage image)
Parameters:
image -

setOpacity

public void setOpacity(float f)
Parameters:
f -

setRotation

public void setRotation(float f)
Parameters:
f -


Copyright © GeoTools. All Rights Reserved.