Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse Draw2d
3.3

org.eclipse.draw2d.text
Class LineBox

java.lang.Object
  extended by

org.eclipse.draw2d.text.FlowBox
      extended by

org.eclipse.draw2d.text.CompositeBox
          extended by
org.eclipse.draw2d.text.LineBox
Direct Known Subclasses:
LineRoot, NestedLine

public abstract class LineBox
extends CompositeBox

Since:
2.1

Constructor Summary
LineBox ()
           
 
Method Summary
 void add ( FlowBox child)
          Adds the given box and updates properties of this composite box.
 int getAscent ()
          Returns the amount of line content in pixels which is above the baseline.
 int getDescent ()
          Returns the amount of line content in pixels which is below the baseline.
 boolean isOccupied ()
           
 boolean requiresBidi ()
          Returns true if any of the children are bi-directional.
 
Methods inherited from class org.eclipse.draw2d.text. CompositeBox
getRecommendedWidth, setLineTop, setRecommendedWidth
 
Methods inherited from class org.eclipse.draw2d.text. FlowBox
containsPoint, getBaseline, getWidth, getX, setWidth, setX
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LineBox

public LineBox()
Method Detail

add

public void add(
FlowBox child)
Description copied from class: CompositeBox
Adds the given box and updates properties of this composite box.

Specified by:
add in class CompositeBox
Parameters:
child - the child being added
See Also:
CompositeBox.add(org.eclipse.draw2d.text.FlowBox)

getAscent

public int getAscent()
Description copied from class: FlowBox
Returns the amount of line content in pixels which is above the baseline. Ascent and descent are used to space consecutive lines apart. Certain types of line content, such as borders, extend beyond the ascent and descent.

Specified by:
getAscent in class FlowBox
Returns:
the descent in pixels below the baseline
See Also:
FlowBox.getAscent()

getDescent

public int getDescent()
Description copied from class: FlowBox
Returns the amount of line content in pixels which is below the baseline.

Specified by:
getDescent in class FlowBox
Returns:
the descent in pixels
See Also:
FlowBox.getDescent()

isOccupied

public boolean isOccupied()
Returns:
true if this box contains any fragments

requiresBidi

public boolean requiresBidi()
Description copied from class: FlowBox
Returns true if any of the children are bi-directional. Default implementation returns false.

Overrides:
requiresBidi in class FlowBox
Returns:
true if the box is bi-directional
See Also:
FlowBox.requiresBidi()

Eclipse Draw2d
3.3

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

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire