Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ABOVE_LINE |
static java.lang.String |
ABOVE_TEXT |
static java.lang.String |
BELOW_LINE |
static java.lang.String |
BELOW_TEXT |
static java.lang.String |
CENTER |
static java.lang.String |
CENTER_TEXT |
static java.lang.String |
DEFAULT |
static java.lang.String |
DEFAULT_TEXT |
static java.lang.String |
FID_COLUMN |
static int |
FONT_BASE_SIZE |
java.lang.String |
horizontalPosition |
static java.lang.String[] |
horizontalPositionLookup |
static int |
JUSTIFY_CENTER |
static java.lang.String |
JUSTIFY_CENTER_TEXT |
static int |
JUSTIFY_LEFT |
static java.lang.String |
JUSTIFY_LEFT_TEXT |
static int |
JUSTIFY_RIGHT |
static java.lang.String |
JUSTIFY_RIGHT_TEXT |
static java.lang.String |
LEFT_SIDE |
static java.lang.String |
LEFT_SIDE_TEXT |
static java.lang.String |
MIDDLE_TEXT |
static java.lang.String |
ON_LINE |
static java.lang.String |
RIGHT_SIDE |
static java.lang.String |
RIGHT_SIDE_TEXT |
java.lang.String |
verticalAlignment |
static java.lang.String[] |
verticalAlignmentLookup |
Constructor and Description |
---|
LabelStyle() |
Modifier and Type | Method and Description |
---|---|
static double |
angle(Feature feature,
java.lang.String angleAttributeName,
double defaultAngle) |
java.lang.Object |
clone() |
com.vividsolutions.jts.geom.Coordinate |
findPoint(com.vividsolutions.jts.geom.Geometry geometry)
Find a point at upper-left, upper-center, upper-right, center-left,
center, center-right, lower-left, lower-center or lower-right of the
geometry envelope.
|
java.lang.String |
getAngleAttribute() |
java.lang.String |
getAttribute() |
java.awt.Color |
getColor() |
java.awt.Font |
getFont() |
double |
getHeight() |
java.lang.String |
getHeightAttribute() |
boolean |
getHideAtScale() |
boolean |
getHidingOverlappingLabels() |
int |
getHorizontalAlignment() |
double |
getHorizontalAlignmentOffset(java.lang.String text) |
java.lang.String |
getHorizontalPosition() |
java.awt.Color |
getOutlineColor() |
boolean |
getOutlineShowing() |
double |
getOutlineWidth() |
double |
getScaleToHideAt() |
java.lang.String |
getVerticalAlignment() |
double |
getVerticalAlignmentOffset(int dim) |
static double |
height(Feature feature,
java.lang.String heightAttributeName,
double defaultHeight) |
void |
initialize(Layer layer)
Called before #paint is applied to each Feature.
|
boolean |
isEnabled() |
boolean |
isHidingAtScale() |
boolean |
isHidingOverlappingLabels() |
boolean |
isScaling() |
void |
paint(Feature f,
java.awt.Graphics2D g,
Viewport viewport) |
void |
paint(java.awt.Graphics2D g,
java.lang.String text,
Viewport viewport,
java.awt.geom.Point2D viewCentre,
double angle,
double height,
int dim) |
void |
setAngleAttribute(java.lang.String angleAttribute) |
void |
setAttribute(java.lang.String attribute) |
void |
setColor(java.awt.Color color) |
void |
setEnabled(boolean enabled) |
void |
setFont(java.awt.Font font) |
void |
setHeight(double height) |
void |
setHeightAttribute(java.lang.String heightAttribute) |
void |
setHideAtScale(boolean hideAtScale) |
void |
setHidingOverlappingLabels(boolean hidingOverlappingLabels) |
void |
setHorizontalAlignment(int horizontalAlignment) |
void |
setHorizontalPosition(java.lang.String horizontalPosition) |
void |
setOutlineColor(java.awt.Color outlineColor) |
void |
setOutlineColor(java.awt.Color outlineColor,
int alpha) |
void |
setOutlineShowing(boolean outlineShowing) |
void |
setOutlineWidth(double outlineWidth) |
void |
setScaleToHideAt(double scaleToHideAt) |
void |
setScaling(boolean scaling) |
void |
setVerticalAlignment(java.lang.String verticalAlignment) |
public static final int FONT_BASE_SIZE
public static final java.lang.String FID_COLUMN
public static final java.lang.String ABOVE_LINE
public static final java.lang.String ON_LINE
public static final java.lang.String BELOW_LINE
public static final java.lang.String DEFAULT
public static final java.lang.String[] verticalAlignmentLookup
public static final java.lang.String LEFT_SIDE
public static final java.lang.String CENTER
public static final java.lang.String RIGHT_SIDE
public static final java.lang.String[] horizontalPositionLookup
public static java.lang.String DEFAULT_TEXT
public static java.lang.String ABOVE_TEXT
public static java.lang.String MIDDLE_TEXT
public static java.lang.String BELOW_TEXT
public static final java.lang.String LEFT_SIDE_TEXT
public static final java.lang.String CENTER_TEXT
public static final java.lang.String RIGHT_SIDE_TEXT
public static final java.lang.String JUSTIFY_CENTER_TEXT
public static final java.lang.String JUSTIFY_LEFT_TEXT
public static final java.lang.String JUSTIFY_RIGHT_TEXT
public static final int JUSTIFY_CENTER
public static final int JUSTIFY_LEFT
public static final int JUSTIFY_RIGHT
public java.lang.String verticalAlignment
public java.lang.String horizontalPosition
public void initialize(Layer layer)
Style
initialize
in interface Style
public void paint(Feature f, java.awt.Graphics2D g, Viewport viewport) throws java.awt.geom.NoninvertibleTransformException
public static double angle(Feature feature, java.lang.String angleAttributeName, double defaultAngle)
public com.vividsolutions.jts.geom.Coordinate findPoint(com.vividsolutions.jts.geom.Geometry geometry)
public static double height(Feature feature, java.lang.String heightAttributeName, double defaultHeight)
public void paint(java.awt.Graphics2D g, java.lang.String text, Viewport viewport, java.awt.geom.Point2D viewCentre, double angle, double height, int dim)
public double getVerticalAlignmentOffset(int dim)
public double getHorizontalAlignmentOffset(java.lang.String text)
public java.lang.String getAttribute()
public java.lang.String getAngleAttribute()
public java.lang.String getHeightAttribute()
public boolean isEnabled()
public java.awt.Color getColor()
public java.awt.Font getFont()
public boolean isScaling()
public double getHeight()
public boolean isHidingOverlappingLabels()
public boolean isHidingAtScale()
public boolean getHideAtScale()
public java.lang.String getVerticalAlignment()
public java.lang.String getHorizontalPosition()
public int getHorizontalAlignment()
public boolean getHidingOverlappingLabels()
public boolean getOutlineShowing()
public double getOutlineWidth()
public double getScaleToHideAt()
public java.awt.Color getOutlineColor()
public void setVerticalAlignment(java.lang.String verticalAlignment)
public void setHorizontalPosition(java.lang.String horizontalPosition)
public void setHorizontalAlignment(int horizontalAlignment)
public void setAttribute(java.lang.String attribute)
public void setAngleAttribute(java.lang.String angleAttribute)
public void setHeightAttribute(java.lang.String heightAttribute)
public void setEnabled(boolean enabled)
setEnabled
in interface Style
public void setColor(java.awt.Color color)
public void setFont(java.awt.Font font)
public void setScaling(boolean scaling)
public void setHeight(double height)
public void setHidingOverlappingLabels(boolean hidingOverlappingLabels)
public void setOutlineShowing(boolean outlineShowing)
public void setOutlineWidth(double outlineWidth)
public void setScaleToHideAt(double scaleToHideAt)
public void setOutlineColor(java.awt.Color outlineColor, int alpha)
public void setOutlineColor(java.awt.Color outlineColor)
public void setHideAtScale(boolean hideAtScale)