Class RendererLayoutInfo


  • @API(type=EXTENDABLE,
         src=PUBLIC)
    public class RendererLayoutInfo
    extends java.lang.Object
    Class which contains rendering information about a renderer, information like the baseline and the size. The baseline and the size of the renderer are computed in a certain context.
    Since:
    14.1
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getBaseline()
      Gets the baseline.
      Dimension getSize()
      Get the size of the renderer, in a certain context.
      • Methods inherited from class java.lang.Object

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

      • RendererLayoutInfo

        public RendererLayoutInfo​(int baseline,
                                  Dimension size)
        Constructor.
        Parameters:
        baseline - The baseline of the rendering component.
        size - The size of the renderer.
    • Method Detail

      • getBaseline

        public int getBaseline()
        Gets the baseline. The baseline is measured from the top of the component. This method is primarily meant for the layout manager to align components along their baseline.
        Returns:
        The baseline.
      • getSize

        public Dimension getSize()
        Get the size of the renderer, in a certain context.
        Returns:
        The renderer size.