Package org.gvsig.labeling.placements
Class MultiShapePlacement
java.lang.Object
org.gvsig.labeling.placements.MultiShapePlacement
- All Implemented Interfaces:
ILabelPlacement
-
Constructor Summary
ConstructorsConstructorDescriptionMultiShapePlacement(ILabelPlacement pointPlacement, ILabelPlacement linePlacement, ILabelPlacement polygonPlacement) Creates a new instance of MultiShapePlacement initializing the respective placements to those passed as parameters. -
Method Summary
Modifier and TypeMethodDescriptionArrayList<org.gvsig.symbology.fmap.mapcontext.rendering.legend.styling.LabelLocationMetrics> guess(org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelClass lc, org.gvsig.fmap.geom.Geometry geom, org.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints placementConstraints, double cartographicSymbolSize, org.gvsig.tools.task.Cancellable cancel, org.gvsig.fmap.mapcontext.ViewPort vp) booleanisSuitableFor(org.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints placementConstraints, int shapeType)
-
Constructor Details
-
MultiShapePlacement
public MultiShapePlacement(ILabelPlacement pointPlacement, ILabelPlacement linePlacement, ILabelPlacement polygonPlacement) Creates a new instance of MultiShapePlacement initializing the respective placements to those passed as parameters. Null values are allowed for the parameters and will cause that no label will be placed when the geometry belongs to such null values.- Parameters:
pointPlacement- , the placement for pointslinePlacement- , the placement for linespolygonPlacement- , the placement for polygons
-
-
Method Details
-
guess
public ArrayList<org.gvsig.symbology.fmap.mapcontext.rendering.legend.styling.LabelLocationMetrics> guess(org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelClass lc, org.gvsig.fmap.geom.Geometry geom, org.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints placementConstraints, double cartographicSymbolSize, org.gvsig.tools.task.Cancellable cancel, org.gvsig.fmap.mapcontext.ViewPort vp) - Specified by:
guessin interfaceILabelPlacement
-
isSuitableFor
public boolean isSuitableFor(org.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints placementConstraints, int shapeType) - Specified by:
isSuitableForin interfaceILabelPlacement
-