Class RendererLayoutInfo
- java.lang.Object
-
- ro.sync.ecss.extensions.api.editor.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
-
-
Constructor Summary
Constructors Constructor Description RendererLayoutInfo(int baseline, Dimension size)
Constructor.
-
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.
-
-
-
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.
-
-