NASA World Wind

gov.nasa.worldwind.render
Class BasicBalloonAttributes

java.lang.Object
  extended by gov.nasa.worldwind.render.BasicShapeAttributes
      extended by gov.nasa.worldwind.render.BasicBalloonAttributes
All Implemented Interfaces:
Exportable, BalloonAttributes, ShapeAttributes

public class BasicBalloonAttributes
extends BasicShapeAttributes
implements BalloonAttributes

Basic implementation of the BalloonAttributes interface. Extends BasicShapeAttributes to include attributes for World Wind Balloon shapes.


Field Summary
protected  String balloonShape
          Indicates the shape of the balloon's frame.
protected  int cornerRadius
          Indicates the radius of each rounded corner on the balloon's rectangular frame, in pixels.
protected  Font font
          Indicates the font used to display the balloon's text.
protected  Point imageOffset
          Indicates the location of the image source in pixels.
protected  double imageOpacity
          Indicates the balloon texture's opacity as a floating-point value from 0.0 to 1.0.
protected  String imageRepeat
          Specifies the balloon texture's horizontal and vertical repeat mode.
protected  Insets insets
          Indicates the padding between the balloon's content and its frame, in pixels.
protected  String leaderShape
          Indicates the shape of the balloon's leader.
protected  int leaderWidth
          Indicates the width of the balloon's leader, in pixels.
protected  Size maxSize
          Indicates the maximum width and height of the balloon's shape in the viewport.
protected  Offset offset
          Indicates the location at which the balloon's lower left corner is aligned.
protected  Size size
          Indicates the width and height of the balloon's shape in the viewport.
protected  Color textColor
          Indicates the color used to display the balloon's text.
 
Fields inherited from class gov.nasa.worldwind.render.BasicShapeAttributes
drawInterior, drawOutline, enableAntialiasing, enableLighting, imageScale, imageSource, interiorMaterial, interiorOpacity, outlineMaterial, outlineOpacity, outlineStippleFactor, outlineStipplePattern, outlineWidth, unresolved
 
Fields inherited from interface gov.nasa.worldwind.Exportable
FORMAT_NOT_SUPPORTED, FORMAT_PARTIALLY_SUPPORTED, FORMAT_SUPPORTED
 
Constructor Summary
BasicBalloonAttributes()
          Creates a new BasicBalloonAttributes with the default attributes.
BasicBalloonAttributes(BalloonAttributes attributes)
          Creates a new BasicBalloonAttributes configured with the specified attributes.
 
Method Summary
 ShapeAttributes copy()
          Returns a new ShapeAttributes instance of the same type as this ShapeAttributes who's properties are configured exactly as this ShapeAttributes.
 void copy(ShapeAttributes attributes)
          Copies the specified ShapeAttributes' properties into this object's properties.
 boolean equals(Object o)
           
 String getBalloonShape()
          Indicates the shape of the balloon's frame.
 int getCornerRadius()
          Indicates the radius of each rounded corner on the balloon's rectangular frame, in pixels.
 Font getFont()
          Indicates the font used to display the balloon's text.
 Point getImageOffset()
          Indicates the location of the balloon's texture (in pixels) relative to the balloon's upper left corner.
 double getImageOpacity()
          Indicates the opacity of the balloon's texture as a floating-point value in the range 0.0 to 1.0.
 String getImageRepeat()
          Indicates the balloon texture's horizontal and vertical repeat mode.
 Insets getInsets()
          Indicates the amount of space between the balloon's content and its frame, in pixels.
 String getLeaderShape()
          Indicates the shape of the balloon's leader.
 int getLeaderWidth()
          Indicates the width of the balloon's leader, in pixels.
 Size getMaximumSize()
          Indicates the maximum width and height of the balloon's shape in the viewport.
 Offset getOffset()
          Indicates the location relative to the balloon's screen reference point at which the balloon's frame shape is aligned.
 void getRestorableState(RestorableSupport restorableSupport, RestorableSupport.StateObject context)
          Saves the attributes' current state in the specified RestorableSupport.
 Size getSize()
          Indicates the width and height of the balloon's shape in the viewport.
 Color getTextColor()
          Indicates the color used to display the balloon's text.
 int hashCode()
           
 void restoreState(RestorableSupport restorableSupport, RestorableSupport.StateObject context)
          Restores the state of any attributes contained in the specified RestorableSupport.
 void setBalloonShape(String shape)
          Specifies the shape of the balloon's frame.
 void setCornerRadius(int radius)
          Specifies the radius of the rounded corner's on the balloon's rectangular frame in pixels.
 void setFont(Font font)
          Specifies the font in which to display the balloon's text.
 void setImageOffset(Point offset)
          Specifies the location of the balloon's texture (in pixels) relative to the balloon's upper left corner.
 void setImageOpacity(double opacity)
          Specifies the opacity of the balloon's texture as a floating-point value in the range 0.0 to 1.0.
 void setImageRepeat(String repeat)
          Specifies the balloon texture's horizontal and vertical repeat mode.
 void setInsets(Insets insets)
          Specifies the amount of space (in pixels) between the balloon's content and the edges of the balloon's frame.
 void setLeaderShape(String shape)
          Specifies the shape of the balloon's leader.
 void setLeaderWidth(int width)
          Specifies the width of the balloon's leader, in pixels.
 void setMaximumSize(Size maxSize)
          Specifies the maximum width and height of the balloon's shape in the viewport.
 void setOffset(Offset offset)
          Specifies a location relative to the balloon's screen reference point at which to align the balloon's frame shape.
 void setSize(Size size)
          Specifies the width and height of the balloon's shape in the viewport.
 void setTextColor(Color color)
          Specifies the color in which to display the balloon's text.
 
