Codota Logo
AnnotationAttributes.setTextColor
Code IndexAdd Codota to your IDE (free)

How to use
setTextColor
method
in
gov.nasa.worldwind.render.AnnotationAttributes

Best Java code snippets using gov.nasa.worldwind.render.AnnotationAttributes.setTextColor (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
origin: com.uvic-cfar.swim/worldwind

/**
 * Constructs a new depiction annotation with a specified text at a
 * specified position.
 * 
 * @param text the text of this depiction annotation
 * @param position the position of this depiction annotation in globe
 *        coordinates
 * 
 * @see GlobeAnnotation#GlobeAnnotation(String, Position)
 */
public DepictionAnnotation(String text, Position position) {
  super(text, position);
  this.getAttributes().setTextColor(Color.LIGHT_GRAY);
  this.getAttributes().setBackgroundColor(new Color(0, 0, 0, 0));
  this.getAttributes().setTextAlign(AVKey.CENTER);
  this.getAttributes().setLeaderGapWidth(3);
}

origin: senbox-org/s1tbx

public Level2ProductLayer() {
  this.setName("S-1 Level-2 OCN");
  theWWD = null;
  //dpHighlightAttrs = new BasicShapeAttributes();
  //dpHighlightAttrs.setOutlineMaterial(Material.WHITE);
  //dpHighlightAttrs.setOutlineWidth(2d);
  // this is copied from gov.nasa.worldwindx.examples.util.LayerManagerLayer
  theInfoAnnotation = new ScreenAnnotation("", new Point(120, 520));
  // Set annotation so that it will not force text to wrap (large width) and will adjust it's width to
  // that of the text. A height of zero will have the annotation height follow that of the text too.
  theInfoAnnotation.getAttributes().setSize(new Dimension(Integer.MAX_VALUE, 0));
  theInfoAnnotation.getAttributes().setAdjustWidthToText(AVKey.SIZE_FIT_TEXT);
  // Set appearance attributes
  theInfoAnnotation.getAttributes().setCornerRadius(0);
  //theInfoAnnotation.getAttributes().setFont(this.font);
  theInfoAnnotation.getAttributes().setHighlightScale(1);
  theInfoAnnotation.getAttributes().setTextColor(Color.WHITE);
  theInfoAnnotation.getAttributes().setBackgroundColor(new Color(0f, 0f, 0f, .5f));
  theInfoAnnotation.getAttributes().setInsets(new Insets(6, 6, 6, 6));
  theInfoAnnotation.getAttributes().setBorderWidth(1);
  theInfoAnnotation.getAttributes().setVisible(false);
}
origin: com.uvic-cfar.swim/worldwind

/**
 * Constructs a new depiction annotation with a specified image source
 * and text at a specified position.
 * 
 * @param imageSource the image source of this depiction annotation
 * @param text the text of this depiction annotation
 * @param position the position of this depiction annotation in globe
 *        coordinates
 */
public DepictionAnnotation(Object imageSource, String text, Position position) {
  super(text, position);
  this.getAttributes().setImageSource(imageSource);
  this.getAttributes().setImageScale(1d);
  this.getAttributes().setImageOpacity(1d);
  this.getAttributes().setImageRepeat(Annotation.IMAGE_REPEAT_NONE);
  this.getAttributes().setTextColor(Color.LIGHT_GRAY);
  this.getAttributes().setBackgroundColor(new Color(0, 0, 0, 0));
  this.getAttributes().setAdjustWidthToText(AVKey.SIZE_FIXED);
  this.getAttributes().setSize(new Dimension(64, 64));
  this.getAttributes().setTextAlign(AVKey.CENTER);
  this.getAttributes().setLeaderGapWidth(3);
}

origin: com.uvic-cfar.swim/worldwind

/**
 * Constructs a new depiction annotation with a specified image source,
 * size and text at a specified position.
 * 
 * @param imageSource the image source of this depiction annotation
 * @param dim the size of this depiction annotation
 * @param text the text of this depiction annotation
 * @param position the position of this depiction annotation in globe
 *        coordinates
 */
public DepictionAnnotation(Object imageSource, Dimension dim, String text, Position position) {
  super(text, position);
  this.getAttributes().setImageSource(imageSource);
  this.getAttributes().setImageScale(1d);
  this.getAttributes().setImageOpacity(1d);
  this.getAttributes().setImageRepeat(Annotation.IMAGE_REPEAT_NONE);
  this.getAttributes().setTextColor(Color.LIGHT_GRAY);
  this.getAttributes().setBackgroundColor(new Color(0, 0, 0, 0));
  this.getAttributes().setAdjustWidthToText(AVKey.SIZE_FIXED);
  this.getAttributes().setSize(dim);
  this.getAttributes().setTextAlign(AVKey.CENTER);
  this.getAttributes().setLeaderGapWidth(3);
}
gov.nasa.worldwind.renderAnnotationAttributessetTextColor

Popular methods of AnnotationAttributes

  • setAdjustWidthToText
  • setBackgroundColor
  • setSize
  • setVisible
  • isHighlighted
  • setBorderWidth
  • setCornerRadius
  • setHighlightScale
  • setHighlighted
  • setImageOpacity
  • setImageRepeat
  • setImageScale
  • setImageRepeat,
  • setImageScale,
  • setImageSource,
  • setInsets,
  • setLeaderGapWidth,
  • setTextAlign

Popular in Java

  • Finding current android device location
  • getApplicationContext (Context)
  • requestLocationUpdates (LocationManager)
  • setContentView (Activity)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • PrintWriter (java.io)
    Prints formatted representations of objects to a text-output stream. This class implements all of th
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Locale (java.util)
    A Locale object represents a specific geographical, political, or cultural region. An operation that
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Reference (javax.naming)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now