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

public interface ILabelClass extends org.gvsig.tools.lang.Cloneable, org.gvsig.tools.persistence.Persistent, CartographicSupport
  • Method Details

    • isVisible

      boolean isVisible()
      Returns true if the label will be showed in the map
      Returns:
      isVisible boolean
    • isVisible

      boolean isVisible(double scale)
      Returns true if the label will be showed in the map
      Returns:
      isVisible boolean
    • setVisible

      void setVisible(boolean isVisible)
      Sets the visibility of the label in the map.
      Parameters:
      isVisible - boolean
    • getTextSymbol

      ITextSymbol getTextSymbol()
      Returns the text symbol that is being used for the text(the font, size,style,aligment)
      Returns:
      label ITextSymbol
    • setTextSymbol

      void setTextSymbol(ITextSymbol textSymbol)
      Stablishes the text symbol that is going to be used for the text(the font,size,style,aligment)
      Parameters:
      textSymbol - ITextSymbol
    • setLabelStyle

      void setLabelStyle(ILabelStyle labelStyle)
      Stablishes the style for the label.
      Parameters:
      labelStyle - ILabelStyle
    • getLabelStyle

      ILabelStyle getLabelStyle()
      Returns the style of the label
    • getName

      String getName()
      Returns the name of the label
    • setName

      void setName(String name)
      Stablishes the name of the label
      Parameters:
      name -
    • toString

      String toString()
      Overrides:
      toString in class Object
    • setTexts

      void setTexts(String[] texts)
      Sets the text for the label
      Parameters:
      texts - String[]
    • getTexts

      String[] getTexts()
      Return the text for the label
      Parameters:
      texts - String[]
    • draw

      void draw(Graphics2D graphics, ILabelLocationMetrics llm, org.gvsig.fmap.geom.Geometry geom)

      LabelLocationMetrics, contains the anchor point, rotation, and some other geometric calculations computed by the PlacementManager.

      The shp argument is passed as an accessory for subclasses of this class in case they need futher geometric calculations

      Parameters:
      graphics - , graphics to use to paint the label.
      llm - , concrete settings of the placement of this layer
      shp - , the Shape over whose the label is painted
    • drawInsideRectangle

      void drawInsideRectangle(Graphics2D graphics, Rectangle bounds) throws SymbolDrawingException
      Useful to render a Label with size inside little rectangles.
      Parameters:
      graphics - Graphics2D
      bounds - Rectangle
      Throws:
      SymbolDrawingException
    • getPriority

      int getPriority()
    • setPriority

      void setPriority(int priority)
    • getShape

      org.gvsig.fmap.geom.Geometry getShape(ILabelLocationMetrics llm) throws org.gvsig.fmap.geom.exception.CreateGeometryException
      Throws:
      org.gvsig.fmap.geom.exception.CreateGeometryException
    • getClassName

      String getClassName()
    • getBounds

      Rectangle getBounds()
      Returns a rectangle in Cartographics units
      Returns:
    • getSQLQuery

      String getSQLQuery()
    • setSQLQuery

      void setSQLQuery(String sqlQuery)
    • getLabelExpressions

      String[] getLabelExpressions()
      Returns the expression that defines the text which will be showed in the label
      Returns:
      labelExpressions String[]
    • setLabelExpressions

      void setLabelExpressions(String[] lbl_exps)
      Sets the expression that defines the text which will be showed in the label
    • setUseSqlQuery

      void setUseSqlQuery(boolean use_sql)
    • isUseSqlQuery

      boolean isUseSqlQuery()
    • getStringLabelExpression

      String getStringLabelExpression()
      Returns the expression that defines the text which will be showed in the label ready to be used for the label parser
      Returns:
      labelExpression String