Class DrawableTextWrapper

    • Method Detail

      • draw

        public void draw​(IPainter painter)
        Description copied from class: Drawable
        Call OpenGL2 routines for rendering the object.
        Specified by:
        draw in interface IGLRenderer
        Specified by:
        draw in class Drawable
      • getBounds

        public BoundingBox3d getBounds()
        Description copied from class: Drawable
        Return the BoundingBox of this object.
        Overrides:
        getBounds in class Drawable
        Returns:
        a bounding box
      • getText

        public String getText()
      • setText

        public void setText​(String txt)
      • setPosition

        public void setPosition​(Coord3d position)
      • getPosition

        public Coord3d getPosition()
      • setColor

        public void setColor​(Color color)
      • setHalign

        public void setHalign​(Horizontal halign)
      • getValign

        public Vertical getValign()
      • setValign

        public void setValign​(Vertical valign)
      • getScreenOffset

        public Coord2d getScreenOffset()
      • setScreenOffset

        public void setScreenOffset​(Coord2d screenOffset)
      • getSceneOffset

        public Coord3d getSceneOffset()
      • setSceneOffset

        public void setSceneOffset​(Coord3d sceneOffset)
      • getRotation

        public float getRotation()
      • setRotation

        public void setRotation​(float rotation)
      • getAxisLayout

        public AxisLayout getAxisLayout()
      • setAxisLayout

        public void setAxisLayout​(AxisLayout axisLayout)
        The axis layout acts as main font provider, to allow all text renderer to use the same current font than the one selected for axis and colorbar texts. To for this drawable text to use a given font, set this to null and configure setDefaultFont(Font)
      • getDefaultFont

        public Font getDefaultFont()
      • setDefaultFont

        public void setDefaultFont​(Font defaultFont)