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

A Geometric object for representing a TextFragment region on a line of Text.


Field Summary
 int length
          The length in pixels
 int offset
          The offset in pixels
 
Fields inherited from class org.eclipse.draw2d.text.FlowBox
x, y
 
Constructor Summary
TextFragmentBox()
          Creates a new TextFragmentBox
 
Method Summary
 int getAscent()
          Returns the ascent of this TextFragmentBox
 void setAscent(int a)
          Sets the ascent of this TextFragmentBox to the given value
 void setHeight(int h)
          Sets the height of this TextFragmentBox to the given value
 void setWidth(int w)
          Sets the width of this TextFragmentBox to the given value
 
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
The offset in pixels


length

public int length
The length in pixels

Constructor Detail

TextFragmentBox

public TextFragmentBox()
Creates a new TextFragmentBox

Method Detail

getAscent

public int getAscent()
Returns the ascent of this TextFragmentBox

Overrides:
getAscent in class FlowBox
Returns:
the ascent

setAscent

public void setAscent(int a)
Sets the ascent of this TextFragmentBox to the given value

Parameters:
a - the ascent

setHeight

public void setHeight(int h)
Sets the height of this TextFragmentBox to the given value

Parameters:
h - the height

setWidth

public void setWidth(int w)
Sets the width of this TextFragmentBox to the given value

Parameters:
w - the width

Eclipse Draw2d
2.1

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