Methods inherited from class gov.nasa.worldwind.render.BasicShapeAttributes
export, exportAsKML, getImageScale, getImageSource, getInteriorMaterial, getInteriorOpacity, getOutlineMaterial, getOutlineOpacity, getOutlineStippleFactor, getOutlineStipplePattern, getOutlineWidth, isDrawInterior, isDrawOutline, isEnableAntialiasing, isEnableLighting, isExportFormatSupported, isUnresolved, setDrawInterior, setDrawOutline, setEnableAntialiasing, setEnableLighting, setImageScale, setImageSource, setInteriorMaterial, setInteriorOpacity, setOutlineMaterial, setOutlineOpacity, setOutlineStippleFactor, setOutlineStipplePattern, setOutlineWidth, setUnresolved
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gov.nasa.worldwind.render.ShapeAttributes
getImageScale, getImageSource, getInteriorMaterial, getInteriorOpacity, getOutlineMaterial, getOutlineOpacity, getOutlineStippleFactor, getOutlineStipplePattern, getOutlineWidth, isDrawInterior, isDrawOutline, isEnableAntialiasing, isEnableLighting, isUnresolved, setDrawInterior, setDrawOutline, setEnableAntialiasing, setEnableLighting, setImageScale, setImageSource, setInteriorMaterial, setInteriorOpacity, setOutlineMaterial, setOutlineOpacity, setOutlineStippleFactor, setOutlineStipplePattern, setOutlineWidth, setUnresolved
 
Methods inherited from interface gov.nasa.worldwind.Exportable
export, isExportFormatSupported
 

Field Detail

balloonShape

protected String balloonShape
Indicates the shape of the balloon's frame. Initially null.


cornerRadius

protected int cornerRadius
Indicates the radius of each rounded corner on the balloon's rectangular frame, in pixels. Initially 0.


font

protected Font font
Indicates the font used to display the balloon's text. Initially null.


imageOffset

protected Point imageOffset
Indicates the location of the image source in pixels. Initially null.


imageOpacity

protected double imageOpacity
Indicates the balloon texture's opacity as a floating-point value from 0.0 to 1.0. Initially 0.0.


imageRepeat

protected String imageRepeat
Specifies the balloon texture's horizontal and vertical repeat mode. Initially null.


insets

protected Insets insets
Indicates the padding between the balloon's content and its frame, in pixels. Initially null.


leaderShape

protected String leaderShape
Indicates the shape of the balloon's leader. Initially null.


leaderWidth

protected int leaderWidth
Indicates the width of the balloon's leader, in pixels. Initially 0.


maxSize

protected Size maxSize
Indicates the maximum width and height of the balloon's shape in the viewport. Initially null.


offset

protected Offset offset
Indicates the location at which the balloon's lower left corner is aligned. Initially null.


size

protected Size size
Indicates the width and height of the balloon's shape in the viewport. Initially null.


textColor

