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)
           
protected  void unionInfo(FlowBox box)
          unions the fragment's width, height, and ascent into this composite.
 
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)

unionInfo

protected void unionInfo(FlowBox box)
Description copied from class: CompositeBox
unions the fragment's width, height, and ascent into this composite.

Overrides:
unionInfo in class CompositeBox
Parameters:
box - the fragment

Eclipse Draw2d
2.1

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