| java.lang.Object org.jvnet.substance.text.TextUtilities
TextUtilities | public class TextUtilities (Code) | | Text utilities for painting views of text components with
SubstanceTextPainter -based approach.
author: Kirill Grouchnikov |
Method Summary | |
public static int | drawChars(JComponent c, Graphics g, char[] data, int offset, int length, int x, int y) Draws the specified text characters.
Parameters: c - Component. Parameters: g - Graphic context. Parameters: data - Characters to draw. Parameters: offset - Offset into the characters array. Parameters: length - Number of characters to draw. Parameters: x - X coordinate for the text painting. Parameters: y - Y coordinate for the text painting. | public static int | drawSelectedText(Graphics g, View view, TabExpander tabExpander, int x, int y, int p0, int p1) | public static int | drawTabbedText(View view, Segment s, int x, int y, Graphics g, TabExpander e, int startOffset) Draws the specified text segment.
Parameters: view - Text view. Parameters: s - Text segment. Parameters: x - X coordinate for the text painting. Parameters: y - Y coordinate for the text painting. Parameters: g - Graphic context. Parameters: e - Tab expander. Parameters: startOffset - The starting offset. | public static int | drawUnselectedText(Graphics g, View view, TabExpander tabExpander, int x, int y, int p0, int p1) |
drawChars | public static int drawChars(JComponent c, Graphics g, char[] data, int offset, int length, int x, int y)(Code) | | Draws the specified text characters.
Parameters: c - Component. Parameters: g - Graphic context. Parameters: data - Characters to draw. Parameters: offset - Offset into the characters array. Parameters: length - Number of characters to draw. Parameters: x - X coordinate for the text painting. Parameters: y - Y coordinate for the text painting. X coordinate for drawing the next segment. |
drawTabbedText | public static int drawTabbedText(View view, Segment s, int x, int y, Graphics g, TabExpander e, int startOffset)(Code) | | Draws the specified text segment.
Parameters: view - Text view. Parameters: s - Text segment. Parameters: x - X coordinate for the text painting. Parameters: y - Y coordinate for the text painting. Parameters: g - Graphic context. Parameters: e - Tab expander. Parameters: startOffset - The starting offset. X coordinate for drawing the next segment. |
|
|