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(BufferedImage image,
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(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()
ILabelingStrategyvoid setLabelingStrategy(ILabelingStrategy strategy)
strategy - void drawLabels(BufferedImage image, Graphics2D g, ViewPort viewPort, Cancellable cancel, double scale, double dpi) throws ReadException
image - g - viewPort - cancel - scale - dpi - ReadExceptionvoid printLabels(Graphics2D g, ViewPort viewPort, Cancellable cancel, double scale, PrintAttributes properties) throws ReadException
ReadException