Class MultiShapePlacement

java.lang.Object
org.gvsig.labeling.placements.MultiShapePlacement
All Implemented Interfaces:
ILabelPlacement

public class MultiShapePlacement extends Object implements ILabelPlacement
  • Constructor Summary

    Constructors
    Constructor
    Description
    MultiShapePlacement(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 Type
    Method
    Description
    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)
     
    boolean
    isSuitableFor(org.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints placementConstraints, int shapeType)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 points
      linePlacement - , the placement for lines
      polygonPlacement - , 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:
      guess in interface ILabelPlacement
    • isSuitableFor

      public boolean isSuitableFor(org.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints placementConstraints, int shapeType)
      Specified by:
      isSuitableFor in interface ILabelPlacement