Class PointLabelPositioner

java.lang.Object
org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractCartographicSupport
org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.AbstractStyle
org.gvsig.labeling.placements.PointLabelPositioner
All Implemented Interfaces:
Cloneable, org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport, org.gvsig.fmap.mapcontext.rendering.symbols.styles.IStyle, org.gvsig.tools.lang.Cloneable, org.gvsig.tools.persistence.Persistent

public class PointLabelPositioner extends org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.AbstractStyle
Specifies the point position for a label
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.AbstractStyle

    org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.AbstractStyle.RegisterPersistence

    Nested classes/interfaces inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport

    org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport.CartographicContext
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final byte
     
    static final String
     
    static final byte
     
    static final byte
     
    static final byte
     

    Fields inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.AbstractStyle

    LOGGER, STYLE_PERSISTENCE_DEFINITION_NAME

    Fields inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport

    PAPER, WORLD
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor method
    PointLabelPositioner(int[] preferenceVector, String description)
    Constructor method
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
     
    void
     
    int[]
     
    boolean
    isSuitableFor(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol sym)
     
    void
    loadFromState(org.gvsig.tools.persistence.PersistentState state)
     
    static void
     
    void
    saveToState(org.gvsig.tools.persistence.PersistentState state)
     

    Methods inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.AbstractStyle

    getDescription, setDescription

    Methods inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractCartographicSupport

    copyCartographicContext, getCartographicContext, getReferenceSystem, getUnit, isInPixels, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setReferenceSystem, setUnit, toCartographicUnits

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • PointLabelPositioner

      public PointLabelPositioner()
      Constructor method
    • PointLabelPositioner

      public PointLabelPositioner(int[] preferenceVector, String description)
      Constructor method
      Parameters:
      preferenceVector -
      description -
  • Method Details

    • drawInsideRectangle

      public void drawInsideRectangle(Graphics2D g, Rectangle r)
    • isSuitableFor

      public boolean isSuitableFor(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol sym)
    • loadFromState

      public void loadFromState(org.gvsig.tools.persistence.PersistentState state) throws org.gvsig.tools.persistence.exception.PersistenceException
      Specified by:
      loadFromState in interface org.gvsig.tools.persistence.Persistent
      Overrides:
      loadFromState in class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.AbstractStyle
      Throws:
      org.gvsig.tools.persistence.exception.PersistenceException
    • saveToState

      public void saveToState(org.gvsig.tools.persistence.PersistentState state) throws org.gvsig.tools.persistence.exception.PersistenceException
      Specified by:
      saveToState in interface org.gvsig.tools.persistence.Persistent
      Overrides:
      saveToState in class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.AbstractStyle
      Throws:
      org.gvsig.tools.persistence.exception.PersistenceException
    • registerPersistent

      public static void registerPersistent()
    • clone

      public Object clone() throws CloneNotSupportedException
      Specified by:
      clone in interface org.gvsig.tools.lang.Cloneable
      Overrides:
      clone in class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.AbstractStyle
      Throws:
      CloneNotSupportedException
    • drawOutline

      public void drawOutline(Graphics2D g, Rectangle r)
    • getPreferenceVector

      public int[] getPreferenceVector()