Eclipse Draw2d
2.1

org.eclipse.draw2d.text
Class BlockBox

java.lang.Object
  |
  +--org.eclipse.draw2d.text.FlowBox
        |
        +--org.eclipse.draw2d.text.CompositeBox
              |
              +--org.eclipse.draw2d.text.BlockBox

public class BlockBox
extends CompositeBox

A CompositeBox suitable for containing multiple LineBox fragments.

Since:
2.1

Field Summary
 
Fields inherited from class org.eclipse.draw2d.text.CompositeBox
fragments
 
Fields inherited from class org.eclipse.draw2d.text.FlowBox
x, y
 
Constructor Summary
BlockBox()
           
 
Method Summary
 void add(FlowBox box)
          Adds the specified FlowBox.
 void setHeight(int h)
          Sets the height.
protected  void unionInfo(FlowBox box)
          Unions the dimensions of this with the dimensions of the passed FlowBox.
 
Methods inherited from class org.eclipse.draw2d.text.CompositeBox
clear, getFragments, getRecommendedWidth, isOccupied, resetInfo, setRecommendedWidth
 
Methods inherited from class org.eclipse.draw2d.text.FlowBox
containsPoint, getAscent, getDescent, getHeight, getWidth, makeBaseline
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlockBox

public BlockBox()
Method Detail

add

public void add(FlowBox box)
Description copied from class: CompositeBox
Adds the specified FlowBox. Updates the width, height, and ascent properties.

Overrides:
add in class CompositeBox
Parameters:
box - the FlowBox being added
See Also:
CompositeBox.add(FlowBox)

setHeight

public void setHeight(int h)
Sets the height.

Parameters:
h - The height

unionInfo

protected void unionInfo(FlowBox box)
Unions the dimensions of this with the dimensions of the passed FlowBox.

Overrides:
unionInfo in class CompositeBox
Parameters:
box - The FlowBox to union this with

Eclipse Draw2d
2.1

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