Class AttrInTableLabelingStrategy
java.lang.Object
org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractCartographicSupport
org.gvsig.symbology.fmap.mapcontext.rendering.legend.styling.AttrInTableLabelingStrategy
- All Implemented Interfaces:
org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategy,org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport,org.gvsig.symbology.fmap.mapcontext.rendering.legend.styling.IAttrInTableLabelingStrategy,org.gvsig.tools.persistence.Persistent
public class AttrInTableLabelingStrategy
extends org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractCartographicSupport
implements org.gvsig.symbology.fmap.mapcontext.rendering.legend.styling.IAttrInTableLabelingStrategy
LabelingStrategy used when the user wants to use label sizes, rotations, etc.
from the values included in fields of the datasource's table
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport
org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport.CartographicContext -
Field Summary
FieldsFields inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport
PAPER, WORLDFields inherited from interface org.gvsig.symbology.fmap.mapcontext.rendering.legend.styling.IAttrInTableLabelingStrategy
NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddraw(BufferedImage image, Graphics2D g, double scale, org.gvsig.fmap.mapcontext.ViewPort viewPort, org.gvsig.tools.task.Cancellable cancel, double dpi) doublegetFont()org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingMethodorg.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraintsString[]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 props) voidsaveToState(org.gvsig.tools.persistence.PersistentState state) voidsetColorField(String colorFieldName) voidsetColorFont(Color colorFont) voidsetFixedColor(Color fixedColor) voidsetFixedSize(double fixedSize) voidvoidsetHeightField(String heightFieldName) Sets the field that contains the size of the text.voidsetLabelingMethod(org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingMethod method) voidsetLayer(org.gvsig.fmap.mapcontext.layers.FLayer layer) voidsetPlacementConstraints(org.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints constraints) voidsetRotationField(String rotationFieldName) voidsetTextField(String textFieldName) 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, getReferenceSystem, getUnit, isInPixels, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setReferenceSystem, setUnit, 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, getReferenceSystem, getUnit, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setReferenceSystem, setUnit, toCartographicUnits
-
Field Details
-
MIN_TEXT_SIZE
public static final double MIN_TEXT_SIZE- See Also:
-
-
Constructor Details
-
AttrInTableLabelingStrategy
public AttrInTableLabelingStrategy()
-
-
Method Details
-
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
-
draw
public void draw(BufferedImage image, Graphics2D g, 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
-
getRotationField
- Specified by:
getRotationFieldin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.legend.styling.IAttrInTableLabelingStrategy
-
getTextField
- Specified by:
getTextFieldin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.legend.styling.IAttrInTableLabelingStrategy
-
getHeightField
- Specified by:
getHeightFieldin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.legend.styling.IAttrInTableLabelingStrategy
-
getColorField
- Specified by:
getColorFieldin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.legend.styling.IAttrInTableLabelingStrategy
-
setTextField
- Specified by:
setTextFieldin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.legend.styling.IAttrInTableLabelingStrategy
-
setRotationField
- Specified by:
setRotationFieldin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.legend.styling.IAttrInTableLabelingStrategy
-
setHeightField
Sets the field that contains the size of the text. The size is computed in meters. To use any other unit, call setUnit(int) with the scale factor from meters (for centimeters, call setUnitFactor(0.01)).- Specified by:
setHeightFieldin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.legend.styling.IAttrInTableLabelingStrategy- Parameters:
heightFieldName-
-
setColorField
- Specified by:
setColorFieldin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.legend.styling.IAttrInTableLabelingStrategy
-
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 props) 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
-
setUsesFixedSize
public void setUsesFixedSize(boolean b) - Specified by:
setUsesFixedSizein interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.legend.styling.IAttrInTableLabelingStrategy
-
usesFixedSize
public boolean usesFixedSize()- Specified by:
usesFixedSizein interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.legend.styling.IAttrInTableLabelingStrategy
-
getFixedSize
public double getFixedSize()- Specified by:
getFixedSizein interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.legend.styling.IAttrInTableLabelingStrategy
-
setFixedSize
public void setFixedSize(double fixedSize) - Specified by:
setFixedSizein interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.legend.styling.IAttrInTableLabelingStrategy
-
setUsesFixedColor
public void setUsesFixedColor(boolean b) - Specified by:
setUsesFixedColorin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.legend.styling.IAttrInTableLabelingStrategy
-
usesFixedColor
public boolean usesFixedColor()- Specified by:
usesFixedColorin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.legend.styling.IAttrInTableLabelingStrategy
-
getFixedColor
- Specified by:
getFixedColorin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.legend.styling.IAttrInTableLabelingStrategy
-
setFixedColor
- Specified by:
setFixedColorin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.legend.styling.IAttrInTableLabelingStrategy
-
getUsedFields
- Specified by:
getUsedFieldsin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategy
-
setLayer
public void setLayer(org.gvsig.fmap.mapcontext.layers.FLayer layer) - 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
-
getColorFont
- Specified by:
getColorFontin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.legend.styling.IAttrInTableLabelingStrategy
-
setColorFont
- Specified by:
setColorFontin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.legend.styling.IAttrInTableLabelingStrategy
-
getFont
- Specified by:
getFontin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.legend.styling.IAttrInTableLabelingStrategy
-
setFont
- Specified by:
setFontin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.legend.styling.IAttrInTableLabelingStrategy
-
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
-
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
-