Interface MarkStyle<T>

Type Parameters:
T - the agent type
All Superinterfaces:
StyleGIS<T>
All Known Implementing Classes:
DefaultMarkStyle, EditedMarkStyle

public interface MarkStyle<T> extends StyleGIS<T>
Interface for Place Marks in the GIS 3D Display.
Author:
Eric Tatara
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Get the mark elevation in meters.
    double
     
    gov.nasa.worldwind.render.Offset
    Return an Offset that determines the icon position relative to the mark position.
    getLabel(T obj)
    The agent on-screen label.
    The mark label color.
    The mark label font.
    gov.nasa.worldwind.render.Offset
    Return an Offset that determines the label position relative to the mark position.
    gov.nasa.worldwind.render.Material
    getLineMaterial(T obj, gov.nasa.worldwind.render.Material lineMaterial)
    The material (color) of the line.
    double
    Width of the line that connects an elevated mark with the surface.
    getPlaceMark(T object, PlaceMark mark)
    The PlaceMark is a WWJ PointPlacemark implementation with a different texture handling mechanism.
    double
    getScale(T obj)
    Scale factor for the mark size.
    gov.nasa.worldwind.render.WWTexture
    getTexture(T object, gov.nasa.worldwind.render.WWTexture texture)
    Get the WWTexture that will be applied to the PlaceMark.
  • Method Details

    • getTexture

      gov.nasa.worldwind.render.WWTexture getTexture(T object, gov.nasa.worldwind.render.WWTexture texture)
      Get the WWTexture that will be applied to the PlaceMark.
      Parameters:
      object -
      texture -
      Returns:
    • getPlaceMark

      PlaceMark getPlaceMark(T object, PlaceMark mark)
      The PlaceMark is a WWJ PointPlacemark implementation with a different texture handling mechanism. All other standard WWJ PointPlacemark attributes can be changed here. PointPlacemark label attributes could be set here, but are also available through the MarkStyle interface.
      Parameters:
      object -
      mark -
      Returns:
      See Also:
      • for more info.
    • getIconOffset

      gov.nasa.worldwind.render.Offset getIconOffset(T obj)
      Return an Offset that determines the icon position relative to the mark position. @see gov.nasa.worldwind.render.Offset The gov.nasa.worldwind.render.Offset is used to position the icon from the mark point location. If no offset is provided, the lower left corner of the icon is located at the point (lat lon) position. Using values of (0.5,0.5) will position the icon center over the lat lon location. The first two arguments in the Offset constructor are the x and y offset values. The third and fourth arguments are the x and y units for the offset. AVKey.FRACTION represents units of the image texture size, with 1.0 being one image width/height. AVKey.PIXELS can be used to specify the offset in pixels.
      Parameters:
      obj -
      Returns:
    • getElevation

      double getElevation(T obj)
      Get the mark elevation in meters. The elevation is used to visually offset the mark from the surface and is not an inherent property of the agent's location in the geography.
      Returns:
    • getScale

      double getScale(T obj)
      Scale factor for the mark size.
      Parameters:
      obj -
      Returns:
    • getHeading

      double getHeading(T obj)
    • getLabel

      String getLabel(T obj)
      The agent on-screen label. Return null instead of empty string "" for better performance.
      Parameters:
      obj -
      Returns:
    • getLabelColor

      Color getLabelColor(T obj)
      The mark label color.
      Parameters:
      obj -
      Returns:
    • getLabelFont

      Font getLabelFont(T obj)
      The mark label font.
      Parameters:
      obj -
      Returns:
    • getLabelOffset

      gov.nasa.worldwind.render.Offset getLabelOffset(T obj)
      Return an Offset that determines the label position relative to the mark position. @see gov.nasa.worldwind.render.Offset The gov.nasa.worldwind.render.Offset is used to position the label from the mark point location. The first two arguments in the Offset constructor are the x and y offset values. The third and fourth arguments are the x and y units for the offset. AVKey.FRACTION represents units of the image texture size, with 1.0 being one image width/height. AVKey.PIXELS can be used to specify the offset in pixels.
      Parameters:
      obj -
      Returns:
    • getLineWidth

      double getLineWidth(T obj)
      Width of the line that connects an elevated mark with the surface. Use a value of 0 to disable line drawing.
      Parameters:
      obj -
      Returns:
    • getLineMaterial

      gov.nasa.worldwind.render.Material getLineMaterial(T obj, gov.nasa.worldwind.render.Material lineMaterial)
      The material (color) of the line.
      Parameters:
      obj -
      lineMaterial -
      Returns: