kawigi.editor
Class GenericView

java.lang.Object
  |
  +--javax.swing.text.View
        |
        +--javax.swing.text.PlainView
              |
              +--kawigi.editor.GenericView
All Implemented Interfaces:
javax.swing.SwingConstants, javax.swing.text.TabExpander
Direct Known Subclasses:
CPPView, CSharpView, JavaView, VBView

public class GenericView
extends javax.swing.text.PlainView

Ok, this is me just glorifying myself a little bit.


Field Summary
 
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
GenericView(javax.swing.text.Element e)
          Just forwards that Element on down.
 
Method Summary
protected  int getTabSize()
          Programmers don't like 8-space tabstops.
 void paint(java.awt.Graphics g, java.awt.Shape a)
          A little hack to put a "TopCoder-ish" logo and a copycat logo for KawigiEdit in the background of the text pane.
static void resetTabStop()
           
 
Methods inherited from class javax.swing.text.PlainView
changedUpdate, damageLineRange, drawLine, drawSelectedText, drawUnselectedText, getLineBuffer, getPreferredSpan, insertUpdate, lineToRect, modelToView, nextTabStop, removeUpdate, setSize, updateDamage, 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

GenericView

public GenericView(javax.swing.text.Element e)
Just forwards that Element on down.

Method Detail

resetTabStop

public static void resetTabStop()

paint

public void paint(java.awt.Graphics g,
                  java.awt.Shape a)
A little hack to put a "TopCoder-ish" logo and a copycat logo for KawigiEdit in the background of the text pane. I know, it just makes me seem like I need attention or something, but I tried to at least make it look nice.

Overrides:
paint in class javax.swing.text.PlainView

getTabSize

protected int getTabSize()
Programmers don't like 8-space tabstops. At least I do, and it's my editor, so live with it. I suppose that if I find out that a lot of people disagree with me, I'll make it configurable.

Overrides:
getTabSize in class javax.swing.text.PlainView