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
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport
org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport.CartographicContext -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic org.gvsig.expressionevaluator.Expressionstatic org.gvsig.expressionevaluator.Expressionstatic org.gvsig.expressionevaluator.Expressionstatic org.gvsig.expressionevaluator.Expressionstatic org.gvsig.expressionevaluator.Expressionstatic org.gvsig.expressionevaluator.Expressionstatic org.gvsig.expressionevaluator.Expressionstatic org.gvsig.expressionevaluator.ExpressionFields inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport
PAPER, WORLDFields inherited from interface org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddraw(BufferedImage mapImage, Graphics2D mapGraphics, double scale, org.gvsig.fmap.mapcontext.ViewPort viewPort, org.gvsig.tools.task.Cancellable cancel, double dpi) org.gvsig.expressionevaluator.ExpressiongetColor()org.gvsig.expressionevaluator.ExpressiondoubleintintintintintintgetComputedValue(String field) org.gvsig.expressionevaluator.SymbolTableorg.gvsig.expressionevaluator.Expressionorg.gvsig.expressionevaluator.Expressionorg.gvsig.expressionevaluator.ExpressiongetFont()org.gvsig.expressionevaluator.Expressionorg.gvsig.expressionevaluator.Expressionorg.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingMethodorg.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraintsintorg.gvsig.expressionevaluator.Expressionorg.gvsig.expressionevaluator.Expressionorg.gvsig.expressionevaluator.ExpressiongetText()intgetUnit()org.gvsig.expressionevaluator.ExpressionString[]org.gvsig.fmap.mapcontext.rendering.legend.styling.IZoomConstraintsvoidloadFromState(org.gvsig.tools.persistence.PersistentState state) voidprint(Graphics2D g, double scale, org.gvsig.fmap.mapcontext.ViewPort viewPort, org.gvsig.tools.task.Cancellable cancel, org.gvsig.compat.print.PrintAttributes properties) voidsaveToState(org.gvsig.tools.persistence.PersistentState state) voidsetColor(org.gvsig.expressionevaluator.Expression expression) voidsetColorFont(Color colorFont) voidsetFeature(org.gvsig.fmap.dal.feature.Feature f) voidsetFixedColor(Color fixedColor) voidsetFixedSize(double fixedSize) voidvoidsetFont(org.gvsig.expressionevaluator.Expression expression) voidsetFontStyle(int style) voidsetFontStyle(org.gvsig.expressionevaluator.Expression expression) voidsetHeight(org.gvsig.expressionevaluator.Expression expression) voidsetLabelingMethod(org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingMethod method) voidsetLayer(org.gvsig.fmap.mapcontext.layers.FLayer flayer) voidsetPlacementConstraints(org.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints constraints) voidsetReferenceSystem(int referenceSystem) voidsetReferenceSystem(org.gvsig.expressionevaluator.Expression expression) voidsetRotation(org.gvsig.expressionevaluator.Expression expression) voidsetText(org.gvsig.expressionevaluator.Expression expression) voidsetUnit(int unitIndex) voidsetUnit(org.gvsig.expressionevaluator.Expression expression) voidsetUsesFixedColor(boolean b) voidsetUsesFixedSize(boolean b) voidsetZoomConstraints(org.gvsig.fmap.mapcontext.rendering.legend.styling.IZoomConstraints constraints) booleanshouldDrawLabels(double scale) booleanbooleanMethods inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractCartographicSupport
copyCartographicContext, getCartographicContext, isInPixels, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, toCartographicUnitsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport
copyCartographicContext, getCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, toCartographicUnits
-
Field Details
-
LROTATION
-
LTEXT
-
LHEIGHT
-
LCOLOR
-
LFONT
-
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
-
getRotation
public org.gvsig.expressionevaluator.Expression getRotation()- Specified by:
getRotationin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
-
getComputedRotation
public int getComputedRotation()- Specified by:
getComputedRotationin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
-
getText
public org.gvsig.expressionevaluator.Expression getText()- Specified by:
getTextin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
-
getComputedText
- Specified by:
getComputedTextin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
-
getHeight
public org.gvsig.expressionevaluator.Expression getHeight()- Specified by:
getHeightin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
-
getComputedHeight
public int getComputedHeight()- Specified by:
getComputedHeightin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
-
getColor
public org.gvsig.expressionevaluator.Expression getColor()- Specified by:
getColorin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
-
getComputedColor
- Specified by:
getComputedColorin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
-
getFixedSize
public org.gvsig.expressionevaluator.Expression getFixedSize()- Specified by:
getFixedSizein interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
-
getComputedFixedSize
public double getComputedFixedSize()- Specified by:
getComputedFixedSizein interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
-
getComputedUnit
public int getComputedUnit()- Specified by:
getComputedUnitin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
-
setText
public void setText(org.gvsig.expressionevaluator.Expression expression) - Specified by:
setTextin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
-
setRotation
public void setRotation(org.gvsig.expressionevaluator.Expression expression) - Specified by:
setRotationin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
-
setHeight
public void setHeight(org.gvsig.expressionevaluator.Expression expression) - Specified by:
setHeightin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
-
setColor
public void setColor(org.gvsig.expressionevaluator.Expression expression) - Specified by:
setColorin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
-
setUsesFixedSize
public void setUsesFixedSize(boolean b) - Specified by:
setUsesFixedSizein interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
-
usesFixedSize
public boolean usesFixedSize()- Specified by:
usesFixedSizein interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
-
setFixedSize
public void setFixedSize(double fixedSize) - Specified by:
setFixedSizein interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
-
setUsesFixedColor
public void setUsesFixedColor(boolean b) - Specified by:
setUsesFixedColorin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
-
usesFixedColor
public boolean usesFixedColor()- Specified by:
usesFixedColorin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
-
getFixedColor
public org.gvsig.expressionevaluator.Expression getFixedColor()- Specified by:
getFixedColorin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
-
getComputedFixedColor
- Specified by:
getComputedFixedColorin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
-
setFixedColor
- Specified by:
setFixedColorin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
-
getColorFont
public org.gvsig.expressionevaluator.Expression getColorFont()- Specified by:
getColorFontin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
-
getComputedColorFont
- Specified by:
getComputedColorFontin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
-
setColorFont
- Specified by:
setColorFontin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
-
getFont
public org.gvsig.expressionevaluator.Expression getFont()- Specified by:
getFontin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
-
getComputedFont
- Specified by:
getComputedFontin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
-
setFont
- Specified by:
setFontin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
-
getFontStyle
public org.gvsig.expressionevaluator.Expression getFontStyle()- Specified by:
getFontStylein interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
-
getComputedFontStyle
public int getComputedFontStyle()- Specified by:
getComputedFontStylein interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
-
setFontStyle
public void setFontStyle(org.gvsig.expressionevaluator.Expression expression) - Specified by:
setFontStylein interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
-
setFeature
public void setFeature(org.gvsig.fmap.dal.feature.Feature f) - Specified by:
setFeaturein interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
-
getLabelingMethod
public org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingMethod getLabelingMethod()- Specified by:
getLabelingMethodin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategy
-
setLabelingMethod
public void setLabelingMethod(org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingMethod method) - Specified by:
setLabelingMethodin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategy
-
getPlacementConstraints
public org.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints getPlacementConstraints()- Specified by:
getPlacementConstraintsin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategy
-
setPlacementConstraints
public void setPlacementConstraints(org.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints constraints) - Specified by:
setPlacementConstraintsin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategy
-
getZoomConstraints
public org.gvsig.fmap.mapcontext.rendering.legend.styling.IZoomConstraints getZoomConstraints()- Specified by:
getZoomConstraintsin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategy
-
setZoomConstraints
public void setZoomConstraints(org.gvsig.fmap.mapcontext.rendering.legend.styling.IZoomConstraints constraints) - Specified by:
setZoomConstraintsin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategy
-
getUnitExp
public org.gvsig.expressionevaluator.Expression getUnitExp()- Specified by:
getUnitExpin interfaceorg.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:
drawin interfaceorg.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:
printin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategy- Throws:
org.gvsig.fmap.dal.exception.ReadException
-
getUsedFields
- Specified by:
getUsedFieldsin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategy
-
setLayer
public void setLayer(org.gvsig.fmap.mapcontext.layers.FLayer flayer) - Specified by:
setLayerin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategy
-
shouldDrawLabels
public boolean shouldDrawLabels(double scale) - Specified by:
shouldDrawLabelsin interfaceorg.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:
saveToStatein interfaceorg.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:
loadFromStatein interfaceorg.gvsig.tools.persistence.Persistent- Throws:
org.gvsig.tools.persistence.exception.PersistenceException
-
setUnit
public void setUnit(int unitIndex) - Specified by:
setUnitin interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport- Overrides:
setUnitin classorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractCartographicSupport
-
setUnit
public void setUnit(org.gvsig.expressionevaluator.Expression expression) - Specified by:
setUnitin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
-
getUnit
public int getUnit()- Specified by:
getUnitin interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport- Overrides:
getUnitin classorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractCartographicSupport
-
getComputedUnitExp
public int getComputedUnitExp() -
getComputedReferenceSystem
public int getComputedReferenceSystem() -
getReferenceSystem
public int getReferenceSystem()- Specified by:
getReferenceSystemin interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport- Overrides:
getReferenceSystemin classorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractCartographicSupport
-
setReferenceSystem
public void setReferenceSystem(int referenceSystem) - Specified by:
setReferenceSystemin interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport- Overrides:
setReferenceSystemin classorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractCartographicSupport
-
setFont
public void setFont(org.gvsig.expressionevaluator.Expression expression) - Specified by:
setFontin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
-
setFontStyle
public void setFontStyle(int style) - Specified by:
setFontStylein interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
-
setReferenceSystem
public void setReferenceSystem(org.gvsig.expressionevaluator.Expression expression) - Specified by:
setReferenceSystemin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy
-