Interface ITextSymbol

All Superinterfaces:
Cloneable, org.gvsig.tools.lang.Cloneable, IPrintable, ISymbol, org.gvsig.tools.persistence.Persistent

public interface ITextSymbol extends ISymbol
ITextSymbol.java
Represents an ISymbol that draws a text.
Author:
jaume dominguez faus - jaume.dominguez@iver.es Dec 11, 2007
  • Field Details

  • Method Details

    • setFont

      void setFont(Font font)
      Establishes the font that will be used to render this ITextSymbol.
      Parameters:
      font -
    • getFont

      Font getFont()
      Returns the currently set font.
      Returns:
      Font
    • getTextColor

      Color getTextColor()
      Returns the currently color set to be applied to the text
      Returns:
      Color
    • setTextColor

      void setTextColor(Color color)
      Sets the color of the text
      Parameters:
      color -
    • getText

      String getText()
      Returns the text contained by this symbol
      Returns:
    • setText

      void setText(String text)
      Sets the text to be rendered by this symbol
      Parameters:
      text - , a String
    • setFontSize

      void setFontSize(double d)
      Sets the font size currently set to this symbol
      Parameters:
      d -
    • getTextWrappingShape

      org.gvsig.fmap.geom.Geometry getTextWrappingShape(org.gvsig.fmap.geom.primitive.Point p)
      Computes a Geometry wrapping the text to be applied
      Parameters:
      p - target location
      Returns:
    • getBounds

      Rectangle getBounds()
    • setAutoresizeEnabled

      void setAutoresizeEnabled(boolean autoresizeFlag)
    • isAutoresizeEnabled

      boolean isAutoresizeEnabled()
    • getHaloColor

      Color getHaloColor()
    • setHaloColor

      void setHaloColor(Color haloColor)
    • getHaloWidth

      float getHaloWidth()
    • setHaloWidth

      void setHaloWidth(float haloWidth)
    • isDrawWithHalo

      boolean isDrawWithHalo()
    • setDrawWithHalo

      void setDrawWithHalo(boolean drawWithHalo)