org.geotools.renderer
Class LegendIconMaker

java.lang.Object
  extended byorg.geotools.renderer.LegendIconMaker

public class LegendIconMaker
extends java.lang.Object

DOCUMENT ME!

Author:
jianhuij

Field Summary
static com.vividsolutions.jts.geom.GeometryFactory gFac
          for create artificial geometry feature for making legend icon since the icon somehow has somekind of shape such as line, polygon etc. then other code will apply fill and stroke to make an image
static int offset
          offset for icon, otherwise icons will be connected to others in the legend
static StyleFactory sFac
          if the rule already has defined legendGraphic the stylefactory could create symbolizer to contain it
 
Method Summary
static void main(java.lang.String[] args)
          DOCUMENT ME!
static javax.swing.Icon makeLegendIcon(int iconWidth, java.awt.Color background, Rule rule, Feature sample)
           
static javax.swing.Icon makeLegendIcon(int iconWidth, java.awt.Color background, Symbolizer[] syms, Feature sample)
           
static javax.swing.Icon makeLegendIcon(int iconWidth, int iconHeight, java.awt.Color background, Symbolizer[] syms, Feature sample, boolean cacheIcon)
           
static javax.swing.Icon makeLegendIcon(int iconWidth, Rule rule, Feature sample)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

gFac

public static com.vividsolutions.jts.geom.GeometryFactory gFac
for create artificial geometry feature for making legend icon since the icon somehow has somekind of shape such as line, polygon etc. then other code will apply fill and stroke to make an image


sFac

public static StyleFactory sFac
if the rule already has defined legendGraphic the stylefactory could create symbolizer to contain it


offset

public static int offset
offset for icon, otherwise icons will be connected to others in the legend

Method Detail

makeLegendIcon

public static javax.swing.Icon makeLegendIcon(int iconWidth,
                                              java.awt.Color background,
                                              Rule rule,
                                              Feature sample)

makeLegendIcon

public static javax.swing.Icon makeLegendIcon(int iconWidth,
                                              Rule rule,
                                              Feature sample)

makeLegendIcon

public static javax.swing.Icon makeLegendIcon(int iconWidth,
                                              java.awt.Color background,
                                              Symbolizer[] syms,
                                              Feature sample)

makeLegendIcon

public static javax.swing.Icon makeLegendIcon(int iconWidth,
                                              int iconHeight,
                                              java.awt.Color background,
                                              Symbolizer[] syms,
                                              Feature sample,
                                              boolean cacheIcon)

main

public static void main(java.lang.String[] args)
DOCUMENT ME!

Parameters:
args - the command line arguments


Copyright © GeoTools. All Rights Reserved.