org.geotools.renderer.style
Class IconStyle2D

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

public class IconStyle2D
extends Style2D

Represents a Style2D backed by an Icon

Author:
milton

Field Summary
 
Fields inherited from class Style
maxScale, minScale
 
Constructor Summary
IconStyle2D(Icon icon, Object feature, float displacementX, float displacementY, float rotation, Composite composite)
          Constructor.
 
Method Summary
 Composite getComposite()
          The icon composite
 float getDisplacementX()
          The icon x displacement
 float getDisplacementY()
          The icon y displacement
 Icon getIcon()
          Returns the icon backing this style
 float getRotation()
          The Icon rotation, in radians.
 void setComposite(Composite composite)
           
 void setDisplacementX(float displacementX)
           
 void setDisplacementY(float displacementY)
           
 void setIcon(Icon icon)
           
 void setRotation(float rotation)
           
 
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

IconStyle2D

public IconStyle2D(Icon icon,
                   Object feature,
                   float displacementX,
                   float displacementY,
                   float rotation,
                   Composite composite)
Constructor.

Parameters:
renderer - GlyphRenderer to be used for rendering this GlyphStyle2D
graphic - Graphic for defining the glyph.
externalGraphic - ExternalGraphic for defining the glyph.
The - rotation of the icon
The - opacity of the icon
Method Detail

getRotation

public float getRotation()
The Icon rotation, in radians.

Returns:
icon rotation, in radians.

getComposite

public Composite getComposite()
The icon composite

Returns:

getDisplacementX

public float getDisplacementX()
The icon x displacement

Returns:

getDisplacementY

public float getDisplacementY()
The icon y displacement

Returns:

getIcon

public Icon getIcon()
Returns the icon backing this style

Returns:

setIcon

public void setIcon(Icon icon)

setRotation

public void setRotation(float rotation)

setComposite

public void setComposite(Composite composite)

setDisplacementX

public void setDisplacementX(float displacementX)

setDisplacementY

public void setDisplacementY(float displacementY)


Copyright © 1996-2014 Geotools. All Rights Reserved.