protected Color textColor
Indicates the color used to display the balloon's text. Initially null.

Constructor Detail

BasicBalloonAttributes

public BasicBalloonAttributes()
Creates a new BasicBalloonAttributes with the default attributes. The default attributes are as follows:

AttributeDefault Value
unresolvedtrue
drawInteriortrue
drawOutlinetrue
enableAntialiasingtrue
enableLightingfalse
interiorMaterialMaterial.WHITE
outlineMaterial171, 171, 171 (red, green, blue)
interiorOpacity1.0
outlineOpacity1.0
outlineWidth1.0
outlineStippleFactor0
outlineStipplePattern0xF0F0
interiorImageSourcenull
interiorImageScale1.0
size350x350 pixels (width x height)
maximumSizenull
offset40,60 pixels (x, y)
insets30,15,15,15 (top, left, bottom, right)
balloonShapeAVKey.SHAPE_RECTANGLE
leaderShapeAVKey.SHAPE_TRIANGLE
leaderWidth40.0
cornerRadius20.0
fontArial Plain 12
textColorColor.BLACK
imageOffset0,0 (x, y)
imageOpacity1
imageRepeatAVKey.REPEAT_XY


BasicBalloonAttributes

public BasicBalloonAttributes(BalloonAttributes attributes)
Creates a new BasicBalloonAttributes configured with the specified attributes.

Parameters:
attributes - the attributes to configure the new BasicBalloonAttributes with.
Throws:
IllegalArgumentException - if attributes is null.
Method Detail

copy

public ShapeAttributes copy()
Returns a new ShapeAttributes instance of the same type as this ShapeAttributes who's properties are configured exactly as this ShapeAttributes.

Overrides the superclass' behavior to return a new BasicBalloonAttributes.

Specified by:
copy in interface ShapeAttributes
Overrides:
copy in class BasicShapeAttributes
Returns:
a copy of this ShapeAttributes.

copy

public void copy(ShapeAttributes attributes)
Copies the specified ShapeAttributes' properties into this object's properties. This does nothing if the specified attributes is null.

Extends the superclass' behavior to copy BalloonAttributes if the specified attributes is an instance of BalloonAttributes.

Specified by:
copy in interface ShapeAttributes
Overrides:
copy in class BasicShapeAttributes
Parameters:
attributes - the attributes to copy.

equals

public boolean equals(Object o)
Overrides:
equals in class BasicShapeAttributes

getBalloonShape

public String getBalloonShape()
Indicates the shape of the balloon's frame.

Specified by:
getBalloonShape in interface BalloonAttributes
Returns:
the balloon frame's shape, either AVKey.SHAPE_NONE, AVKey.SHAPE_RECTANGLE, or AVKey.SHAPE_ELLIPSE.
See Also:
BalloonAttributes.setBalloonShape(String)

getCornerRadius

public int getCornerRadius()
Indicates the radius of each rounded corner on the balloon's rectangular frame, in pixels. The returned value is either zero or a positive integer. If the returned value is zero the balloon's rectangular frame has sharp corners. This value is ignored if the balloon's shape is AVKey.SHAPE_ELLIPSE.

Specified by:
getCornerRadius in interface BalloonAttributes
Returns:
the radius of the rounded corner's on the balloon's on the balloon's rectangular frame, in pixels.
See Also:
BalloonAttributes.setCornerRadius(int)

getFont

public Font getFont()
Indicates the font used to display the balloon's text. This value may be ignored if the balloon's text contains HTML.

Specified by:
getFont in interface BalloonAttributes
Returns:
the balloon's text font.
See Also:
BalloonAttributes.setFont(java.awt.Font)

getImageOffset

public Point getImageOffset()
Indicates the location of the balloon's texture (in pixels) relative to the balloon's upper left corner.

Specified by:
getImageOffset in interface BalloonAttributes
Returns:
the location of the balloon's texture in pixels.
See Also:
BalloonAttributes.setImageOffset(java.awt.Point)

getImageOpacity

public double getImageOpacity()
Indicates the opacity of the balloon's texture as a floating-point value in the range 0.0 to 1.0.

Specified by:
getImageOpacity in interface BalloonAttributes
Returns:
the balloon texture's opacity as a floating-point value from 0.0 to 1.0.
See Also:
BalloonAttributes.setImageOpacity(double)

getImageRepeat

