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 CompositeBox

java.lang.Object
  extended by

org.eclipse.draw2d.text.FlowBox
      extended by
org.eclipse.draw2d.text.CompositeBox
Direct Known Subclasses:
BlockBox, LineBox

public abstract class CompositeBox
extends FlowBox

A FlowBox that can contain other FlowBoxes. The contained FlowBoxes are called fragments.

Since:
2.1

Constructor Summary
CompositeBox ()
           
 
Method Summary
abstract  void add ( FlowBox box)
          Adds the given box and updates properties of this composite box.
 int getRecommendedWidth ()
          Returns the recommended width for this CompositeBox.
abstract  void setLineTop (int top)
          Positions the box vertically by setting the y coordinate for the top of the content of the line.
 void setRecommendedWidth (int w)
          Sets the recommended width for this CompositeBox.
 
Methods inherited from class org.eclipse.draw2d.text. FlowBox
containsPoint, getAscent, getBaseline, getDescent, getWidth, getX, requiresBidi, setWidth, setX
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeBox

public CompositeBox()
Method Detail

add

public abstract void add(
FlowBox box)
Adds the given box and updates properties of this composite box.

Parameters:
box - the child being added

getRecommendedWidth

public int getRecommendedWidth()
Returns the recommended width for this CompositeBox.

Returns:
the recommended width

setRecommendedWidth

public void setRecommendedWidth(int w)
Sets the recommended width for this CompositeBox.

Parameters:
w - the width

setLineTop

public abstract void setLineTop(int top)
Positions the box vertically by setting the y coordinate for the top of the content of the line. For internal use only.

Parameters:
top - the y coordinate
Since:
3.1

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