Class DefaultMarkStyle<T>

java.lang.Object
repast.simphony.visualization.gis3D.style.DefaultMarkStyle<T>
Type Parameters:
T - the agent type
All Implemented Interfaces:
MarkStyle<T>, StyleGIS<T>

public class DefaultMarkStyle<T> extends Object implements MarkStyle<T>
Default style for place marks.
Author:
Eric Tatara
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected gov.nasa.worldwind.render.BasicWWTexture
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • texture

      protected gov.nasa.worldwind.render.BasicWWTexture texture
  • Constructor Details

    • DefaultMarkStyle

      public DefaultMarkStyle()
  • Method Details

    • getTexture

      public gov.nasa.worldwind.render.WWTexture getTexture(T object, gov.nasa.worldwind.render.WWTexture texture)
      Description copied from interface: MarkStyle
      Get the WWTexture that will be applied to the PlaceMark.
      Specified by:
      getTexture in interface MarkStyle<T>
      Returns:
    • getPlaceMark

      public PlaceMark getPlaceMark(T object, PlaceMark mark)
      Description copied from interface: MarkStyle
      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.
      Specified by:
      getPlaceMark in interface MarkStyle<T>
      Returns:
      See Also:
      • for more info.
    • getScale

      public double getScale(T obj)
      Description copied from interface: MarkStyle
      Scale factor for the mark size.
      Specified by:
      getScale in interface MarkStyle<T>
      Returns:
    • getHeading

      public double getHeading(T obj)
      Specified by:
      getHeading in interface MarkStyle<T>
    • getLabel

      public String getLabel(T obj)
      Description copied from interface: MarkStyle
      The agent on-screen label. Return null instead of empty string "" for better performance.
      Specified by:
      getLabel in interface MarkStyle<T>
      Returns:
    • getLabelColor

      public Color getLabelColor(T obj)
      Description copied from interface: MarkStyle
      The mark label color.
      Specified by:
      getLabelColor in interface MarkStyle<T>
      Returns:
    • getLabelFont

      public Font getLabelFont(T obj)
      Description copied from interface: MarkStyle
      The mark label font.
      Specified by:
      getLabelFont in interface MarkStyle<T>
      Returns:
    • getLabelOffset

      public gov.nasa.worldwind.render.Offset getLabelOffset(T obj)
      Description copied from interface: MarkStyle
      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.
      Specified by:
      getLabelOffset in interface MarkStyle<T>
      Returns:
    • getElevation

      public double getElevation(T obj)
      Description copied from interface: MarkStyle
      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.
      Specified by:
      getElevation in interface MarkStyle<T>
      Returns:
    • getLineWidth

      public double getLineWidth(T obj)
      Description copied from interface: MarkStyle
      Width of the line that connects an elevated mark with the surface. Use a value of 0 to disable line drawing.
      Specified by:
      getLineWidth in interface MarkStyle<T>
      Returns:
    • getLineMaterial

      public gov.nasa.worldwind.render.Material getLineMaterial(T obj, gov.nasa.worldwind.render.Material lineMaterial)
      Description copied from interface: MarkStyle
      The material (color) of the line.
      Specified by:
      getLineMaterial in interface MarkStyle<T>
      Returns:
    • getIconOffset

      public gov.nasa.worldwind.render.Offset getIconOffset(T obj)
      Description copied from interface: MarkStyle
      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.
      Specified by:
      getIconOffset in interface MarkStyle<T>
      Returns: