org.geotools.renderer.style
Class GraphicStyle2D

Object
  extended by Style
      extended by Style2D
          extended by GraphicStyle2D

public class GraphicStyle2D
extends Style2D

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

Author:
Andrea Aime
Module:
modules/library/render (gt-render.jar)

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

Constructor Detail

GraphicStyle2D

public GraphicStyle2D(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 BufferedImage getImage()

getOpacity

public float getOpacity()

getRotation

public float getRotation()

setImage

public void setImage(BufferedImage image)
Parameters:
image -

setOpacity

public void setOpacity(float f)
Parameters:
f -

setRotation

public void setRotation(float f)
Parameters:
f -


Copyright © 1996-2009 Geotools. All Rights Reserved.