public interface ILabelingStrategy extends Persistent
| Modifier and Type | Method and Description |
|---|---|
void |
draw(BufferedImage mapImage,
Graphics2D mapGraphics,
double scale,
ViewPort viewPort,
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.
|
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(Graphics2D g,
double scale,
ViewPort viewPort,
Cancellable cancel,
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) |
loadFromState, saveToStateILabelingMethod getLabelingMethod()
ILabelingMethodvoid setLabelingMethod(ILabelingMethod method)
method, - the new labeling methodIPlacementConstraints getPlacementConstraints()
void setPlacementConstraints(IPlacementConstraints constraints)
constraints - IZoomConstraints getZoomConstraints()
void setZoomConstraints(IZoomConstraints constraints)
constraints - void draw(BufferedImage mapImage, Graphics2D mapGraphics, double scale, ViewPort viewPort, Cancellable cancel, double dpi) throws ReadException
mapImage - mapGraphics - viewPort - cancel - dpi - TODOReadExceptionvoid print(Graphics2D g, double scale, ViewPort viewPort, Cancellable cancel, PrintAttributes properties) throws ReadException
g - viewPort - cancel - properties - ReadExceptionString[] getUsedFields()
void setLayer(FLayer layer)
boolean shouldDrawLabels(double scale)