public class AttrInTableLabelingStrategy extends AbstractCartographicSupport implements IAttrInTableLabelingStrategy
| Modifier and Type | Class and Description |
|---|---|
static class |
AttrInTableLabelingStrategy.RegisterPersistence |
CartographicSupport.CartographicContext| Modifier and Type | Field and Description |
|---|---|
static double |
MIN_TEXT_SIZE |
NAMEPAPER, WORLD| Constructor and Description |
|---|
AttrInTableLabelingStrategy() |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(java.awt.image.BufferedImage image,
java.awt.Graphics2D g,
double scale,
ViewPort viewPort,
Cancellable cancel,
double dpi)
Causes the labels to be drawn.
|
java.lang.String |
getColorField() |
java.awt.Color |
getColorFont() |
java.awt.Color |
getFixedColor() |
double |
getFixedSize() |
java.awt.Font |
getFont() |
java.lang.String |
getHeightField() |
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 |
getRotationField() |
java.lang.String |
getTextField() |
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 |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
void |
print(java.awt.Graphics2D g,
double scale,
ViewPort viewPort,
Cancellable cancel,
PrintAttributes props)
Applies the printer properties to the rendering process to match its attributes.
|
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
void |
setColorField(java.lang.String colorFieldName) |
void |
setColorFont(java.awt.Color colorFont) |
void |
setFixedColor(java.awt.Color fixedColor) |
void |
setFixedSize(double fixedSize) |
void |
setFont(java.awt.Font selFont) |
void |
setHeightField(java.lang.String heightFieldName)
Sets the field that contains the size of the text.
|
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 |
setRotationField(java.lang.String rotationFieldName) |
void |
setTextField(java.lang.String textFieldName) |
void |
setUsesFixedColor(boolean b) |
void |
setUsesFixedSize(boolean b) |
void |
setZoomConstraints(IZoomConstraints constraints)
Sets the PlacementConstraints that will determine where to place the labels.
|
boolean |
shouldDrawLabels(double scale) |
boolean |
usesFixedColor() |
boolean |
usesFixedSize() |
copyCartographicContext, getCartographicContext, getReferenceSystem, getUnit, isInPixels, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setReferenceSystem, setUnit, toCartographicUnitsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcopyCartographicContext, copyCartographicContext, getCartographicContext, getReferenceSystem, getUnit, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setReferenceSystem, setUnit, toCartographicUnitspublic static final double MIN_TEXT_SIZE
public ILabelingMethod getLabelingMethod()
ILabelingStrategygetLabelingMethod in interface ILabelingStrategyILabelingMethodpublic void setLabelingMethod(ILabelingMethod method)
ILabelingStrategysetLabelingMethod in interface ILabelingStrategypublic IPlacementConstraints getPlacementConstraints()
ILabelingStrategygetPlacementConstraints in interface ILabelingStrategypublic void setPlacementConstraints(IPlacementConstraints constraints)
ILabelingStrategysetPlacementConstraints in interface ILabelingStrategypublic IZoomConstraints getZoomConstraints()
ILabelingStrategygetZoomConstraints in interface ILabelingStrategypublic void setZoomConstraints(IZoomConstraints constraints)
ILabelingStrategysetZoomConstraints in interface ILabelingStrategypublic void draw(java.awt.image.BufferedImage image,
java.awt.Graphics2D g,
double scale,
ViewPort viewPort,
Cancellable cancel,
double dpi)
throws ReadException
ILabelingStrategydraw in interface ILabelingStrategydpi - TODOReadExceptionpublic java.lang.String getRotationField()
getRotationField in interface IAttrInTableLabelingStrategypublic java.lang.String getTextField()
getTextField in interface IAttrInTableLabelingStrategypublic java.lang.String getHeightField()
getHeightField in interface IAttrInTableLabelingStrategypublic java.lang.String getColorField()
getColorField in interface IAttrInTableLabelingStrategypublic void setTextField(java.lang.String textFieldName)
setTextField in interface IAttrInTableLabelingStrategypublic void setRotationField(java.lang.String rotationFieldName)
setRotationField in interface IAttrInTableLabelingStrategypublic void setHeightField(java.lang.String heightFieldName)
setHeightField in interface IAttrInTableLabelingStrategyheightFieldName - public void setColorField(java.lang.String colorFieldName)
setColorField in interface IAttrInTableLabelingStrategypublic void print(java.awt.Graphics2D g,
double scale,
ViewPort viewPort,
Cancellable cancel,
PrintAttributes props)
throws ReadException
ILabelingStrategyprint in interface ILabelingStrategyReadExceptionpublic void setUsesFixedSize(boolean b)
setUsesFixedSize in interface IAttrInTableLabelingStrategypublic boolean usesFixedSize()
usesFixedSize in interface IAttrInTableLabelingStrategypublic double getFixedSize()
getFixedSize in interface IAttrInTableLabelingStrategypublic void setFixedSize(double fixedSize)
setFixedSize in interface IAttrInTableLabelingStrategypublic void setUsesFixedColor(boolean b)
setUsesFixedColor in interface IAttrInTableLabelingStrategypublic boolean usesFixedColor()
usesFixedColor in interface IAttrInTableLabelingStrategypublic java.awt.Color getFixedColor()
getFixedColor in interface IAttrInTableLabelingStrategypublic void setFixedColor(java.awt.Color fixedColor)
setFixedColor in interface IAttrInTableLabelingStrategypublic java.lang.String[] getUsedFields()
ILabelingStrategygetUsedFields in interface ILabelingStrategypublic void setLayer(FLayer layer)
setLayer in interface ILabelingStrategypublic boolean shouldDrawLabels(double scale)
shouldDrawLabels in interface ILabelingStrategypublic java.awt.Color getColorFont()
getColorFont in interface IAttrInTableLabelingStrategypublic void setColorFont(java.awt.Color colorFont)
setColorFont in interface IAttrInTableLabelingStrategypublic java.awt.Font getFont()
getFont in interface IAttrInTableLabelingStrategypublic void setFont(java.awt.Font selFont)
setFont in interface IAttrInTableLabelingStrategypublic void loadFromState(PersistentState state) throws PersistenceException
PersistentloadFromState in interface PersistentPersistenceExceptionpublic void saveToState(PersistentState state) throws PersistenceException
PersistentsaveToState in interface PersistentPersistenceException