| java.lang.Object org.gjt.sp.jedit.syntax.Token org.gjt.sp.jedit.syntax.Chunk
Chunk | public class Chunk extends Token (Code) | | A syntax token with extra information required for painting it
on screen.
since: jEdit 4.1pre1 |
Method Summary | |
final public float[] | getPositions() | public void | init(Segment seg, TabExpander expander, float x, FontRenderContext fontRenderContext) | public static float | offsetToX(Chunk chunks, int offset) Converts an offset in a chunk list into an x co-ordinate. | final public float | offsetToX(int offset) | public static float | paintChunkBackgrounds(Chunk chunks, Graphics2D gfx, float x, float y) Paints the background highlights of a chunk list. | public static float | paintChunkList(Chunk chunks, Graphics2D gfx, float x, float y, boolean glyphVector) Paints a chunk list. | public static int | xToOffset(Chunk chunks, float x, boolean round) Converts an x co-ordinate in a chunk list into an offset. | final public int | xToOffset(float x, boolean round) |
accessable | public boolean accessable(Code) | | |
initialized | public boolean initialized(Code) | | |
visible | public boolean visible(Code) | | |
getPositions | final public float[] getPositions()(Code) | | |
offsetToX | public static float offsetToX(Chunk chunks, int offset)(Code) | | Converts an offset in a chunk list into an x co-ordinate.
Parameters: chunks - The chunk list Parameters: offset - The offset since: jEdit 4.1pre1 |
offsetToX | final public float offsetToX(int offset)(Code) | | |
paintChunkBackgrounds | public static float paintChunkBackgrounds(Chunk chunks, Graphics2D gfx, float x, float y)(Code) | | Paints the background highlights of a chunk list.
Parameters: chunks - The chunk list Parameters: gfx - The graphics context Parameters: x - The x co-ordinate Parameters: y - The y co-ordinate The width of the painted backgrounds since: jEdit 4.2pre1 |
paintChunkList | public static float paintChunkList(Chunk chunks, Graphics2D gfx, float x, float y, boolean glyphVector)(Code) | | Paints a chunk list.
Parameters: chunks - The chunk list Parameters: gfx - The graphics context Parameters: x - The x co-ordinate Parameters: y - The y co-ordinate The width of the painted text since: jEdit 4.2pre1 |
xToOffset | public static int xToOffset(Chunk chunks, float x, boolean round)(Code) | | Converts an x co-ordinate in a chunk list into an offset.
Parameters: chunks - The chunk list Parameters: x - The x co-ordinate Parameters: round - Round up to next letter if past the middle of a letter? The offset within the line, or -1 if the x co-ordinate is toofar to the right since: jEdit 4.1pre1 |
xToOffset | final public int xToOffset(float x, boolean round)(Code) | | |
|
|