Package io.github.parubok.text.multiline
Class AbstractTextLayout
- java.lang.Object
-
- io.github.parubok.text.multiline.AbstractTextLayout
-
- All Implemented Interfaces:
TextLayout
public abstract class AbstractTextLayout extends Object implements TextLayout
-
-
Field Summary
Fields Modifier and Type Field Description protected MultilineLabellabel
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractTextLayout(MultilineLabel label)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static voiddrawString(JComponent c, Graphics g, String str, int x, int y)protected static voiddrawStringInDisabledStyle(JComponent c, String str, Graphics g, Color color, int x, int y)Drawstextin a style of disabled component text atGraphicscontext from the point (x,y).protected static intgetTextPreferredHeight(int lineCount, FontMetrics fm, float lineSpacing)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.github.parubok.text.multiline.TextLayout
calculatePreferredSize, paintText, preSetBounds
-
-
-
-
Field Detail
-
label
protected final MultilineLabel label
-
-
Constructor Detail
-
AbstractTextLayout
protected AbstractTextLayout(MultilineLabel label)
-
-
Method Detail
-
getTextPreferredHeight
protected static int getTextPreferredHeight(int lineCount, FontMetrics fm, float lineSpacing)
-
drawString
protected static void drawString(JComponent c, Graphics g, String str, int x, int y)
-
drawStringInDisabledStyle
protected static void drawStringInDisabledStyle(JComponent c, String str, Graphics g, Color color, int x, int y)
Drawstextin a style of disabled component text atGraphicscontext from the point (x,y). Usescoloras a base.
-
-