public interface ILabelable
isLabeled()
and setIsLabeled()
), to manage the labeling strategy (getLabelingStrategy()
and setLabelingStrategy
). The labeling is performed by the drawLabels(..)
method.Modifier and Type | Method and Description |
---|---|
void |
drawLabels(java.awt.image.BufferedImage image,
java.awt.Graphics2D g,
ViewPort viewPort,
Cancellable cancel,
double scale,
double dpi)
Causes the labels to be drawn.
|
ILabelingStrategy |
getLabelingStrategy()
Returns the current labeling strategy
|
boolean |
isLabeled()
Returns true if labels are drawn, or false otherwise.
|
void |
printLabels(java.awt.Graphics2D g,
ViewPort viewPort,
Cancellable cancel,
double scale,
PrintAttributes properties) |
void |
setIsLabeled(boolean isLabeled)
Enables or disables the label drawing.
|
void |
setLabelingStrategy(ILabelingStrategy strategy)
Sets the new labeling strategy.
|
boolean isLabeled()
void setIsLabeled(boolean isLabeled)
isLabeled,
- if true then labels will be drawnILabelingStrategy getLabelingStrategy()
ILabelingStrategy
void setLabelingStrategy(ILabelingStrategy strategy)
strategy
- void drawLabels(java.awt.image.BufferedImage image, java.awt.Graphics2D g, ViewPort viewPort, Cancellable cancel, double scale, double dpi) throws ReadException
image
- g
- viewPort
- cancel
- scale
- dpi
- ReadException
void printLabels(java.awt.Graphics2D g, ViewPort viewPort, Cancellable cancel, double scale, PrintAttributes properties) throws ReadException
ReadException