org.geotools.renderer.style
Class GraphicStyle2D

Object
  extended by Style
      extended by Style2D
          extended by GraphicStyle2D
All Implemented Interfaces:
Cloneable

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

Field Summary
 
Fields inherited from class Style
maxScale, minScale
 
Constructor Summary
GraphicStyle2D(BufferedImage image, float rotation, float opacity)
          Creates a new GraphicStyle2D object.
GraphicStyle2D(BufferedImage image, float rotation, float opacity, int border)
          Creates a new GraphicStyle2D object.
 
Method Summary
 int getBorder()
          The actual image size might have been extended with an extra border (usually of one pixel) to preserve antialiasing pixels
 BufferedImage getImage()
           
 float getOpacity()
           
 float getRotation()
          The graphic rotation in radians.
 void setBorder(int border)
           
 void setImage(BufferedImage image)
           
 void setOpacity(float f)
           
 void setRotation(float radians)
          Graphic rotation in radians
 
Methods inherited from class Style
clone, getMaxScale, getMinScale, isScaleInRange, setMinMaxScale
 
Methods inherited from class Object
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

GraphicStyle2D

public GraphicStyle2D(BufferedImage image,
                      float rotation,
                      float opacity,
                      int border)
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()
The graphic rotation in radians.

Returns:
graphic rotation in radians

setImage

public void setImage(BufferedImage image)
Parameters:
image -

setOpacity

public void setOpacity(float f)
Parameters:
f -

setRotation

public void setRotation(float radians)
Graphic rotation in radians

Parameters:
radians - graphic rotation

getBorder

public int getBorder()
The actual image size might have been extended with an extra border (usually of one pixel) to preserve antialiasing pixels

Returns:

setBorder

public void setBorder(int border)


Copyright © 1996-2014 Geotools. All Rights Reserved.