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)

Constructor Summary
AutoSpellView(View view)
Method Summary
voidappend(View arg0)
ViewbreakView(int arg0, int arg1, float arg2, float arg3)
voidchangedUpdate(DocumentEvent arg0, Shape arg1, ViewFactory arg2)
ViewcreateFragment(int arg0, int arg1)
booleanequals(Object arg0)
floatgetAlignment(int arg0)
AttributeSetgetAttributes()
intgetBreakWeight(int arg0, float arg1, float arg2)
ShapegetChildAllocation(int arg0, Shape arg1)
ContainergetContainer()
DocumentgetDocument()
ElementgetElement()
intgetEndOffset()
GraphicsgetGraphics()
floatgetMaximumSpan(int arg0)
floatgetMinimumSpan(int arg0)
intgetNextVisualPositionFrom(int arg0, Bias arg1, Shape arg2, int arg3, Bias[] arg4)
ViewgetParent()
floatgetPreferredSpan(int arg0)
intgetResizeWeight(int arg0)
intgetStartOffset()
StringgetToolTipText(float arg0, float arg1, Shape arg2)
ViewgetView(int arg0)
intgetViewCount()
ViewFactorygetViewFactory()
intgetViewIndex(float arg0, float arg1, Shape arg2)
intgetViewIndex(int arg0, Bias arg1)
voidinsert(int arg0, View arg1)
voidinsertUpdate(DocumentEvent arg0, Shape arg1, ViewFactory arg2)
booleanisVisible()
ShapemodelToView(int arg0, Shape arg1, Bias arg2)
ShapemodelToView(int arg0, Bias arg1, int arg2, Bias arg3, Shape arg4)
voidpaint(Graphics arg0, Shape arg1)
voidpreferenceChanged(View arg0, boolean arg1, boolean arg2)
voidremove(int arg0)
voidremoveAll()
voidremoveUpdate(DocumentEvent arg0, Shape arg1, ViewFactory arg2)
voidreplace(int arg0, int arg1, View[] arg2)
voidsetParent(View arg0)
voidsetSize(float arg0, float arg1)
intviewToModel(float arg0, float arg1, Shape arg2, Bias[] arg3)

Constructor Detail

AutoSpellView

public AutoSpellView(View view)

Method Detail

append

public void append(View arg0)

breakView

public View breakView(int arg0, int arg1, float arg2, float arg3)

changedUpdate

public void changedUpdate(DocumentEvent arg0, Shape arg1, ViewFactory arg2)

createFragment

public View createFragment(int arg0, int arg1)

equals

public boolean equals(Object arg0)

getAlignment

public float getAlignment(int arg0)

getAttributes

public AttributeSet getAttributes()

getBreakWeight

public int getBreakWeight(int arg0, float arg1, float arg2)

getChildAllocation

public Shape getChildAllocation(int arg0, Shape arg1)

getContainer

public Container getContainer()

getDocument

public Document getDocument()

getElement

public Element getElement()

getEndOffset

public int getEndOffset()

getGraphics

public Graphics getGraphics()

getMaximumSpan

public float getMaximumSpan(int arg0)

getMinimumSpan

public float getMinimumSpan(int arg0)

getNextVisualPositionFrom

public int getNextVisualPositionFrom(int arg0, Bias arg1, Shape arg2, int arg3, Bias[] arg4)

getParent

public View getParent()

getPreferredSpan

public float getPreferredSpan(int arg0)

Parameters: arg0

Returns:

getResizeWeight

public int getResizeWeight(int arg0)

getStartOffset

public int getStartOffset()

getToolTipText

public String getToolTipText(float arg0, float arg1, Shape arg2)

getView

public View getView(int arg0)

getViewCount

public int getViewCount()

getViewFactory

public ViewFactory getViewFactory()

getViewIndex

public int getViewIndex(float arg0, float arg1, Shape arg2)

getViewIndex

public int getViewIndex(int arg0, Bias arg1)

insert

public void insert(int arg0, View arg1)

insertUpdate

public void insertUpdate(DocumentEvent arg0, Shape arg1, ViewFactory arg2)

isVisible

public boolean isVisible()

modelToView

public Shape modelToView(int arg0, Shape arg1, Bias arg2)

Parameters: arg0 arg1 arg2

Returns:

Throws: javax.swing.text.BadLocationException

modelToView

public Shape modelToView(int arg0, Bias arg1, int arg2, Bias arg3, Shape arg4)

paint

public void paint(Graphics arg0, Shape arg1)

Parameters: arg0 arg1

preferenceChanged

public void preferenceChanged(View arg0, boolean arg1, boolean arg2)

remove

public void remove(int arg0)

removeAll

public void removeAll()

removeUpdate

public void removeUpdate(DocumentEvent arg0, Shape arg1, ViewFactory arg2)

replace

public void replace(int arg0, int arg1, View[] arg2)

setParent

public void setParent(View arg0)

setSize

public void setSize(float arg0, float arg1)

viewToModel

public int viewToModel(float arg0, float arg1, Shape arg2, Bias[] arg3)

Parameters: arg0 arg1 arg2 arg3

Returns: