Class DeclutterableText

    • Field Detail

      • point

        protected Vec4 point
      • eyeDistance

        protected double eyeDistance
      • enableDecluttering

        protected boolean enableDecluttering
      • textBounds

        protected java.awt.geom.Rectangle2D textBounds
      • boundsFont

        protected java.awt.Font boundsFont
    • Method Detail

      • isEnableDecluttering

        public boolean isEnableDecluttering()
        Indicates whether this text should participate in decluttering.
        Specified by:
        isEnableDecluttering in interface Declutterable
        Returns:
        true (the default) if it should participate, otherwise false.
      • 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.
      • getPoint

        public Vec4 getPoint()
      • render

        public void render​(DrawContext dc)
        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
      • 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.