Class LabelingFactory
java.lang.Object
org.gvsig.symbology.fmap.mapcontext.rendering.legend.styling.LabelingFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategycreateDefaultStrategy(org.gvsig.fmap.mapcontext.layers.FLayer layer) Creates a default labeling strategy from an XMLEntity.static org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategystatic org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategycreateStrategy(org.gvsig.fmap.mapcontext.layers.FLayer layer, org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingMethod method, org.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints placement, org.gvsig.fmap.mapcontext.rendering.legend.styling.IZoomConstraints zoom) Given a layer, a labeling method, a label placements constraints, and a label zoom constraints it will figure out the best ILabelingStrategy that meets all the needs.static voidsetDefaultLabelingStrategy(Class defaultLabelingStrategy)
-
Constructor Details
-
LabelingFactory
public LabelingFactory()
-
-
Method Details
-
createStrategy
public static org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategy createStrategy(org.gvsig.fmap.mapcontext.layers.FLayer layer, org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingMethod method, org.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints placement, org.gvsig.fmap.mapcontext.rendering.legend.styling.IZoomConstraints zoom) Given a layer, a labeling method, a label placements constraints, and a label zoom constraints it will figure out the best ILabelingStrategy that meets all the needs.- Parameters:
layer- , the target layermethod- , the desired methodsplacement- , the desired placement constraintszoom- , the desired zoom constraints- Returns:
- ILabelingStrategy
-
createDynamicLabelingStrategy
public static org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicLabelingStrategy createDynamicLabelingStrategy() -
createDefaultStrategy
public static org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategy createDefaultStrategy(org.gvsig.fmap.mapcontext.layers.FLayer layer) Creates a default labeling strategy from an XMLEntity.- Parameters:
layer-- Returns:
- an instance of DefaultStrategy
-
setDefaultLabelingStrategy
-