org.geotools.renderer.lite
Class LabelCacheItem

java.lang.Object
  extended byorg.geotools.renderer.lite.LabelCacheItem
All Implemented Interfaces:
java.lang.Comparable

public class LabelCacheItem
extends java.lang.Object
implements java.lang.Comparable

The Labelling information that is put in the label cache.

Author:
jeichar, dblasby

Constructor Summary
LabelCacheItem(TextStyle2D textStyle, LiteShape2 shape)
          Construct LabelCacheItem.
 
Method Summary
 int compareTo(java.lang.Object o)
           
 boolean equals(java.lang.Object arg0)
           
 com.vividsolutions.jts.geom.Geometry getGeometry()
          Returns an example geometry from the list of geometries.
 java.util.List getGeoms()
          The list of geometries this item maintains
 double getPriority()
           
 int getSpaceAround()
          space around - "dont put any label near me by this # of pixels"
 TextStyle2D getTextStyle()
          The textstyle that is used to label the shape.
 int hashCode()
           
 void setPriority(double d)
           
 void setSpaceAround(int space)
          space around - "dont put any label near me by this # of pixels"
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LabelCacheItem

public LabelCacheItem(TextStyle2D textStyle,
                      LiteShape2 shape)
Construct LabelCacheItem.

Method Detail

getSpaceAround

public int getSpaceAround()
space around - "dont put any label near me by this # of pixels"


setSpaceAround

public void setSpaceAround(int space)
space around - "dont put any label near me by this # of pixels"


getPriority

public double getPriority()

setPriority

public void setPriority(double d)

getGeoms

public java.util.List getGeoms()
The list of geometries this item maintains


getTextStyle

public TextStyle2D getTextStyle()
The textstyle that is used to label the shape.


equals

public boolean equals(java.lang.Object arg0)
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
See Also:
Object.hashCode()

getGeometry

public com.vividsolutions.jts.geom.Geometry getGeometry()
Returns an example geometry from the list of geometries.


compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable


Copyright © GeoTools. All Rights Reserved.