Class RendererLayoutInfo

java.lang.Object
ro.sync.ecss.extensions.api.editor.RendererLayoutInfo

@API(type=EXTENDABLE, src=PUBLIC) public class RendererLayoutInfo extends 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
  • Constructor Details

    • RendererLayoutInfo

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

    • 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.