|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--javax.swing.text.View
|
+--javax.swing.text.PlainView
|
+--kawigi.editor.GenericView
|
+--kawigi.editor.JavaView
|
+--kawigi.editor.TemplateView
| Field Summary |
| Fields inherited from class kawigi.editor.JavaView |
classColor, colorHash, commentColor, keywordColor, operatorColor, stringColor, typeColor |
| Fields inherited from class kawigi.editor.GenericView |
highlightKey1, highlightKey2, lineIndex, parseIndex |
| Fields inherited from class javax.swing.text.PlainView |
metrics |
| Fields inherited from class javax.swing.text.View |
BadBreakWeight, ExcellentBreakWeight, ForcedBreakWeight, GoodBreakWeight, X_AXIS, Y_AXIS |
| Fields inherited from interface javax.swing.SwingConstants |
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Constructor Summary | |
TemplateView(javax.swing.text.Element e)
Creates a new TemplateView and forwards down the element. |
|
| Method Summary | |
protected int |
drawSelectedText(java.awt.Graphics g,
int x,
int y,
int p0,
int p1)
Overridden from PlainView - this method gets called to render every element of selected text, so that I could change how it's displayed if I want. |
protected int |
drawTabbedText(java.lang.String s,
int x,
int y,
java.awt.Graphics g,
int startOffset,
boolean selected,
boolean inComment,
boolean inAction)
Renders the text segment onto the given Graphics context. |
protected int |
drawUnselectedText(java.awt.Graphics g,
int x,
int y,
int p0,
int p1)
Overridden from PlainView - this method gets called to render every element of unselected text. |
java.util.ArrayList |
getIntervals()
Returns an ArrayList of Interval objects representing code block intervals
in the document. |
static void |
initColors()
Initializes/resets the syntax coloring settings and special token table. |
| Methods inherited from class kawigi.editor.JavaView |
drawTabbedText, getColor |
| Methods inherited from class kawigi.editor.GenericView |
findIntervals, findName, getTabSize, paint, resetTabStop, updateDamage |
| Methods inherited from class javax.swing.text.PlainView |
changedUpdate, damageLineRange, drawLine, getLineBuffer, getPreferredSpan, insertUpdate, lineToRect, modelToView, nextTabStop, removeUpdate, setSize, updateMetrics, viewToModel |
| Methods inherited from class javax.swing.text.View |
append, breakView, createFragment, forwardUpdate, forwardUpdateToView, getAlignment, getAttributes, getBreakWeight, getChildAllocation, getContainer, getDocument, getElement, getEndOffset, getGraphics, getMaximumSpan, getMinimumSpan, getNextVisualPositionFrom, getParent, getResizeWeight, getStartOffset, getToolTipText, getView, getViewCount, getViewFactory, getViewIndex, getViewIndex, insert, isVisible, modelToView, modelToView, preferenceChanged, remove, removeAll, replace, setParent, updateChildren, updateLayout, viewToModel |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TemplateView(javax.swing.text.Element e)
| Method Detail |
public static void initColors()
JavaView
protected int drawUnselectedText(java.awt.Graphics g,
int x,
int y,
int p0,
int p1)
throws javax.swing.text.BadLocationException
drawUnselectedText in class JavaViewjavax.swing.text.BadLocationException
protected int drawSelectedText(java.awt.Graphics g,
int x,
int y,
int p0,
int p1)
throws javax.swing.text.BadLocationException
drawSelectedText in class JavaViewjavax.swing.text.BadLocationException
protected int drawTabbedText(java.lang.String s,
int x,
int y,
java.awt.Graphics g,
int startOffset,
boolean selected,
boolean inComment,
boolean inAction)
public java.util.ArrayList getIntervals()
ArrayList of Interval objects representing code block intervals
in the document.
This one just matches template tags.
getIntervals in class GenericView
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||