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

public class SimpleLabelStyle extends AbstractStyle implements org.gvsig.fmap.mapcontext.rendering.symbols.styles.ILabelStyle
Implements a style for the creation of simple labels.
Author:
jaume dominguez faus - jaume.dominguez@iver.es
  • Field Details

  • Constructor Details

    • SimpleLabelStyle

      public SimpleLabelStyle()
  • Method Details

    • getFieldCount

      public int getFieldCount()
      Specified by:
      getFieldCount in interface org.gvsig.fmap.mapcontext.rendering.symbols.styles.ILabelStyle
    • setTextFields

      public void setTextFields(String[] texts)
      Specified by:
      setTextFields in interface org.gvsig.fmap.mapcontext.rendering.symbols.styles.ILabelStyle
    • isSuitableFor

      public boolean isSuitableFor(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol symbol)
      Specified by:
      isSuitableFor in interface org.gvsig.fmap.mapcontext.rendering.symbols.styles.IStyle
    • getClassName

      public String getClassName()
    • getTextBounds

      public Rectangle2D[] getTextBounds()
      Specified by:
      getTextBounds in interface org.gvsig.fmap.mapcontext.rendering.symbols.styles.ILabelStyle
    • drawInsideRectangle

      public void drawInsideRectangle(Graphics2D g, Rectangle r) throws org.gvsig.fmap.mapcontext.rendering.symbols.SymbolDrawingException
      Specified by:
      drawInsideRectangle in interface org.gvsig.fmap.mapcontext.rendering.symbols.styles.IStyle
      Throws:
      org.gvsig.fmap.mapcontext.rendering.symbols.SymbolDrawingException
    • getSize

      public Dimension getSize()
      Specified by:
      getSize in interface org.gvsig.fmap.mapcontext.rendering.symbols.styles.ILabelStyle
    • getMarkerPoint

      public Point2D getMarkerPoint()
      Specified by:
      getMarkerPoint in interface org.gvsig.fmap.mapcontext.rendering.symbols.styles.ILabelStyle
    • setMarkerPoint

      public void setMarkerPoint(Point2D p) throws IllegalArgumentException
      Specified by:
      setMarkerPoint in interface org.gvsig.fmap.mapcontext.rendering.symbols.styles.ILabelStyle
      Throws:
      IllegalArgumentException
    • drawOutline

      public void drawOutline(Graphics2D g, Rectangle r) throws org.gvsig.fmap.mapcontext.rendering.symbols.SymbolDrawingException
      Specified by:
      drawOutline in interface org.gvsig.fmap.mapcontext.rendering.symbols.styles.IStyle
      Throws:
      org.gvsig.fmap.mapcontext.rendering.symbols.SymbolDrawingException
    • setTextFieldArea

      public void setTextFieldArea(int index, Rectangle2D rect)
      Specified by:
      setTextFieldArea in interface org.gvsig.fmap.mapcontext.rendering.symbols.styles.ILabelStyle
    • addTextFieldArea

      public void addTextFieldArea(Rectangle2D rect)
      Specified by:
      addTextFieldArea in interface org.gvsig.fmap.mapcontext.rendering.symbols.styles.ILabelStyle
    • deleteTextFieldArea

      public void deleteTextFieldArea(int index)
      Specified by:
      deleteTextFieldArea in interface org.gvsig.fmap.mapcontext.rendering.symbols.styles.ILabelStyle
    • setSize

      public void setSize(double width, double height)
      Specified by:
      setSize in interface org.gvsig.fmap.mapcontext.rendering.symbols.styles.ILabelStyle
    • getBackgroundFileStyle

      public org.gvsig.fmap.mapcontext.rendering.symbols.styles.IBackgroundFileStyle getBackgroundFileStyle()
      Specified by:
      getBackgroundFileStyle in interface org.gvsig.fmap.mapcontext.rendering.symbols.styles.ILabelStyle
    • setBackgroundFileStyle

      public void setBackgroundFileStyle(org.gvsig.fmap.mapcontext.rendering.symbols.styles.IBackgroundFileStyle bg)
      Specified by:
      setBackgroundFileStyle in interface org.gvsig.fmap.mapcontext.rendering.symbols.styles.ILabelStyle
    • 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 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 AbstractStyle
      Throws:
      org.gvsig.tools.persistence.exception.PersistenceException