|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.v3x.apps.MapBrowser.rover.RoverLegend
public class RoverLegend
Describes the visual legend for drawing a rover tile set onscreen.
| Field Summary | |
|---|---|
java.awt.Color |
backgroundColor
|
FontSpecification[] |
fontSpecs
|
java.util.ArrayList |
goedelNames
|
java.awt.Color |
hiliteColor
|
java.awt.Color |
hiliteTransColor
|
java.awt.Color |
indicatorColor
|
java.awt.Color |
indicatorTransColor
|
RoverRenderLegendItem[] |
legendItemArray
|
java.awt.Color[] |
lineColors
|
java.awt.Stroke[] |
lineStrokes
|
RoverIconRotations[] |
pointIcons
|
boolean |
showTileBorders
|
boolean |
showTileNames
|
| Constructor Summary | |
|---|---|
RoverLegend()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getBackgroundColorName()
|
FontSpecification |
getDefaultTextStyle()
Default FontSpecification to use if none defined for a text style. |
java.lang.String |
getImageLibraryName()
|
java.util.ArrayList |
getLegendItems()
|
java.util.Map |
getLineColorNames()
|
java.util.Map |
getPointIconNames()
|
boolean |
getShowTileBorders()
|
boolean |
getShowTileNames()
|
java.util.Map |
getTextStyles()
FontSpecifications for each text style, indexed by style name. |
void |
initializeForRendering(java.io.File baseDir,
java.util.ArrayList goedelNames)
|
RoverLegendItem |
legendItemFor(float scale)
|
void |
reinitializeForRendering()
|
RoverRenderLegendItem |
renderLegendItemFor(float scale)
|
RoverRenderLegendItem |
renderLegendItemFor(Scale scale)
|
void |
setBackgroundColorName(java.lang.String newName)
|
void |
setDefaultTextStyle(FontSpecification newStyle)
|
void |
setHiliteColorName(java.lang.String newName)
|
void |
setImageLibraryName(java.lang.String newName)
|
void |
setLegendItems(java.util.ArrayList newItems)
|
void |
setLineColorNames(java.util.Map newNames)
|
void |
setPointIconNames(java.util.Map newNames)
|
void |
setShowTileBorders(boolean tizit)
|
void |
setShowTileNames(boolean tizit)
|
void |
setTextStyles(java.util.Map newStyles)
|
static java.lang.String |
trimJustification(java.lang.String textStyleName)
Trims the -left, -right, -center from text style names. |
java.util.Set |
visibleStyles()
Returns all styles visible in at least one LOD. |
java.util.ArrayList |
visibleStylesByLOD()
Returns all styles visible by LOD. |
java.util.Set |
visibleStylesForLOD(int lod)
Returns all styles visible in the given LOD. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public java.awt.Color backgroundColor
public boolean showTileNames
public boolean showTileBorders
public RoverRenderLegendItem[] legendItemArray
public RoverIconRotations[] pointIcons
public java.awt.Color[] lineColors
public java.awt.Stroke[] lineStrokes
public FontSpecification[] fontSpecs
public java.util.ArrayList goedelNames
public java.awt.Color hiliteColor
public java.awt.Color indicatorColor
public java.awt.Color hiliteTransColor
public java.awt.Color indicatorTransColor
| Constructor Detail |
|---|
public RoverLegend()
| Method Detail |
|---|
public static java.lang.String trimJustification(java.lang.String textStyleName)
public void reinitializeForRendering()
public void initializeForRendering(java.io.File baseDir,
java.util.ArrayList goedelNames)
public RoverRenderLegendItem renderLegendItemFor(Scale scale)
public RoverRenderLegendItem renderLegendItemFor(float scale)
public RoverLegendItem legendItemFor(float scale)
public java.util.Set visibleStylesForLOD(int lod)
public java.util.ArrayList visibleStylesByLOD()
public java.util.Set visibleStyles()
public void setLegendItems(java.util.ArrayList newItems)
public java.util.ArrayList getLegendItems()
public java.lang.String getBackgroundColorName()
public void setBackgroundColorName(java.lang.String newName)
public boolean getShowTileBorders()
public void setShowTileBorders(boolean tizit)
public boolean getShowTileNames()
public void setShowTileNames(boolean tizit)
public void setPointIconNames(java.util.Map newNames)
public void setLineColorNames(java.util.Map newNames)
public java.util.Map getPointIconNames()
public java.util.Map getLineColorNames()
public java.lang.String getImageLibraryName()
public void setImageLibraryName(java.lang.String newName)
public java.util.Map getTextStyles()
public void setTextStyles(java.util.Map newStyles)
public FontSpecification getDefaultTextStyle()
public void setDefaultTextStyle(FontSpecification newStyle)
public void setHiliteColorName(java.lang.String newName)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||