|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectice.pilots.html4.CSSBox
ice.pilots.html4.InlineBox
ice.pilots.html4.BlockBox
ice.pilots.html4.ScrollBox
This box is used by CSS scrollers to contain all the children of a BlockBox which has overflow==scroll
| Field Summary | |
protected static int |
_expansions
|
protected LineBox[] |
_lineBoxArray
|
protected int |
_lineBoxIndex
An index into the array of LineBoxes used for line layout |
protected static int |
_passes
|
protected int |
_startingCharOffset
The index of the starting character offset for this passage. |
protected int |
_startingSentenceOffset
|
protected int |
_startingWordOffset
|
protected int |
boxId
|
protected ice.pilots.html4.CSSLayout |
cssLayout
|
protected DElement |
element
|
protected ice.pilots.html4.CSSBox |
first
|
protected static int |
idCounter
|
protected boolean |
isPureBlock
|
protected ice.pilots.html4.CSSBox |
last
|
protected int |
lastPosition
|
protected ice.pilots.html4.CSSBox |
lastProcessedChild
|
protected static int |
LINE_ARRAY_SIZE
|
protected static int |
LINE_BLOCK_SIZE
|
protected int[] |
lines
|
protected ice.pilots.html4.CSSBox |
next
|
protected ice.pilots.html4.CSSBox |
parentBox
|
protected int |
sizeLines
|
protected int |
totalSkipped
|
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Method Summary | |
protected boolean |
changeDynamicStyle(int type)
|
void |
clearHighlights()
Clear all highlight ranges on a given node. |
protected void |
findAbsPos(Point p)
Return the absolute position of the the box inside the document. |
ScrollBox |
getAncestorScrollBox()
Get the closest ScrollBox ancestor of this ScrollBox |
CSSAttribs |
getCSSAttribs()
|
int |
getHeight()
Retrieve the height of this ScrollBox |
ObjectBox |
getObjectBox()
Get ObjectBox associated with this ScrollBox |
int |
getScrollableHeight()
Retrieve the height of this ScrollBox's client content. |
int |
getScrollableWidth()
Retrieve the width of this ScrollBox's client. |
int |
getScrollX()
Retrieve the setting of the horizontal ScrollBar |
int |
getScrollY()
Retrieve the setting of the vertical ScrollBar |
int |
getWidth()
Retrieve the width of this ScrollBox |
boolean |
hasMoreThanOneChild()
|
void |
highlightArea(int startPosition,
int endPosition)
Define a highlight range on a given node. |
boolean |
imageUpdate(Image img,
int info,
int x,
int y,
int w,
int h)
|
void |
layout(int parentContentWidth,
int parentContentHeight,
ice.pilots.html4.FloatManager m)
|
void |
layoutScrollable(int parentContentWidth,
int parentContentHeight)
|
void |
paint(Graphics g)
Paint the contents of this block box. |
protected void |
paintBackground(Graphics g,
Rectangle clip_r,
int aX,
int aY,
int aW,
int aH,
int vadjust)
Paint the background color and/or the background image of this box. |
protected void |
paintBorders(Graphics g,
Rectangle r,
int x,
int y,
int w,
int h,
boolean isTop,
boolean isBottom,
boolean isLeft,
boolean isRight)
It is assumed that if isTop==true then isTop has some style and has width. |
protected void |
paintChildren(Graphics g,
int aStartX,
int aWidth,
LineBox aLineBox)
Paint this InlineBoxes children. |
void |
paintScrollable(Graphics g)
|
void |
setScrollPosition(int sx,
int sy)
|
protected boolean |
setVisibility(short b)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected boolean isPureBlock
protected static final int LINE_BLOCK_SIZE
protected static final int LINE_ARRAY_SIZE
protected static final int _passes
protected static final int _expansions
protected int[] lines
protected LineBox[] _lineBoxArray
protected int sizeLines
protected int totalSkipped
protected int _lineBoxIndex
protected ice.pilots.html4.CSSBox first
protected ice.pilots.html4.CSSBox last
protected ice.pilots.html4.CSSBox lastProcessedChild
protected int lastPosition
protected static int idCounter
protected int boxId
protected ice.pilots.html4.CSSLayout cssLayout
protected ice.pilots.html4.CSSBox parentBox
protected ice.pilots.html4.CSSBox next
protected DElement element
protected int _startingCharOffset
protected int _startingWordOffset
protected int _startingSentenceOffset
| Method Detail |
public void setScrollPosition(int sx,
int sy)
public int getScrollX()
public int getScrollY()
public void paint(Graphics g)
ice.pilots.html4.BlockBox
g - GraphicsContext to paint the box inpublic int getScrollableWidth()
public int getScrollableHeight()
public int getHeight()
public int getWidth()
public void layoutScrollable(int parentContentWidth,
int parentContentHeight)
public void paintScrollable(Graphics g)
public ScrollBox getAncestorScrollBox()
public ObjectBox getObjectBox()
public void layout(int parentContentWidth,
int parentContentHeight,
ice.pilots.html4.FloatManager m)
public boolean hasMoreThanOneChild()
protected final boolean changeDynamicStyle(int type)
protected void paintChildren(Graphics g,
int aStartX,
int aWidth,
LineBox aLineBox)
g - The GraphicsContextaStartX - The starting X offset of the chunk to paintaWidth - The width of the screen segment in which to paint children in.aLineBox - The object describing the y deflection of the line elements. This may be null.protected final boolean setVisibility(short b)
public CSSAttribs getCSSAttribs()
public void highlightArea(int startPosition,
int endPosition)
highlightArea in interface HighlightListenerstartPosition - Starting character offset for highlight range, or zero.endPosition - Ending character offset for highlight range, or zero.public void clearHighlights()
clearHighlights in interface HighlightListenerprotected void findAbsPos(Point p)
p - position will be writen to this variable.public String toString()
protected void paintBackground(Graphics g,
Rectangle clip_r,
int aX,
int aY,
int aW,
int aH,
int vadjust)
g - Graphics context in which to paint.clip_r - Clipping bounds of Graphics contextaX - X position of top left corneraY - Y position of top left corneraW - Width of area to paintaH - Height of area to paintvadjust - An adjustment factor to apply to a background image.
public boolean imageUpdate(Image img,
int info,
int x,
int y,
int w,
int h)
imageUpdate in interface ImageObserver
protected void paintBorders(Graphics g,
Rectangle r,
int x,
int y,
int w,
int h,
boolean isTop,
boolean isBottom,
boolean isLeft,
boolean isRight)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||