Class LabelStyle
- java.lang.Object
-
- org.locationtech.jts.jump.workbench.ui.renderer.style.LabelStyle
-
-
Field Summary
Fields Modifier and Type Field Description static String
ABOVE_LINE
static String
BELOW_LINE
static String
FID_COLUMN
static int
FONT_BASE_SIZE
static String
ON_LINE
String
verticalAlignment
-
Constructor Summary
Constructors Constructor Description LabelStyle()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static double
angle(Feature feature, String angleAttributeName, double defaultAngle)
Object
clone()
String
getAngleAttribute()
String
getAttribute()
Color
getColor()
Font
getFont()
double
getHeight()
String
getHeightAttribute()
String
getVerticalAlignment()
static double
height(Feature feature, String heightAttributeName, double defaultHeight)
void
initialize(Layer layer)
Called before #paint is applied to each Feature.boolean
isEnabled()
boolean
isHidingOverlappingLabels()
boolean
isScaling()
void
paint(Graphics2D g, String text, double viewportScale, Point2D viewCentre, double angle, double height, boolean linear)
void
paint(Feature f, Graphics2D g, Viewport viewport)
void
setAngleAttribute(String angleAttribute)
void
setAttribute(String attribute)
void
setColor(Color color)
void
setEnabled(boolean enabled)
void
setFont(Font font)
void
setHeight(double height)
void
setHeightAttribute(String heightAttribute)
void
setHidingOverlappingLabels(boolean hidingOverlappingLabels)
void
setScaling(boolean scaling)
void
setVerticalAlignment(String verticalAlignment)
-
-
-
Field Detail
-
FONT_BASE_SIZE
public static final int FONT_BASE_SIZE
- See Also:
- Constant Field Values
-
ABOVE_LINE
public static final String ABOVE_LINE
- See Also:
- Constant Field Values
-
ON_LINE
public static final String ON_LINE
- See Also:
- Constant Field Values
-
BELOW_LINE
public static final String BELOW_LINE
- See Also:
- Constant Field Values
-
FID_COLUMN
public static final String FID_COLUMN
- See Also:
- Constant Field Values
-
verticalAlignment
public String verticalAlignment
-
-
Method Detail
-
initialize
public void initialize(Layer layer)
Description copied from interface:Style
Called before #paint is applied to each Feature.- Specified by:
initialize
in interfaceStyle
-
paint
public void paint(Feature f, Graphics2D g, Viewport viewport) throws NoninvertibleTransformException
- Specified by:
paint
in interfaceStyle
- Throws:
NoninvertibleTransformException
-
height
public static double height(Feature feature, String heightAttributeName, double defaultHeight)
-
paint
public void paint(Graphics2D g, String text, double viewportScale, Point2D viewCentre, double angle, double height, boolean linear)
-
getAttribute
public String getAttribute()
-
getAngleAttribute
public String getAngleAttribute()
-
getHeightAttribute
public String getHeightAttribute()
-
getColor
public Color getColor()
-
getFont
public Font getFont()
-
isScaling
public boolean isScaling()
-
getHeight
public double getHeight()
-
isHidingOverlappingLabels
public boolean isHidingOverlappingLabels()
-
getVerticalAlignment
public String getVerticalAlignment()
-
setVerticalAlignment
public void setVerticalAlignment(String verticalAlignment)
-
setAttribute
public void setAttribute(String attribute)
-
setAngleAttribute
public void setAngleAttribute(String angleAttribute)
-
setHeightAttribute
public void setHeightAttribute(String heightAttribute)
-
setEnabled
public void setEnabled(boolean enabled)
- Specified by:
setEnabled
in interfaceStyle
-
setColor
public void setColor(Color color)
-
setFont
public void setFont(Font font)
-
setScaling
public void setScaling(boolean scaling)
-
setHeight
public void setHeight(double height)
-
setHidingOverlappingLabels
public void setHidingOverlappingLabels(boolean hidingOverlappingLabels)
-
-