public String getImageRepeat()
Indicates the balloon texture's horizontal and vertical repeat mode.

Specified by:
getImageRepeat in interface BalloonAttributes
Returns:
the balloon texture's repeat mode, one of AVKey.REPEAT_NONE, AVKey.REPEAT_X, AVKey.REPEAT_Y, or AVKey.REPEAT_XY
See Also:
BalloonAttributes.setImageRepeat(String)

getInsets

public Insets getInsets()
Indicates the amount of space between the balloon's content and its frame, in pixels. The balloon's content area decreases to account for the returned space.

Specified by:
getInsets in interface BalloonAttributes
Returns:
the padding between the balloon's content and its frame, in pixels.
See Also:
BalloonAttributes.setInsets(java.awt.Insets)

getLeaderShape

public String getLeaderShape()
Indicates the shape of the balloon's leader.

Specified by:
getLeaderShape in interface BalloonAttributes
Returns:
the balloon leader's shape, either AVKey.SHAPE_NONE or AVKey.SHAPE_TRIANGLE.
See Also:
BalloonAttributes.setLeaderShape(String)

getLeaderWidth

public int getLeaderWidth()
Indicates the width of the balloon's leader, in pixels. The returned value is either zero or a positive integer.

Specified by:
getLeaderWidth in interface BalloonAttributes
Returns:
the width of the balloon's leader (in pixels) where it intersects the balloon's frame.
See Also:
BalloonAttributes.setLeaderWidth(int)

getMaximumSize

public Size getMaximumSize()
Indicates the maximum width and height of the balloon's shape in the viewport. If the balloon's shape is AVKey.SHAPE_RECTANGLE, then the returned Size indicates the rectangle's maximum width and height. If the balloon's shape is AVKey.SHAPE_ELLIPSE, then the returned Size indicates the ellipse's maximum x- and y-radii. This returns null if the balloon has no maximum size.

Specified by:
getMaximumSize in interface BalloonAttributes
Returns:
the maximum width and height of the balloon's shape in the viewport, or null if the balloon has no maximum size.

getOffset

public Offset getOffset()
Indicates the location relative to the balloon's screen reference point at which the balloon's frame shape is aligned. The balloon's lower left corner begins at the returned offset.

Specified by:
getOffset in interface BalloonAttributes
Returns:
the location at which the balloon's lower left corner is aligned.
See Also:
BalloonAttributes.setOffset(Offset)

getRestorableState

public void getRestorableState(RestorableSupport restorableSupport,
                               RestorableSupport.StateObject context)
Saves the attributes' current state in the specified RestorableSupport. If the StateObject is not null the state is appended to it. Otherwise the state is added to the RestorableSupport root. This state can be restored later by calling ShapeAttributes.restoreState(gov.nasa.worldwind.util.RestorableSupport, gov.nasa.worldwind.util.RestorableSupport.StateObject).

Specified by:
getRestorableState in interface ShapeAttributes
Overrides:
getRestorableState in class BasicShapeAttributes
Parameters:
restorableSupport - the RestorableSupport that receives the attributes' state.
context - the StateObject the state is appended to, if not null.

getSize

public Size getSize()
Indicates the width and height of the balloon's shape in the viewport. If the balloon's shape is AVKey.SHAPE_RECTANGLE, then the returned Size indicates the rectangle's width and height. If the balloon's shape is AVKey.SHAPE_ELLIPSE, then the returned Size indicates the ellipse's x- and y-radii.

Specified by:
getSize in interface BalloonAttributes
Returns:
the width and height of the balloon's shape in the viewport

getTextColor

public Color getTextColor()
Indicates the color used to display the balloon's text. This value may be ignored if the balloon's text contains HTML.

Specified by:
getTextColor in interface BalloonAttributes
Returns:
the balloon's text color.
See Also:
BalloonAttributes.setTextColor(java.awt.Color)

hashCode

public int hashCode()
Overrides:
hashCode in class BasicShapeAttributes

restoreState

public void restoreState(RestorableSupport restorableSupport,
                         RestorableSupport.StateObject context)
Restores the state of any attributes contained in the specified RestorableSupport. If the StateObject is not null it's searched for attribute state values, otherwise the RestorableSupport root is searched.

