public class EphemeraLib
extends java.lang.Object
Copyright 2007 Paul Reavis
| Modifier and Type | Field and Description |
|---|---|
static double |
DEGREES_TO_BYTE |
static double |
RADIANS_TO_BYTE |
| Modifier and Type | Method and Description |
|---|---|
static java.awt.geom.Rectangle2D |
findTextBounds(MapApp app,
MapSet mapset,
java.lang.String textStyle,
java.lang.String text)
Calculates the pixel bounds of the passed String given the passed
text style name, Mapset containing text style, and valid MapApp.
|
static double |
findTextHeight(MapApp app,
MapSet mapset,
java.lang.String textStyle,
java.lang.String text)
Calculates the pixel height of the passed String given the passed
text style name, Mapset containing text style, and valid MapApp.
|
static double |
findTextWidth(MapApp app,
MapSet mapset,
java.lang.String textStyle,
java.lang.String text)
Calculates the pixel width of the passed String given the passed
text style name, Mapset containing text style, and valid MapApp.
|
public static final double DEGREES_TO_BYTE
public static final double RADIANS_TO_BYTE
public static double findTextWidth(MapApp app, MapSet mapset, java.lang.String textStyle, java.lang.String text)
Checks for line breaks, returning only the longest width line of text.
app - - valid MapApp.mapset - - MapSet containing text style.textStyle - - String name of text style.text - - String of text to find pixel width of.java.lang.NullPointerException - if anything is null.public static double findTextHeight(MapApp app, MapSet mapset, java.lang.String textStyle, java.lang.String text)
app - - valid MapApp.mapset - - MapSet containing text style.textStyle - - String name of text style.text - - String of text to find pixel height of.java.lang.NullPointerException - if anything is null.public static java.awt.geom.Rectangle2D findTextBounds(MapApp app, MapSet mapset, java.lang.String textStyle, java.lang.String text)
app - - valid MapApp.mapset - - MapSet containing text style.textStyle - - String name of text style.text - - String of text to find pixel bounds of.java.lang.NullPointerException - if anything is null.