Class TacticalGraphicLabel.OrderedLabel

    • Field Detail

      • placePoint

        protected Vec4 placePoint
        Geographic position in cartesian coordinates.
      • screenPlacePoint

        protected Vec4 screenPlacePoint
        Location of the place point projected onto the screen.
      • screenPoint

        protected java.awt.Point screenPoint
        Location of the upper left corner of the text measured from the lower left corner of the viewport. This point in OGL coordinates.
      • rotation

        protected Angle rotation
        Rotation applied to the label. This is computed each frame based on the orientation position.
      • screenExtent

        protected java.awt.Rectangle screenExtent
        Extent of the label on the screen.
      • eyeDistance

        protected double eyeDistance
        Distance from the eye point to the label's geographic location.
    • Constructor Detail

      • OrderedLabel

        protected OrderedLabel()
    • Method Detail

      • getDistanceFromEye

        public double getDistanceFromEye()
        Description copied from interface: OrderedRenderable
        Returns the ordered renderable's distance from the current view's eye point. Intended to be used only to sort a list of ordered renderables according to eye distance, and only during frame generation when a view is active.
        Specified by:
        getDistanceFromEye in interface OrderedRenderable
        Returns:
        the distance of the ordered renderable from the current view's eye point.
      • pick

        public void pick​(DrawContext dc,
                         java.awt.Point pickPoint)
        Description copied from interface: OrderedRenderable
        Executes a pick of the ordered renderable.
        Specified by:
        pick in interface OrderedRenderable
        Parameters:
        dc - the current draw context.
        pickPoint - the pick point.
      • render

        public void render​(DrawContext dc)
        Description copied from interface: Renderable
        Causes this Renderable to render itself using the provided draw context.
        Specified by:
        render in interface Renderable
        Parameters:
        dc - the DrawContext to be used
        See Also:
        DrawContext
      • isEnableBatchRendering

        public boolean isEnableBatchRendering()
      • isEnableBatchPicking

        public boolean isEnableBatchPicking()
      • getPickLayer

        public Layer getPickLayer()
      • doDrawOrderedRenderable

        protected void doDrawOrderedRenderable​(DrawContext dc,
                                               PickSupport pickCandidates)
      • getFont

        protected java.awt.Font getFont()
      • isDrawInterior

        protected boolean isDrawInterior()
      • doDrawText

        protected void doDrawText​(TextRenderer textRenderer)