Class SoTextMarginElement


  • public class SoTextMarginElement
    extends SoFloatElement
    Stores the current text margin. This element stores the current text margin value. The margin value is a factor of current font size.

    See Also:
    SoTextProperty
    • Method Detail

      • getClassStackIndex

        @Deprecated(since="9.3.0.0")
        public static int getClassStackIndex()
        Deprecated.
        As of Open Inventor 9.3.0.0. replaced by SoElement.getClassStackIndex(Class)
        Returns the stack id for this element. ] *
      • getDefault

        public static float getDefault()
        Returns the default margin.
      • set

        public static void set​(SoState state,
                               float margin)
        Sets the current horizontal text margin in the state.
      • get

        public static float get​(SoState state)
        Returns current margin from the state.
      • set

        public static void set​(SoState state,
                               SoNode name_24145,
                               float margin)
        Sets the current horizontal text margin in the state.