|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pivot.wtk.skin.TextPaneSkinNodeView
abstract class TextPaneSkinNodeView
Abstract base class for node views.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.text.NodeListener |
---|
NodeListener.Adapter |
Constructor Summary | |
---|---|
TextPaneSkinNodeView(Node node)
|
Method Summary | |
---|---|
protected void |
attach()
|
protected abstract void |
childLayout(int breakWidth)
|
protected void |
detach()
|
abstract int |
getBaseline()
|
Bounds |
getBounds()
|
abstract Bounds |
getCharacterBounds(int offset)
|
int |
getCharacterCount()
|
int |
getDocumentOffset()
|
int |
getHeight()
|
abstract int |
getInsertionPoint(int xArgument,
int yArgument)
|
Point |
getLocation()
|
abstract int |
getNextInsertionPoint(int xArgument,
int from,
TextPane.ScrollDirection direction)
|
Node |
getNode()
|
int |
getOffset()
|
TextPaneSkinElementView |
getParent()
|
abstract Dimensions |
getPreferredSize(int breakWidth)
|
abstract int |
getRowAt(int offset)
|
abstract int |
getRowCount()
|
Dimensions |
getSize()
|
protected TextPaneSkin |
getTextPaneSkin()
|
int |
getWidth()
|
int |
getX()
|
int |
getY()
|
void |
invalidateDownTree()
|
void |
invalidateUpTree()
|
boolean |
isValid()
|
void |
layout(int breakWidth)
|
void |
nodeInserted(Node nodeArgument,
int offset)
Called when a child node has been inserted into a node. |
void |
nodesRemoved(Node nodeArgument,
Sequence<Node> removed,
int offset)
Called when child nodes have been removed from a node. |
void |
offsetChanged(Node nodeArgument,
int previousOffset)
Called when a node's offset has changed within it's parent element. |
abstract void |
paint(Graphics2D g)
|
void |
parentChanged(Node nodeArgument,
Element previousParent)
Called when a node's parent has changed, either as a result of being added to or removed from an element. |
void |
rangeInserted(Node nodeArgument,
int offset,
int span)
Called when a text range has been inserted into a node. |
void |
rangeRemoved(Node nodeArgument,
int offset,
int characterCount)
Called when a text range has been removed from a node. |
void |
repaint()
|
void |
repaint(int xArgument,
int yArgument,
int widthArgument,
int heightArgument)
|
protected void |
setLocation(int x,
int y)
|
protected void |
setParent(TextPaneSkinElementView parent)
|
protected void |
setSize(int width,
int height)
|
protected abstract void |
setSkinLocation(int skinX,
int skinY)
Set location of the NodeView relative to the skin component. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextPaneSkinNodeView(Node node)
Method Detail |
---|
public Node getNode()
public TextPaneSkinElementView getParent()
protected void setParent(TextPaneSkinElementView parent)
protected TextPaneSkin getTextPaneSkin()
protected void attach()
protected void detach()
public int getWidth()
public int getHeight()
public abstract int getBaseline()
public abstract void paint(Graphics2D g)
public Dimensions getSize()
protected void setSize(int width, int height)
public int getX()
public int getY()
public Point getLocation()
protected void setLocation(int x, int y)
protected abstract void setSkinLocation(int skinX, int skinY)
skinX
- the X coordinate in the skin's frame of referenceskinY
- the Y coordinate in the skin's frame of referencepublic Bounds getBounds()
public void repaint()
public void repaint(int xArgument, int yArgument, int widthArgument, int heightArgument)
public final boolean isValid()
public void invalidateUpTree()
public void invalidateDownTree()
public final void layout(int breakWidth)
public abstract Dimensions getPreferredSize(int breakWidth)
protected abstract void childLayout(int breakWidth)
public int getOffset()
public int getDocumentOffset()
public int getCharacterCount()
public abstract int getInsertionPoint(int xArgument, int yArgument)
public abstract int getNextInsertionPoint(int xArgument, int from, TextPane.ScrollDirection direction)
public abstract int getRowAt(int offset)
public abstract int getRowCount()
public abstract Bounds getCharacterBounds(int offset)
public void parentChanged(Node nodeArgument, Element previousParent)
NodeListener
parentChanged
in interface NodeListener
public void offsetChanged(Node nodeArgument, int previousOffset)
NodeListener
offsetChanged
in interface NodeListener
public void rangeInserted(Node nodeArgument, int offset, int span)
NodeListener
rangeInserted
in interface NodeListener
public void rangeRemoved(Node nodeArgument, int offset, int characterCount)
NodeListener
rangeRemoved
in interface NodeListener
public void nodesRemoved(Node nodeArgument, Sequence<Node> removed, int offset)
NodeListener
nodesRemoved
in interface NodeListener
public void nodeInserted(Node nodeArgument, int offset)
NodeListener
nodeInserted
in interface NodeListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |