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

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

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.jface.text
Interface IInformationControlExtension3

All Known Implementing Classes:
AbstractInformationControl, DefaultInformationControl

public interface IInformationControlExtension3

Extension interface for IInformationControl. Adds API which allows to get this information control's bounds and introduces the concept of persistent size and location by introducing predicates for whether the information control supports restoring of size and location.

Note: An information control which implements this interface can ignore calls to IInformationControl.setSizeConstraints(int, int) or use it as hint for its very first appearance.

Since:
3.0
See Also:
IInformationControl

Method Summary
  Rectangle computeTrim ()
          Computes the trim for this control.
  Rectangle getBounds ()
          Returns a rectangle describing the receiver's size and location relative to its parent (or its display if its parent is null).
 boolean restoresLocation ()
          Tells whether this control allows to restore the previously used location.
 boolean restoresSize ()
          Tells whether this control allows to restore the previously used size.
 

Method Detail

getBounds

Rectangle getBounds()
Returns a rectangle describing the receiver's size and location relative to its parent (or its display if its parent is null).

Note: If the receiver is already disposed then this methods must return the last valid location and size.

Returns:
the receiver's bounding rectangle

computeTrim

Rectangle computeTrim()
Computes the trim for this control. The trim is the space around the information control's actual content area. It includes all borders of the control and other static content placed around the content area (e.g. a toolbar).

Returns:
The receiver's trim. x and y denote the upper left corner of the trimming relative to this control's location i.e. this will most likely be negative values. width and height represent the border sizes (the sum of the horizontal and vertical trimmings, respectively).

restoresSize

boolean restoresSize()
Tells whether this control allows to restore the previously used size.

Note: This is not a static property - it can change during the lifetime of this control.

Returns:
true if restoring size is supported

restoresLocation

boolean restoresLocation()
Tells whether this control allows to restore the previously used location.

Note: This is not a static property - it can change during the lifetime of this control.

Returns:
true if restoring location is supported

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


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