Specified by:
restoreState in interface ShapeAttributes
Overrides:
restoreState in class BasicShapeAttributes
Parameters:
restorableSupport - the RestorableSupport that contains the attributes' state.
context - the StateObject to search for state values, if not null.

setBalloonShape

public void setBalloonShape(String shape)
Specifies the shape of the balloon's frame. The shape may be one of the following:

If the shape is AVKey.SHAPE_NONE, the balloon's content is displayed in a rectangle in the viewport without any decoration. The rectangle's dimension in the viewport are specified by calling BalloonAttributes.setSize(Size).

If the shape is AVKey.SHAPE_RECTANGLE, the balloon is displayed as a rectangle in the viewport with optionally rounded corners. The rectangle's dimension in the viewport are specified by calling BalloonAttributes.setSize(Size). The rectangle's corner radius in pixels is specified by calling BalloonAttributes.setCornerRadius(int).

If the shape is AVKey.SHAPE_ELLIPSE, the balloon is displayed as an ellipse in the viewport. The ellipse's x- and y-radii are specified by calling BalloonAttributes.setSize(Size). The balloon's corner radius attribute is ignored.

Specified by:
setBalloonShape in interface BalloonAttributes
Parameters:
shape - the frame shape to use, either AVKey.SHAPE_NONE AVKey.SHAPE_RECTANGLE or AVKey.SHAPE_ELLIPSE.
See Also:
BalloonAttributes.getBalloonShape()

setCornerRadius

public void setCornerRadius(int radius)
Specifies the radius of the rounded corner's on the balloon's rectangular frame in pixels. The specified radius must be zero or a positive integer. Specifying a radius of zero causes the shape's rectangular frame to have sharp corners. This does nothing if the balloon's shape is AVKey.SHAPE_ELLIPSE.

Specified by:
setCornerRadius in interface BalloonAttributes
Parameters:
radius - the desired radius, in pixels.
See Also:
BalloonAttributes.getCornerRadius()

setFont

public void setFont(Font font)
Specifies the font in which to display the balloon's text. The specified font may be ignored if the balloon's text contains HTML.

Specified by:
setFont in interface BalloonAttributes
Parameters:
font - the font to use for the balloon's text.
See Also:
BalloonAttributes.getFont()

setImageOffset

public void setImageOffset(Point offset)
Specifies the location of the balloon's texture (in pixels) relative to the balloon's upper left corner. The location is applied to the balloon's texture before the balloon's texture scale is applied.

Specified by:
setImageOffset in interface BalloonAttributes
Parameters:
offset - the location of the balloon's texture source in pixels.
See Also:
BalloonAttributes.getImageOffset()

setImageOpacity

public void setImageOpacity(double opacity)
Specifies the opacity of the balloon's texture as a floating-point value in the range 0.0 to 1.0. The specified opacity is multiplied by the shape's interior opacity to determine the texture's final opacity. A value of 1.0 specifies a completely opaque texture, and 0.0 specifies a completely transparent texture. Values in between specify a partially transparent texture.

Specified by:
setImageOpacity in interface BalloonAttributes
Parameters:
opacity - the balloon texture's opacity as a floating-point value from 0.0 to 1.0.
See Also:
BalloonAttributes.getImageOpacity()

setImageRepeat

public void setImageRepeat(String repeat)
Specifies the balloon texture's horizontal and vertical repeat mode. The repeat may be one of the following:

If repeat is AVKey.REPEAT_NONE, the balloon's texture is displayed according to its offset and scale without any repeating pattern.

If repeat is AVKey.REPEAT_X, AVKey.REPEAT_Y, or AVKey.REPEAT_XY, the balloon's texture is repeated along the X axis, along the Y axis, or along both the X and Y axes, respectively. The texture is repeated after its offset and scale are applied.

Specified by:
setImageRepeat in interface BalloonAttributes
Parameters:
repeat - the texture's repeat mode to use, one of AVKey.REPEAT_NONE, AVKey.REPEAT_X, AVKey.REPEAT_Y, or AVKey.REPEAT_XY.
See Also:
BalloonAttributes.getImageRepeat()

setInsets

public void setInsets(Insets insets)
Specifies the amount of space (in pixels) between the balloon's content and the edges of the balloon's frame. The balloon's content area decreases to account for the specified insets. If the balloon's size and insets cause the content width or height to become less than 1, then the balloon's content is not displayed.

