public interface ILabelingStrategy
extends org.gvsig.tools.persistence.Persistent
Modifier and Type | Method and Description |
---|---|
void |
draw(java.awt.image.BufferedImage mapImage,
java.awt.Graphics2D mapGraphics,
ViewPort viewPort,
org.gvsig.tools.task.Cancellable cancel,
double dpi)
Causes the labels to be drawn.
|
ILabelingMethod |
getLabelingMethod()
Returns the labeling method currently in use.
|
IPlacementConstraints |
getPlacementConstraints()
Returns the current placement constraints that determine the position
where the label is placed.
|
java.lang.String[] |
getUsedFields()
Returns a non-null String[] containing the names of the fields involved in the
labeling.
|
IZoomConstraints |
getZoomConstraints()
Returns the current placement constraints that determine the position
where the label is placed.
|
void |
print(java.awt.Graphics2D g,
ViewPort viewPort,
org.gvsig.tools.task.Cancellable cancel,
org.gvsig.compat.print.PrintAttributes properties)
Applies the printer properties to the rendering process to match its attributes.
|
void |
setLabelingMethod(ILabelingMethod method)
Sets the labeling method that will be used the next time the the draw is invoked.
|
void |
setLayer(FLayer layer) |
void |
setPlacementConstraints(IPlacementConstraints constraints)
Sets the PlacementConstraints that will determine where to place the labels.
|
void |
setZoomConstraints(IZoomConstraints constraints)
Sets the PlacementConstraints that will determine where to place the labels.
|
boolean |
shouldDrawLabels(double scale) |
void draw(java.awt.image.BufferedImage mapImage, java.awt.Graphics2D mapGraphics, ViewPort viewPort, org.gvsig.tools.task.Cancellable cancel, double dpi) throws org.gvsig.fmap.dal.exception.ReadException
mapImage
- mapGraphics
- viewPort
- cancel
- dpi
- TODOorg.gvsig.fmap.dal.exception.ReadException
ILabelingMethod getLabelingMethod()
ILabelingMethod
IPlacementConstraints getPlacementConstraints()
java.lang.String[] getUsedFields()
IZoomConstraints getZoomConstraints()
void print(java.awt.Graphics2D g, ViewPort viewPort, org.gvsig.tools.task.Cancellable cancel, org.gvsig.compat.print.PrintAttributes properties) throws org.gvsig.fmap.dal.exception.ReadException
g
- viewPort
- cancel
- properties
- org.gvsig.fmap.dal.exception.ReadException
void setLabelingMethod(ILabelingMethod method)
method,
- the new labeling methodvoid setLayer(FLayer layer)
void setPlacementConstraints(IPlacementConstraints constraints)
constraints
- void setZoomConstraints(IZoomConstraints constraints)
constraints
- boolean shouldDrawLabels(double scale)
Copyright © 2013 gvSIG Association. All rights reserved.