|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.maps.ephemera.EphemeraLib
public class EphemeraLib
Any helpful methods used by Ephemera.
Copyright 2007 Paul Reavis
| Field Summary | |
|---|---|
static double |
DEGREES_TO_BYTE
|
static double |
RADIANS_TO_BYTE
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final double DEGREES_TO_BYTE
public static final double RADIANS_TO_BYTE
| Method Detail |
|---|
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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||