Class TrackSegmentInfo.OrderedText

    • Constructor Summary

      Constructors 
      Constructor Description
      OrderedText​(java.lang.String text, int x, int y, java.awt.Font font, java.awt.Color color, double distanceFromEye)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void drawText​(DrawContext dc, java.lang.String text, int x, int y, java.awt.Font font, java.awt.Color color)  
      double getDistanceFromEye()
      Returns the ordered renderable's distance from the current view's eye point.
      protected MultiLineTextRenderer getTextRendererFor​(DrawContext dc, java.awt.Font font)  
      void pick​(DrawContext dc, java.awt.Point pickPoint)
      Executes a pick of the ordered renderable.
      void render​(DrawContext dc)
      Causes this Renderable to render itself using the provided draw context.
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OrderedText

        public OrderedText​(java.lang.String text,
                           int x,
                           int y,
                           java.awt.Font font,
                           java.awt.Color color,
                           double distanceFromEye)
    • 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.
      • 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
      • drawText

        protected void drawText​(DrawContext dc,
                                java.lang.String text,
                                int x,
                                int y,
                                java.awt.Font font,
                                java.awt.Color color)
      • 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.