Eclipse Draw2d
3.0

org.eclipse.draw2d.text
Class ImageFlow

java.lang.Object
  extended byorg.eclipse.draw2d.Figure
      extended byorg.eclipse.draw2d.text.FlowFigure
          extended byorg.eclipse.draw2d.text.ImageFlow
All Implemented Interfaces:
IFigure

public class ImageFlow
extends FlowFigure

A FlowFigure to insert images in a block.

WARNING: This class is not intended to be subclassed by clients. The API is subject to change.

Since:
3.1

Nested Class Summary
 
Nested classes inherited from class org.eclipse.draw2d.Figure
Figure.FigureIterator, Figure.IdentitySearch
 
Nested classes inherited from class org.eclipse.draw2d.IFigure
IFigure.NoInsets
 
Field Summary
 
Fields inherited from class org.eclipse.draw2d.Figure
bgColor, border, bounds, fgColor, flags, font, MAX_FLAG, maxSize, minSize, NO_MANAGER, prefSize, toolTip
 
Fields inherited from interface org.eclipse.draw2d.IFigure
MAX_DIMENSION, MIN_DIMENSION, NO_INSETS
 
Constructor Summary
ImageFlow()
          Default Constructor
ImageFlow(Image img)
          Constructor
 
Method Summary
protected  void contributeBidi(BidiProcessor proc)
          This FlowFigure contributes an Object Replacement Character.
protected  FlowFigureLayout createDefaultFlowLayout()
          ImageFlow does not use a layout manager.
protected  void layout()
          Lays out this Figure using its LayoutManager.
protected  void paintFigure(Graphics graphics)
          Paints the image.
 void postValidate()
          Updates the bounds of the ImageFlow to match that of its content box.
 void setFlowContext(FlowContext flowContext)
          Since ImageFlow doesn't use a LayoutManager, it saves a reference to it.
 void setImage(Image image)
          Sets the image to be displayed by this ImageFlow
 
Methods inherited from class org.eclipse.draw2d.text.FlowFigure
add, addLeadingWordRequirements, getBidiValues, invalidateBidi, remove, revalidateBidi, setAppendJoiner, setBidiValues, setBounds, setPrependJoiner
 
Methods inherited from class org.eclipse.draw2d.Figure
add, add, add, addAncestorListener, addCoordinateListener, addFigureListener, addFocusListener, addKeyListener, addLayoutListener, addListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, containsPoint, containsPoint, erase, findDescendantAtExcluding, findFigureAt, findFigureAt, findFigureAt, findFigureAtExcluding, findMouseEventTargetAt, findMouseEventTargetInDescendantsAt, fireCoordinateSystemChanged, fireFigureMoved, fireMoved, firePropertyChange, firePropertyChange, firePropertyChange, getBackgroundColor, getBorder, getBounds, getChildren, getClientArea, getClientArea, getCursor, getFlag, getFont, getForegroundColor, getInsets, getLayoutManager, getListeners, getLocalBackgroundColor, getLocalForegroundColor, getLocation, getMaximumSize, getMinimumSize, getMinimumSize, getParent, getPreferredSize, getPreferredSize, getSize, getToolTip, getUpdateManager, handleFocusGained, handleFocusLost, handleKeyPressed, handleKeyReleased, handleMouseDoubleClicked, handleMouseDragged, handleMouseEntered, handleMouseExited, handleMouseHover, handleMouseMoved, handleMousePressed, handleMouseReleased, hasFocus, internalGetEventDispatcher, intersects, invalidate, invalidateTree, isCoordinateSystem, isEnabled, isFocusTraversable, isMouseEventTarget, isOpaque, isRequestFocusEnabled, isShowing, isValid, isValidationRoot, isVisible, paint, paintBorder, paintChildren, paintClientArea, primTranslate, removeAll, removeAncestorListener, removeCoordinateListener, removeFigureListener, removeFocusListener, removeKeyListener, removeLayoutListener, removeListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, revalidate, setBackgroundColor, setBorder, setChildrenDirection, setChildrenEnabled, setChildrenOrientation, setConstraint, setCursor, setEnabled, setFlag, setFocusTraversable, setFont, setForegroundColor, setLayoutManager, setLocation, setMaximumSize, setMinimumSize, setOpaque, setParent, setPreferredSize, setPreferredSize, setRequestFocusEnabled, setSize, setSize, setToolTip, setValid, setVisible, translate, translateFromParent, translateToAbsolute, translateToParent, translateToRelative, useLocalCoordinates, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageFlow

public ImageFlow()
Default Constructor


ImageFlow

public ImageFlow(Image img)
Constructor

Parameters:
img - the Image to be displayed
Method Detail

contributeBidi

protected void contributeBidi(BidiProcessor proc)
This FlowFigure contributes an Object Replacement Character.

Overrides:
contributeBidi in class FlowFigure
Parameters:
proc - the BidiProcessor to which contributions should be made
See Also:
FlowFigure.contributeBidi(org.eclipse.draw2d.text.BidiProcessor)

createDefaultFlowLayout

protected FlowFigureLayout createDefaultFlowLayout()
ImageFlow does not use a layout manager.

Specified by:
createDefaultFlowLayout in class FlowFigure
Returns:
The default layout
See Also:
FlowFigure.createDefaultFlowLayout()

layout

protected void layout()
Description copied from class: Figure
Lays out this Figure using its LayoutManager.

Overrides:
layout in class Figure
See Also:
Figure.layout()

paintFigure

protected void paintFigure(Graphics graphics)
Paints the image.

Overrides:
paintFigure in class Figure
Parameters:
graphics - The Graphics used to paint
See Also:
Figure.paintFigure(org.eclipse.draw2d.Graphics)

postValidate

public void postValidate()
Updates the bounds of the ImageFlow to match that of its content box.

Specified by:
postValidate in class FlowFigure
See Also:
FlowFigure.postValidate()

setFlowContext

public void setFlowContext(FlowContext flowContext)
Since ImageFlow doesn't use a LayoutManager, it saves a reference to it.

Overrides:
setFlowContext in class FlowFigure
Parameters:
flowContext - the flow context for this flow figure
See Also:
FlowFigure.setFlowContext(org.eclipse.draw2d.text.FlowContext)

setImage

public void setImage(Image image)
Sets the image to be displayed by this ImageFlow

Parameters:
image - the Image to be displayed

Eclipse Draw2d
3.0

Copyright (c) IBM Corp. and others 2000, 2004. All Rights Reserved.