Eclipse Draw2d
2.1

org.eclipse.draw2d.text
Class TextFragmentBox

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

public class TextFragmentBox
extends FlowBox


Field Summary
 int length
           
 int offset
           
 
Fields inherited from class org.eclipse.draw2d.text.FlowBox
x, y
 
Constructor Summary
TextFragmentBox()
           
 
Method Summary
 int getAscent()
          By default, a FlowBox is all ascent, and no descent, so the height is returned.
 void setAscent(int a)
           
 void setHeight(int h)
           
 void setWidth(int w)
           
 
Methods inherited from class org.eclipse.draw2d.text.FlowBox
containsPoint, getDescent, getHeight, getWidth, makeBaseline
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

offset

public int offset

length

public int length
Constructor Detail

TextFragmentBox

public TextFragmentBox()
Method Detail

getAscent

public int getAscent()
Description copied from class: FlowBox
By default, a FlowBox is all ascent, and no descent, so the height is returned.

Overrides:
getAscent in class FlowBox
Returns:
the ascent in pixels above the baseline

setAscent

public void setAscent(int a)

setHeight

public void setHeight(int h)

setWidth

public void setWidth(int w)

Eclipse Draw2d
2.1

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