Class SwingUtil
java.lang.Object
com.github.weisj.darklaf.compatibility.SwingUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic StringclipStringIfNecessary(JComponent c, FontMetrics fm, String string, int availTextWidth) static voidcompositeRequestFocus(Component component) static voiddrawString(JComponent c, Graphics g, String text, int x, int y) static voiddrawStringUnderlineCharAt(JComponent c, Graphics g, String text, int underlinedIndex, int x, int y) static intstatic FontMetricsgetFontMetrics(JComponent c, Font font) static FontMetricsgetFontMetrics(JComponent c, Graphics g) static voidstatic booleanisSunToolkit(Toolkit toolkit) static booleanisUngrabEvent(AWTEvent event) static intloc2IndexFileList(JList<?> list, Point point) static booleanpointOutsidePrefSize(JTable table, int row, int column, Point p) static voidsetLeadAnchorWithoutSelection(ListSelectionModel model, int lead, int anchor) static voidsetSkipClickCount(Component comp, int count) static booleanshouldIgnore(MouseEvent me, JComponent c) static intstringWidth(JComponent c, FontMetrics fm, String string) static booleanstatic void
-
Method Details
-
isSunToolkit
-
isUngrabEvent
-
grab
-
ungrab
-
drawStringUnderlineCharAt
public static void drawStringUnderlineCharAt(JComponent c, Graphics g, String text, int underlinedIndex, int x, int y) -
drawString
-
setSkipClickCount
-
stringWidth
-
clipStringIfNecessary
public static String clipStringIfNecessary(JComponent c, FontMetrics fm, String string, int availTextWidth) -
getFocusAcceleratorKeyMask
public static int getFocusAcceleratorKeyMask() -
getFontMetrics
-
getFontMetrics
-
shouldIgnore
-
adjustFocus
-
compositeRequestFocus
-
setLeadAnchorWithoutSelection
-
pointOutsidePrefSize
-
tabbedPaneChangeFocusTo
-
loc2IndexFileList
-