World Wind Forums

Go Back   World Wind Forums > WorldWind JAVA forums > Development Help

Development Help Help for building applications or diagnosing problems with WWJ

Reply
 
Thread Tools Display Modes
Old 07-12-2012, 06:24 PM   #1
KurtZachary
Junior Member
 
Join Date: Apr 2012
Posts: 29
KurtZachary is on a distinguished road
Default is there a simple class for text?

I need to put just a simple label on the screen that is visible when zoomed out. I've tried SurfaceText but it only visible when zoomed in pretty far. I also tried using a Globe Annotation but I don't see a way to make the background translucent. I've searched through the postings but I didn't find anything that fit. Any suggestions would be greatly appreciated.
KurtZachary is offline   Reply With Quote
Old 07-12-2012, 08:35 PM   #2
pabercrombie
WW Dev. Team
 
Join Date: Sep 2010
Location: Boston, MA, USA
Posts: 325
pabercrombie is on a distinguished road
Default

To get a transparent GlobeAnnotation you can set the frame shape to none:

Code:
AnnotationAttributes attrs = new AnnotationAttributes();
attrs.setFrameShape(AVKey.SHAPE_NONE);

GlobeAnnotation annotation = new GlobeAnnotation("My Annotation", position);
annotation.setAttributes(attrs);
The class TacticalGraphicLabel can also be used to draw simple labels.
pabercrombie is offline   Reply With Quote
Old 07-13-2012, 11:16 AM   #3
BrunoSpy
Senior Member
 
Join Date: Aug 2009
Location: Paris
Posts: 233
BrunoSpy is on a distinguished road
Default

You can also look at UserFacingText.java
BrunoSpy is offline   Reply With Quote
Old 07-13-2012, 04:49 PM   #4
tag
WWJ Technical Manager
 
Join Date: May 2007
Location: Seattle
Posts: 1,041
tag is on a distinguished road
Default

PointPlacemark can also be used.
tag is offline   Reply With Quote
Old 07-17-2012, 09:53 PM   #5
KurtZachary
Junior Member
 
Join Date: Apr 2012
Posts: 29
KurtZachary is on a distinguished road
Default Thanks for the options

I'm using GlobeAnnotation and it is giving me the functionality I need.
KurtZachary is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Reg compiling the source code Raj Developers' Corner 10 08-26-2008 06:58 PM
SurfaceIcon class calhoun Development Help 3 04-07-2008 06:19 PM
Dependency injection instead of static singleton WorldWind stolsvik Feature Discussion 19 08-06-2007 02:57 PM
Build PluginEngine as a Class Library DLL to support binary DLL plugin development gohyongkwang Suggestion Box 1 08-24-2006 06:47 AM
How to use the PolygonFeature class? beginor Developers' Corner 13 08-09-2006 02:01 PM


All times are GMT +1. The time now is 11:32 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.