org.apache.pivot.wtk.skin
Class TextPaneSkinImageNodeView
java.lang.Object
org.apache.pivot.wtk.skin.TextPaneSkinNodeView
org.apache.pivot.wtk.skin.TextPaneSkinImageNodeView
- All Implemented Interfaces:
- ImageListener, ImageNodeListener, NodeListener
class TextPaneSkinImageNodeView
- extends TextPaneSkinNodeView
- implements ImageNodeListener, ImageListener
Method Summary |
protected void |
attach()
|
void |
baselineChanged(Image image,
int previousBaseline)
Called when an image's baseline has changed. |
protected void |
childLayout(int breakWidth)
|
protected void |
detach()
|
int |
getBaseline()
|
Bounds |
getCharacterBounds(int offset)
|
int |
getInsertionPoint(int x,
int y)
|
int |
getNextInsertionPoint(int x,
int from,
TextPane.ScrollDirection direction)
|
Dimensions |
getPreferredSize(int breakWidth)
|
int |
getRowAt(int offset)
|
int |
getRowCount()
|
void |
imageChanged(ImageNode imageNode,
Image previousImage)
|
void |
paint(Graphics2D graphics)
|
void |
regionUpdated(Image image,
int x,
int y,
int width,
int height)
Called when a region within an image needs to be repainted. |
protected void |
setSkinLocation(int skinX,
int skinY)
Set location of the NodeView relative to the skin component. |
void |
sizeChanged(Image image,
int previousWidth,
int previousHeight)
Called when an image's size has changed. |
Methods inherited from class org.apache.pivot.wtk.skin.TextPaneSkinNodeView |
getBounds, getCharacterCount, getDocumentOffset, getHeight, getLocation, getNode, getOffset, getParent, getSize, getTextPaneSkin, getWidth, getX, getY, invalidateDownTree, invalidateUpTree, isValid, layout, nodeInserted, nodesRemoved, offsetChanged, parentChanged, rangeInserted, rangeRemoved, repaint, repaint, setLocation, setParent, setSize |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextPaneSkinImageNodeView
public TextPaneSkinImageNodeView(ImageNode imageNode)
attach
protected void attach()
- Overrides:
attach
in class TextPaneSkinNodeView
detach
protected void detach()
- Overrides:
detach
in class TextPaneSkinNodeView
childLayout
protected void childLayout(int breakWidth)
- Specified by:
childLayout
in class TextPaneSkinNodeView
getPreferredSize
public Dimensions getPreferredSize(int breakWidth)
- Specified by:
getPreferredSize
in class TextPaneSkinNodeView
setSkinLocation
protected void setSkinLocation(int skinX,
int skinY)
- Description copied from class:
TextPaneSkinNodeView
- Set location of the NodeView relative to the skin component.
This is needed by the ComponentViewNode to correctly position child Component's.
- Specified by:
setSkinLocation
in class TextPaneSkinNodeView
- Parameters:
skinX
- the X coordinate in the skin's frame of referenceskinY
- the Y coordinate in the skin's frame of reference
getBaseline
public int getBaseline()
- Specified by:
getBaseline
in class TextPaneSkinNodeView
paint
public void paint(Graphics2D graphics)
- Specified by:
paint
in class TextPaneSkinNodeView
getInsertionPoint
public int getInsertionPoint(int x,
int y)
- Specified by:
getInsertionPoint
in class TextPaneSkinNodeView
getNextInsertionPoint
public int getNextInsertionPoint(int x,
int from,
TextPane.ScrollDirection direction)
- Specified by:
getNextInsertionPoint
in class TextPaneSkinNodeView
getRowAt
public int getRowAt(int offset)
- Specified by:
getRowAt
in class TextPaneSkinNodeView
getRowCount
public int getRowCount()
- Specified by:
getRowCount
in class TextPaneSkinNodeView
getCharacterBounds
public Bounds getCharacterBounds(int offset)
- Specified by:
getCharacterBounds
in class TextPaneSkinNodeView
imageChanged
public void imageChanged(ImageNode imageNode,
Image previousImage)
- Specified by:
imageChanged
in interface ImageNodeListener
sizeChanged
public void sizeChanged(Image image,
int previousWidth,
int previousHeight)
- Description copied from interface:
ImageListener
- Called when an image's size has changed.
- Specified by:
sizeChanged
in interface ImageListener
baselineChanged
public void baselineChanged(Image image,
int previousBaseline)
- Description copied from interface:
ImageListener
- Called when an image's baseline has changed.
- Specified by:
baselineChanged
in interface ImageListener
regionUpdated
public void regionUpdated(Image image,
int x,
int y,
int width,
int height)
- Description copied from interface:
ImageListener
- Called when a region within an image needs to be repainted.
- Specified by:
regionUpdated
in interface ImageListener