public class SwingComponentUtils extends Object
| Constructor and Description |
|---|
SwingComponentUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addZoomTextOnMouseWheel(JComponent p) |
static void |
evalZoomTextOnMouseWheel(MouseWheelEvent e,
JComponent p) |
static int |
getLineEndOffsetForLine(JTextComponent component,
int line) |
static int |
getLineFromOffset(JTextComponent component,
int offset) |
static int |
getLineStartOffsetForLine(JTextComponent component,
int line) |
static StyledDocument |
getStyledDocument(JEditorPane e) |
static StyledEditorKit |
getStyledEditorKit(JEditorPane e) |
static double |
getTextZoom(JComponent p) |
static void |
setCharacterAttributes(JEditorPane editor,
AttributeSet attr,
boolean replace) |
static void |
setTextZoom(JComponent p,
double z) |
public static double getTextZoom(JComponent p)
public static void setTextZoom(JComponent p, double z)
public static void evalZoomTextOnMouseWheel(MouseWheelEvent e, JComponent p)
public static void addZoomTextOnMouseWheel(JComponent p)
public static int getLineFromOffset(JTextComponent component, int offset)
public static int getLineStartOffsetForLine(JTextComponent component, int line)
public static int getLineEndOffsetForLine(JTextComponent component, int line)
public static final void setCharacterAttributes(JEditorPane editor, AttributeSet attr, boolean replace)
public static final StyledDocument getStyledDocument(JEditorPane e)
public static final StyledEditorKit getStyledEditorKit(JEditorPane e)
Copyright © 2022 vpc open source initiative. All rights reserved.