|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpivot.wtk.skin.TextAreaSkin.NodeView
pivot.wtk.skin.TextAreaSkin.ElementView
public abstract class TextAreaSkin.ElementView
Abstract base class for element views.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface pivot.collections.Sequence |
---|
Sequence.Search, Sequence.Sort, Sequence.Tree |
Constructor Summary | |
---|---|
TextAreaSkin.ElementView(Element element)
|
Method Summary | |
---|---|
int |
add(TextAreaSkin.NodeView nodeView)
Adds an item to the sequence. |
protected void |
attach()
|
protected void |
detach()
|
TextAreaSkin.NodeView |
get(int index)
Retrieves the item at the given index. |
int |
getCharacterAt(int x,
int y)
|
Bounds |
getCharacterBounds(int offset)
|
int |
getLength()
Returns the length of the sequence. |
int |
getOffset()
|
int |
indexOf(TextAreaSkin.NodeView nodeView)
Returns the index of an item in the sequence. |
void |
insert(TextAreaSkin.NodeView nodeView,
int index)
Inserts an item into the sequence at a specific index. |
Iterator<TextAreaSkin.NodeView> |
iterator()
|
void |
nodeInserted(Element element,
int index)
Called when a node has been inserted into an element. |
void |
nodesRemoved(Element element,
int index,
Sequence<Node> nodes)
Called when nodes have been removed from an element. |
void |
paint(Graphics2D graphics)
Paints the visual. |
Sequence<TextAreaSkin.NodeView> |
remove(int index,
int count)
Removes one or more items from the sequence. |
int |
remove(TextAreaSkin.NodeView nodeView)
Removes the first occurrence of the given item from the sequence. |
TextAreaSkin.NodeView |
update(int index,
TextAreaSkin.NodeView nodeView)
Updates the item at the given index. |
Methods inherited from class pivot.wtk.skin.TextAreaSkin.NodeView |
---|
getBounds, getBounds, getBreakWidth, getHeight, getHeight, getLocation, getNext, getNode, getParent, getSize, getSize, getWidth, getX, getY, invalidate, isValid, offsetChanged, parentChanged, rangeInserted, rangeRemoved, repaint, repaint, setBreakWidth, setLocation, setParent, setSize, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextAreaSkin.ElementView(Element element)
Method Detail |
---|
protected void attach()
attach
in class TextAreaSkin.NodeView
protected void detach()
detach
in class TextAreaSkin.NodeView
public int add(TextAreaSkin.NodeView nodeView)
Sequence
add
in interface Sequence<TextAreaSkin.NodeView>
nodeView
- The item to be added to the sequence.
public void insert(TextAreaSkin.NodeView nodeView, int index)
Sequence
insert
in interface Sequence<TextAreaSkin.NodeView>
nodeView
- The item to be added to the sequence.index
- The index at which the item should be inserted. Must be a value between
0 and getLength().public TextAreaSkin.NodeView update(int index, TextAreaSkin.NodeView nodeView)
Sequence
update
in interface Sequence<TextAreaSkin.NodeView>
index
- The index of the item to update.nodeView
- The item that will replace any existing value at the given index.
public int remove(TextAreaSkin.NodeView nodeView)
Sequence
remove
in interface Sequence<TextAreaSkin.NodeView>
nodeView
- The item to remove.
Sequence.remove(int, int)
public Sequence<TextAreaSkin.NodeView> remove(int index, int count)
Sequence
remove
in interface Sequence<TextAreaSkin.NodeView>
index
- The starting index to remove.count
- The number of items to remove, beginning with index.
public TextAreaSkin.NodeView get(int index)
Sequence
get
in interface Sequence<TextAreaSkin.NodeView>
index
- The index of the item to retrieve.public int indexOf(TextAreaSkin.NodeView nodeView)
Sequence
indexOf
in interface Sequence<TextAreaSkin.NodeView>
nodeView
- The item to locate.
public int getLength()
Sequence
getLength
in interface Sequence<TextAreaSkin.NodeView>
public void paint(Graphics2D graphics)
Visual
paint
in interface Visual
graphics
- The graphics context in which to paint the visual.public int getOffset()
getOffset
in class TextAreaSkin.NodeView
public int getCharacterAt(int x, int y)
getCharacterAt
in class TextAreaSkin.NodeView
public Bounds getCharacterBounds(int offset)
getCharacterBounds
in class TextAreaSkin.NodeView
public void nodeInserted(Element element, int index)
ElementListener
nodeInserted
in interface ElementListener
public void nodesRemoved(Element element, int index, Sequence<Node> nodes)
ElementListener
nodesRemoved
in interface ElementListener
public Iterator<TextAreaSkin.NodeView> iterator()
iterator
in interface Iterable<TextAreaSkin.NodeView>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |