com.swabunga.spell.swing.autospell
Class AutoSpellView
public
class
AutoSpellView
extends View
implements AutoSpellConstants
This View just forward all calls to the original view but also paints
the waved line if the Elements is marked as misspelled.
Author: Robert Gustavsson (robert@lindesign.se)
Method Summary |
void | append(View arg0) |
View | breakView(int arg0, int arg1, float arg2, float arg3) |
void | changedUpdate(DocumentEvent arg0, Shape arg1, ViewFactory arg2) |
View | createFragment(int arg0, int arg1) |
boolean | equals(Object arg0) |
float | getAlignment(int arg0) |
AttributeSet | getAttributes() |
int | getBreakWeight(int arg0, float arg1, float arg2) |
Shape | getChildAllocation(int arg0, Shape arg1) |
Container | getContainer() |
Document | getDocument() |
Element | getElement() |
int | getEndOffset() |
Graphics | getGraphics() |
float | getMaximumSpan(int arg0) |
float | getMinimumSpan(int arg0) |
int | getNextVisualPositionFrom(int arg0, Bias arg1, Shape arg2, int arg3, Bias[] arg4) |
View | getParent() |
float | getPreferredSpan(int arg0) |
int | getResizeWeight(int arg0) |
int | getStartOffset() |
String | getToolTipText(float arg0, float arg1, Shape arg2) |
View | getView(int arg0) |
int | getViewCount() |
ViewFactory | getViewFactory() |
int | getViewIndex(float arg0, float arg1, Shape arg2) |
int | getViewIndex(int arg0, Bias arg1) |
void | insert(int arg0, View arg1) |
void | insertUpdate(DocumentEvent arg0, Shape arg1, ViewFactory arg2) |
boolean | isVisible() |
Shape | modelToView(int arg0, Shape arg1, Bias arg2) |
Shape | modelToView(int arg0, Bias arg1, int arg2, Bias arg3, Shape arg4) |
void | paint(Graphics arg0, Shape arg1) |
void | preferenceChanged(View arg0, boolean arg1, boolean arg2) |
void | remove(int arg0) |
void | removeAll() |
void | removeUpdate(DocumentEvent arg0, Shape arg1, ViewFactory arg2) |
void | replace(int arg0, int arg1, View[] arg2) |
void | setParent(View arg0) |
void | setSize(float arg0, float arg1) |
int | viewToModel(float arg0, float arg1, Shape arg2, Bias[] arg3) |
public AutoSpellView(View view)
public void append(View arg0)
public View breakView(int arg0, int arg1, float arg2, float arg3)
public void changedUpdate(DocumentEvent arg0, Shape arg1, ViewFactory arg2)
public View createFragment(int arg0, int arg1)
public boolean equals(Object arg0)
public float getAlignment(int arg0)
public AttributeSet getAttributes()
public int getBreakWeight(int arg0, float arg1, float arg2)
public Shape getChildAllocation(int arg0, Shape arg1)
public Container getContainer()
public Document getDocument()
public Element getElement()
public int getEndOffset()
public Graphics getGraphics()
public float getMaximumSpan(int arg0)
public float getMinimumSpan(int arg0)
public int getNextVisualPositionFrom(int arg0, Bias arg1, Shape arg2, int arg3, Bias[] arg4)
public View getParent()
public float getPreferredSpan(int arg0)
Parameters: arg0
Returns:
public int getResizeWeight(int arg0)
public int getStartOffset()
public String getToolTipText(float arg0, float arg1, Shape arg2)
public View getView(int arg0)
public int getViewCount()
public ViewFactory getViewFactory()
public int getViewIndex(float arg0, float arg1, Shape arg2)
public int getViewIndex(int arg0, Bias arg1)
public void insert(int arg0, View arg1)
public void insertUpdate(DocumentEvent arg0, Shape arg1, ViewFactory arg2)
public boolean isVisible()
public Shape modelToView(int arg0, Shape arg1, Bias arg2)
Parameters: arg0 arg1 arg2
Returns:
Throws: javax.swing.text.BadLocationException
public Shape modelToView(int arg0, Bias arg1, int arg2, Bias arg3, Shape arg4)
public void paint(Graphics arg0, Shape arg1)
public void preferenceChanged(View arg0, boolean arg1, boolean arg2)
public void remove(int arg0)
public void removeAll()
public void removeUpdate(DocumentEvent arg0, Shape arg1, ViewFactory arg2)
public void replace(int arg0, int arg1, View[] arg2)
public void setParent(View arg0)
public void setSize(float arg0, float arg1)
public int viewToModel(float arg0, float arg1, Shape arg2, Bias[] arg3)
Parameters: arg0 arg1 arg2 arg3
Returns: