public class FlowPage extends BlockFlow
A FlowPage will not have a defined width unless it is inside a figure whose
layout provides width hints when calling
IFigure.getPreferredSize(int, int)
.
WARNING: This class is not intended to be subclassed by clients.
Figure.FigureIterator, Figure.IdentitySearch
IFigure.NoInsets
selectionStart
bgColor, border, bounds, fgColor, flags, font, MAX_FLAG, maxSize, minSize, NO_MANAGER, prefSize, toolTip
MAX_DIMENSION, MIN_DIMENSION, NO_INSETS
Constructor and Description |
---|
FlowPage() |
Modifier and Type | Method and Description |
---|---|
void |
addNotify()
Called after the receiver's parent has been set and it has been added to
its parent.
|
protected FlowFigureLayout |
createDefaultFlowLayout()
Creates the default layout manager
|
Dimension |
getMinimumSize(int w,
int h)
Returns a hint indicating the smallest desireable size for the IFigure.
|
Dimension |
getPreferredSize(int width,
int h)
Returns the preferred size for this IFigure using the provided width and
height hints.
|
void |
invalidate()
Invalidates this IFigure.
|
void |
postValidate()
Called after validate has occurred.
|
void |
removeNotify()
Overridden to set valid.
|
void |
setBounds(Rectangle r)
FlowFigures override setBounds() to prevent translation of children.
|
void |
validate()
Re-evaluate the Bidi state of all the fragments if it has been
invalidated.
|
contributeBidi, getBlockBox, getHorizontalAligment, getLocalHorizontalAlignment, getLocalOrientation, getOrientation, paintBorder, revalidate, revalidateBidi, setHorizontalAligment, setOrientation, useLocalCoordinates
add, addLeadingWordRequirements, remove, setBidiInfo, setFlowContext, setSelection
add, add, add, addAncestorListener, addCoordinateListener, addFigureListener, addFocusListener, addKeyListener, addLayoutListener, addListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, containsPoint, containsPoint, erase, findDescendantAtExcluding, findFigureAt, findFigureAt, findFigureAt, findFigureAtExcluding, findMouseEventTargetAt, findMouseEventTargetInDescendantsAt, fireCoordinateSystemChanged, fireFigureMoved, fireMoved, firePropertyChange, firePropertyChange, firePropertyChange, getBackgroundColor, getBorder, getBounds, getChildren, getClientArea, getClientArea, getClippingStrategy, getCursor, getFlag, getFont, getForegroundColor, getInsets, getLayoutManager, getListeners, getLocalBackgroundColor, getLocalFont, getLocalForegroundColor, getLocation, getMaximumSize, getMinimumSize, getParent, getPreferredSize, getSize, getToolTip, getUpdateManager, handleFocusGained, handleFocusLost, handleKeyPressed, handleKeyReleased, handleMouseDoubleClicked, handleMouseDragged, handleMouseEntered, handleMouseExited, handleMouseHover, handleMouseMoved, handleMousePressed, handleMouseReleased, hasFocus, internalGetEventDispatcher, intersects, invalidateTree, isCoordinateSystem, isEnabled, isFocusTraversable, isMirrored, isMouseEventTarget, isOpaque, isRequestFocusEnabled, isShowing, isValid, isValidationRoot, isVisible, layout, paint, paintChildren, paintClientArea, paintFigure, primTranslate, removeAll, removeAncestorListener, removeCoordinateListener, removeFigureListener, removeFocusListener, removeKeyListener, removeLayoutListener, removeListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, setBackgroundColor, setBorder, setChildrenDirection, setChildrenEnabled, setChildrenOrientation, setClippingStrategy, 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
public void addNotify()
Figure
addNotify
in interface IFigure
addNotify
in class Figure
Figure.addNotify()
protected FlowFigureLayout createDefaultFlowLayout()
FlowFigure
createDefaultFlowLayout
in class BlockFlow
BlockFlow.createDefaultFlowLayout()
public Dimension getMinimumSize(int w, int h)
IFigure
getMinimumSize
in interface IFigure
getMinimumSize
in class Figure
w
- the width hinth
- the height hintFigure.getMinimumSize(int, int)
public void invalidate()
IFigure
LayoutManager.invalidate()
should be called on that layout.invalidate
in interface IFigure
invalidate
in class Figure
Figure.invalidate()
public Dimension getPreferredSize(int width, int h)
IFigure
-1
indicates
that there is no constraint in that direction.getPreferredSize
in interface IFigure
getPreferredSize
in class Figure
width
- a width hinth
- a height hintFigure.getPreferredSize(int, int)
public void postValidate()
FlowFigure
postValidate
in class BlockFlow
BlockFlow.postValidate()
public void removeNotify()
removeNotify
in interface IFigure
removeNotify
in class Figure
IFigure.removeNotify()
public void setBounds(Rectangle r)
FlowFigure
setBounds
in interface IFigure
setBounds
in class FlowFigure
r
- The new boundsFlowFigure.setBounds(Rectangle)
Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.