Class StringPainter
- java.lang.Object
-
- com.github.weisj.darklaf.graphics.StringPainter
-
public class StringPainter extends Object
-
-
Constructor Summary
Constructors Constructor Description StringPainter()
-
Method Summary
Modifier and Type Method Description static <T extends JComponent>
voiddrawString(Graphics g, T c, String text, Rectangle textRect)
static <T extends JComponent>
voiddrawString(Graphics g, T c, String text, Rectangle textRect, FontMetrics fm)
static <T extends JComponent>
voiddrawString(Graphics g, T c, View view, String text, Rectangle textRect, FontMetrics fm)
static <T extends JComponent>
voiddrawStringImpl(Graphics g, T c, View view, String text, Rectangle textRect, Font font, FontMetrics fm, int mnemIndex)
static <T extends JComponent>
voiddrawStringImpl(Graphics g, T c, View view, String text, Rectangle textRect, Font font, FontMetrics fm, int mnemIndex, Color background)
static <T extends JComponent>
voiddrawStringUnderlineCharAt(Graphics g, T c, String text, int mnemIndex, Rectangle textRect)
static <T extends JComponent>
voiddrawStringUnderlineCharAt(Graphics g, T c, String text, int mnemIndex, Rectangle textRect, Font f)
static <T extends JComponent>
voiddrawStringUnderlineCharAt(Graphics g, T c, String text, int mnemIndex, Rectangle textRect, Font font, FontMetrics fm)
static <T extends JComponent>
voiddrawStringUnderlineCharAt(Graphics g, T c, View view, String text, int mnemIndex, Rectangle textRect, Font font, FontMetrics fm)
static boolean
isExperimentalAntialiasingEnabled()
static boolean
isTranslucentAAPaintingEnabled()
static void
paintOpacityBuffered(Graphics g, JComponent c, OpacityBufferedUI ui)
static void
paintOpacityBufferedUI(Graphics g, JComponent c, OpacityBufferedUI ui)
static void
setExperimentalAntialiasingEnabled(boolean enabled)
static void
setTranslucentAAPaintingEnabled(boolean enabled)
-
-
-
Method Detail
-
setExperimentalAntialiasingEnabled
public static void setExperimentalAntialiasingEnabled(boolean enabled)
-
setTranslucentAAPaintingEnabled
public static void setTranslucentAAPaintingEnabled(boolean enabled)
-
isTranslucentAAPaintingEnabled
public static boolean isTranslucentAAPaintingEnabled()
-
isExperimentalAntialiasingEnabled
public static boolean isExperimentalAntialiasingEnabled()
-
drawString
public static <T extends JComponent> void drawString(Graphics g, T c, String text, Rectangle textRect)
-
drawString
public static <T extends JComponent> void drawString(Graphics g, T c, View view, String text, Rectangle textRect, FontMetrics fm)
-
drawString
public static <T extends JComponent> void drawString(Graphics g, T c, String text, Rectangle textRect, FontMetrics fm)
-
drawStringUnderlineCharAt
public static <T extends JComponent> void drawStringUnderlineCharAt(Graphics g, T c, String text, int mnemIndex, Rectangle textRect)
-
drawStringUnderlineCharAt
public static <T extends JComponent> void drawStringUnderlineCharAt(Graphics g, T c, String text, int mnemIndex, Rectangle textRect, Font f)
-
drawStringUnderlineCharAt
public static <T extends JComponent> void drawStringUnderlineCharAt(Graphics g, T c, View view, String text, int mnemIndex, Rectangle textRect, Font font, FontMetrics fm)
-
drawStringUnderlineCharAt
public static <T extends JComponent> void drawStringUnderlineCharAt(Graphics g, T c, String text, int mnemIndex, Rectangle textRect, Font font, FontMetrics fm)
-
drawStringImpl
public static <T extends JComponent> void drawStringImpl(Graphics g, T c, View view, String text, Rectangle textRect, Font font, FontMetrics fm, int mnemIndex)
-
drawStringImpl
public static <T extends JComponent> void drawStringImpl(Graphics g, T c, View view, String text, Rectangle textRect, Font font, FontMetrics fm, int mnemIndex, Color background)
-
paintOpacityBufferedUI
public static void paintOpacityBufferedUI(Graphics g, JComponent c, OpacityBufferedUI ui)
-
paintOpacityBuffered
public static void paintOpacityBuffered(Graphics g, JComponent c, OpacityBufferedUI ui)
-
-