Class DefaultDynamicLabelingStrategy

java.lang.Object
org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractCartographicSupport
org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DefaultDynamicLabelingStrategy
All Implemented Interfaces:
org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategy, org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport, org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy, org.gvsig.tools.persistence.Persistent

public class DefaultDynamicLabelingStrategy extends org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractCartographicSupport implements org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
Author:
osc
  • Field Details

    • LROTATION

      public String LROTATION
    • LTEXT

      public String LTEXT
    • LHEIGHT

      public String LHEIGHT
    • LCOLOR

      public String LCOLOR
    • LFONT

      public String LFONT
    • LFONTSTYLE

      public String LFONTSTYLE
    • expRotation

      public static org.gvsig.expressionevaluator.Expression expRotation
    • expText

      public static org.gvsig.expressionevaluator.Expression expText
    • expHeight

      public static org.gvsig.expressionevaluator.Expression expHeight
    • expColor

      public static org.gvsig.expressionevaluator.Expression expColor
    • expFont

      public static org.gvsig.expressionevaluator.Expression expFont
    • expFontStyle

      public static org.gvsig.expressionevaluator.Expression expFontStyle
    • expUnit

      public static org.gvsig.expressionevaluator.Expression expUnit
    • expReferenceSystem

      public static org.gvsig.expressionevaluator.Expression expReferenceSystem
  • Constructor Details

    • DefaultDynamicLabelingStrategy

      public DefaultDynamicLabelingStrategy()
  • Method Details

    • getFeatureSymbolTable

      public org.gvsig.expressionevaluator.SymbolTable getFeatureSymbolTable()
    • getComputedValue

      public Object getComputedValue(String field)
    • getRotation

      public org.gvsig.expressionevaluator.Expression getRotation()
      Specified by:
      getRotation in interface org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
    • getComputedRotation

      public int getComputedRotation()
      Specified by:
      getComputedRotation in interface org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
    • getText

      public org.gvsig.expressionevaluator.Expression getText()
      Specified by:
      getText in interface org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
    • getComputedText

      public String getComputedText()
      Specified by:
      getComputedText in interface org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
    • getHeight

      public org.gvsig.expressionevaluator.Expression getHeight()
      Specified by:
      getHeight in interface org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
    • getComputedHeight

      public int getComputedHeight()
      Specified by:
      getComputedHeight in interface org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
    • getColor

      public org.gvsig.expressionevaluator.Expression getColor()
      Specified by:
      getColor in interface org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
    • getComputedColor

      public Color getComputedColor()
      Specified by:
      getComputedColor in interface org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
    • getFixedSize

      public org.gvsig.expressionevaluator.Expression getFixedSize()
      Specified by:
      getFixedSize in interface org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
    • getComputedFixedSize

      public double getComputedFixedSize()
      Specified by:
      getComputedFixedSize in interface org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
    • getComputedUnit

      public int getComputedUnit()
      Specified by:
      getComputedUnit in interface org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
    • setText

      public void setText(org.gvsig.expressionevaluator.Expression expression)
      Specified by:
      setText in interface org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
    • setRotation

      public void setRotation(org.gvsig.expressionevaluator.Expression expression)
      Specified by:
      setRotation in interface org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
    • setHeight

      public void setHeight(org.gvsig.expressionevaluator.Expression expression)
      Specified by:
      setHeight in interface org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
    • setColor

      public void setColor(org.gvsig.expressionevaluator.Expression expression)
      Specified by:
      setColor in interface org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
    • setUsesFixedSize

      public void setUsesFixedSize(boolean b)
      Specified by:
      setUsesFixedSize in interface org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
    • usesFixedSize

      public boolean usesFixedSize()
      Specified by:
      usesFixedSize in interface org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
    • setFixedSize

      public void setFixedSize(double fixedSize)
      Specified by:
      setFixedSize in interface org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
    • setUsesFixedColor

      public void setUsesFixedColor(boolean b)
      Specified by:
      setUsesFixedColor in interface org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
    • usesFixedColor

      public boolean usesFixedColor()
      Specified by:
      usesFixedColor in interface org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
    • getFixedColor

      public org.gvsig.expressionevaluator.Expression getFixedColor()
      Specified by:
      getFixedColor in interface org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
    • getComputedFixedColor

      public Color getComputedFixedColor()
      Specified by:
      getComputedFixedColor in interface org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
    • setFixedColor

      public void setFixedColor(Color fixedColor)
      Specified by:
      setFixedColor in interface org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
    • getColorFont

      public org.gvsig.expressionevaluator.Expression getColorFont()
      Specified by:
      getColorFont in interface org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
    • getComputedColorFont

      public Color getComputedColorFont()
      Specified by:
      getComputedColorFont in interface org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
    • setColorFont

      public void setColorFont(Color colorFont)
      Specified by:
      setColorFont in interface org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
    • getFont

      public org.gvsig.expressionevaluator.Expression getFont()
      Specified by:
      getFont in interface org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
    • getComputedFont

      public Font getComputedFont()
      Specified by:
      getComputedFont in interface org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
    • setFont

      public void setFont(Font selFont)
      Specified by:
      setFont in interface org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
    • getFontStyle

      public org.gvsig.expressionevaluator.Expression getFontStyle()
      Specified by:
      getFontStyle in interface org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
    • getComputedFontStyle

      public int getComputedFontStyle()
      Specified by:
      getComputedFontStyle in interface org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
    • setFontStyle

      public void setFontStyle(org.gvsig.expressionevaluator.Expression expression)
      Specified by:
      setFontStyle in interface org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
    • setFeature

      public void setFeature(org.gvsig.fmap.dal.feature.Feature f)
      Specified by:
      setFeature in interface org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
    • getLabelingMethod

      public org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingMethod getLabelingMethod()
      Specified by:
      getLabelingMethod in interface org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategy
    • setLabelingMethod

      public void setLabelingMethod(org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingMethod method)
      Specified by:
      setLabelingMethod in interface org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategy
    • getPlacementConstraints

      public org.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints getPlacementConstraints()
      Specified by:
      getPlacementConstraints in interface org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategy
    • setPlacementConstraints

      public void setPlacementConstraints(org.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints constraints)
      Specified by:
      setPlacementConstraints in interface org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategy
    • getZoomConstraints

      public org.gvsig.fmap.mapcontext.rendering.legend.styling.IZoomConstraints getZoomConstraints()
      Specified by:
      getZoomConstraints in interface org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategy
    • setZoomConstraints

      public void setZoomConstraints(org.gvsig.fmap.mapcontext.rendering.legend.styling.IZoomConstraints constraints)
      Specified by:
      setZoomConstraints in interface org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategy
    • getUnitExp

      public org.gvsig.expressionevaluator.Expression getUnitExp()
      Specified by:
      getUnitExp in interface org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
    • getReferenceSystemExp

      public org.gvsig.expressionevaluator.Expression getReferenceSystemExp()
    • draw

      public void draw(BufferedImage mapImage, Graphics2D mapGraphics, double scale, org.gvsig.fmap.mapcontext.ViewPort viewPort, org.gvsig.tools.task.Cancellable cancel, double dpi) throws org.gvsig.fmap.dal.exception.ReadException
      Specified by:
      draw in interface org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategy
      Throws:
      org.gvsig.fmap.dal.exception.ReadException
    • print

      public void print(Graphics2D g, double scale, org.gvsig.fmap.mapcontext.ViewPort viewPort, org.gvsig.tools.task.Cancellable cancel, org.gvsig.compat.print.PrintAttributes properties) throws org.gvsig.fmap.dal.exception.ReadException
      Specified by:
      print in interface org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategy
      Throws:
      org.gvsig.fmap.dal.exception.ReadException
    • getUsedFields

      public String[] getUsedFields()
      Specified by:
      getUsedFields in interface org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategy
    • setLayer

      public void setLayer(org.gvsig.fmap.mapcontext.layers.FLayer flayer)
      Specified by:
      setLayer in interface org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategy
    • shouldDrawLabels

      public boolean shouldDrawLabels(double scale)
      Specified by:
      shouldDrawLabels in interface org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategy
    • 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
      Throws:
      org.gvsig.tools.persistence.exception.PersistenceException
    • 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
      Throws:
      org.gvsig.tools.persistence.exception.PersistenceException
    • setUnit

      public void setUnit(int unitIndex)
      Specified by:
      setUnit in interface org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport
      Overrides:
      setUnit in class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractCartographicSupport
    • setUnit

      public void setUnit(org.gvsig.expressionevaluator.Expression expression)
      Specified by:
      setUnit in interface org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
    • getUnit

      public int getUnit()
      Specified by:
      getUnit in interface org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport
      Overrides:
      getUnit in class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractCartographicSupport
    • getComputedUnitExp

      public int getComputedUnitExp()
    • getComputedReferenceSystem

      public int getComputedReferenceSystem()
    • getReferenceSystem

      public int getReferenceSystem()
      Specified by:
      getReferenceSystem in interface org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport
      Overrides:
      getReferenceSystem in class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractCartographicSupport
    • setReferenceSystem

      public void setReferenceSystem(int referenceSystem)
      Specified by:
      setReferenceSystem in interface org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport
      Overrides:
      setReferenceSystem in class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractCartographicSupport
    • setFont

      public void setFont(org.gvsig.expressionevaluator.Expression expression)
      Specified by:
      setFont in interface org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
    • setFontStyle

      public void setFontStyle(int style)
      Specified by:
      setFontStyle in interface org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
    • setReferenceSystem

      public void setReferenceSystem(org.gvsig.expressionevaluator.Expression expression)
      Specified by:
      setReferenceSystem in interface org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy