org.apache.pivot.wtk.skin
Class TextAreaSkin.ImageNodeView
java.lang.Object
org.apache.pivot.wtk.skin.TextAreaSkin.NodeView
org.apache.pivot.wtk.skin.TextAreaSkin.ImageNodeView
- All Implemented Interfaces:
- ImageListener, ImageNodeListener, NodeListener, Visual
- Enclosing class:
- TextAreaSkin
public class TextAreaSkin.ImageNodeView
- extends TextAreaSkin.NodeView
- implements ImageNodeListener, ImageListener
Method Summary |
protected void |
attach()
|
void |
baselineChanged(Image image,
int previousBaseline)
Called when an image's baseline has changed. |
protected void |
detach()
|
Bounds |
getCharacterBounds(int offset)
|
int |
getInsertionPoint(int x,
int y)
|
TextAreaSkin.NodeView |
getNext()
|
int |
getNextInsertionPoint(int x,
int from,
Direction direction)
|
int |
getRowCount()
|
int |
getRowIndex(int offset)
|
void |
imageChanged(ImageNode imageNode,
Image previousImage)
|
void |
paint(Graphics2D graphics)
Paints the visual. |
void |
regionUpdated(Image image,
int x,
int y,
int width,
int height)
Called when a region within an image needs to be repainted. |
void |
sizeChanged(Image image,
int previousWidth,
int previousHeight)
Called when an image's size has changed. |
void |
validate()
|
Methods inherited from class org.apache.pivot.wtk.skin.TextAreaSkin.NodeView |
getBaseline, getBounds, getBreakWidth, getCharacterCount, getDocumentOffset, getHeight, getLocation, getNode, getOffset, getParent, getSize, getWidth, getX, getY, invalidate, isValid, offsetChanged, parentChanged, rangeInserted, rangeRemoved, repaint, repaint, setBreakWidth, setLocation, setParent, setSize |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextAreaSkin.ImageNodeView
public TextAreaSkin.ImageNodeView(ImageNode imageNode)
attach
protected void attach()
- Overrides:
attach
in class TextAreaSkin.NodeView
detach
protected void detach()
- Overrides:
detach
in class TextAreaSkin.NodeView
validate
public void validate()
- Overrides:
validate
in class TextAreaSkin.NodeView
paint
public void paint(Graphics2D graphics)
- Description copied from interface:
Visual
- Paints the visual.
- Specified by:
paint
in interface Visual
- Parameters:
graphics
- The graphics context in which to paint the visual.
getNext
public TextAreaSkin.NodeView getNext()
- Specified by:
getNext
in class TextAreaSkin.NodeView
getInsertionPoint
public int getInsertionPoint(int x,
int y)
- Specified by:
getInsertionPoint
in class TextAreaSkin.NodeView
getNextInsertionPoint
public int getNextInsertionPoint(int x,
int from,
Direction direction)
- Specified by:
getNextInsertionPoint
in class TextAreaSkin.NodeView
getRowIndex
public int getRowIndex(int offset)
- Specified by:
getRowIndex
in class TextAreaSkin.NodeView
getRowCount
public int getRowCount()
- Specified by:
getRowCount
in class TextAreaSkin.NodeView
getCharacterBounds
public Bounds getCharacterBounds(int offset)
- Specified by:
getCharacterBounds
in class TextAreaSkin.NodeView
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