Class SwingComponentUtils
java.lang.Object
net.thevpc.common.swing.SwingComponentUtils
- Author:
- thevpc
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidstatic intgetLineEndOffsetForLine(JTextComponent component, int line) static intgetLineFromOffset(JTextComponent component, int offset) static intgetLineStartOffsetForLine(JTextComponent component, int line) static final StyledDocumentstatic final StyledEditorKitstatic doublestatic final voidsetCharacterAttributes(JEditorPane editor, AttributeSet attr, boolean replace) static voidsetTextZoom(JComponent p, double z)
-
Constructor Details
-
SwingComponentUtils
public SwingComponentUtils()
-
-
Method Details
-
getTextZoom
-
setTextZoom
-
evalZoomTextOnMouseWheel
-
addZoomTextOnMouseWheel
-
getLineFromOffset
-
getLineStartOffsetForLine
-
getLineEndOffsetForLine
-
setCharacterAttributes
public static final void setCharacterAttributes(JEditorPane editor, AttributeSet attr, boolean replace) -
getStyledDocument
-
getStyledEditorKit
-