If the balloon's shape is AVKey.SHAPE_RECTANGLE, insets specifies the padding between the balloon's content area and the rectangle's top, left, bottom, and right.

If the balloon's shape is AVKey.SHAPE_ELLIPSE, insets specifies the padding between the balloon's content area and the ellipse's top, left, bottom, and right apexes.

Specified by:
setInsets in interface BalloonAttributes
Parameters:
insets - the desired padding between the balloon's content and its frame, in pixels.
See Also:
BalloonAttributes.getInsets()

setLeaderShape

public void setLeaderShape(String shape)
Specifies the shape of the balloon's leader. The shape may be one of the following:

If the shape is AVKey.SHAPE_NONE, the leader is disabled and does not display.

If the shape is AVKey.SHAPE_TRIANGLE, the leader extends from one side of the balloon's frame and points to the balloon's screen reference point. The width of the leader (in pixels) where it intersects the balloon's frame is specified by calling BalloonAttributes.setLeaderWidth(int).

Specified by:
setLeaderShape in interface BalloonAttributes
Parameters:
shape - the leader shape to use, either AVKey.SHAPE_NONE or AVKey.SHAPE_TRIANGLE.
See Also:
BalloonAttributes.getLeaderShape(), BalloonAttributes.setLeaderWidth(int)

setLeaderWidth

public void setLeaderWidth(int width)
Specifies the width of the balloon's leader, in pixels. The specified width must be zero or a positive integer. Specifying a width of zero disables the balloon's leader.

This does nothing if the balloon's leader shape is AVKey.SHAPE_NONE.

If the balloon's leader shape is AVKey.SHAPE_TRIANGLE, this specifies the size of the leader where it intersects the balloon's frame.

Specified by:
setLeaderWidth in interface BalloonAttributes
Parameters:
width - the desired leader width, in pixels.
See Also:
BalloonAttributes.getLeaderWidth()

setMaximumSize

public void setMaximumSize(Size maxSize)
Specifies the maximum width and height of the balloon's shape in the viewport. If the balloon's shape is AVKey.SHAPE_RECTANGLE, then size specifies the rectangle's maximum width and height. If the balloon's shape is AVKey.SHAPE_ELLIPSE, then size specifies the ellipse's maximum x- and y-radii. Specifying a null size causes the balloon to have no maximum size.

Specified by:
setMaximumSize in interface BalloonAttributes
Parameters:
maxSize - the desired maximum width and height of the balloon's shape in the viewport, or null if the balloon should have no maximum size.

setOffset

public void setOffset(Offset offset)
Specifies a location relative to the balloon's screen reference point at which to align the balloon's frame shape. The balloon's frame shape begins at the point indicated by the offset. An offset of (0, 0) pixels causes the balloon's lower left corner to be placed at the screen reference point. An offset of (1, 1) in fraction units causes the balloon's upper right corner to be placed at the screen reference point.

If the balloon is attached to the globe, the screen reference point is the projection of its geographic position into the viewport. If the balloon is attached to the screen, the screen reference point is the balloon's screen point.

If the balloon has a leader shape, the leader extends from one side of the balloon's frame and points to the screen reference point.

Specified by:
setOffset in interface BalloonAttributes
Parameters:
offset - a location at which to align the balloon's lower left corner.
See Also:
BalloonAttributes.getOffset()

setSize

public void setSize(Size size)
Specifies the width and height of the balloon's shape in the viewport. If the balloon's shape is AVKey.SHAPE_RECTANGLE, then size specifies the rectangle's width and height. If the balloon's shape is AVKey.SHAPE_ELLIPSE, then size specifies the ellipse's x- and y-radii.

The balloon's content area is the rectangle obtained by taking the balloon's size and shrinking it by the balloon's insets.

Specified by:
setSize in interface BalloonAttributes
Parameters:
size - the desired width and height of the balloon's shape in the viewport.
See Also:
BalloonAttributes.getSize(), BalloonAttributes.getMaximumSize(), BalloonAttributes.setInsets(java.awt.Insets)

setTextColor

public void setTextColor(Color color)
Specifies the color in which to display the balloon's text. The specified color may be ignored if the balloon's text contains HTML.

Specified by:
setTextColor in interface BalloonAttributes
Parameters:
color - the color to use for the balloon's text.
See Also:
BalloonAttributes.getTextColor()

NASA World Wind