org.geotools.renderer.style
Class IconStyle2D

java.lang.Object
  extended by org.geotools.renderer.style.Style
      extended by org.geotools.renderer.style.Style2D
          extended by org.geotools.renderer.style.IconStyle2D

public class IconStyle2D
extends Style2D

Represents a Style2D backed by an Icon

Author:
milton

Field Summary
 
Fields inherited from class org.geotools.renderer.style.Style
maxScale, minScale
 
Constructor Summary
IconStyle2D(javax.swing.Icon icon, java.lang.Object feature, float displacementX, float displacementY, float rotation, java.awt.Composite composite)
          Constructor.
 
Method Summary
 java.awt.Composite getComposite()
          The icon composite
 float getDisplacementX()
          The icon x displacement
 float getDisplacementY()
          The icon y displacement
 javax.swing.Icon getIcon()
          Returns the icon backing this style
 float getRotation()
          The Icon rotation
 
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

IconStyle2D

public IconStyle2D(javax.swing.Icon icon,
                   java.lang.Object feature,
                   float displacementX,
                   float displacementY,
                   float rotation,
                   java.awt.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

Returns:

getComposite

public java.awt.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 javax.swing.Icon getIcon()
Returns the icon backing this style

Returns:


Copyright © 1996-2010 Geotools. All Rights Reserved.