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
Class AbstractBorder

java.lang.Object
  extended by
org.eclipse.draw2d.AbstractBorder
All Implemented Interfaces:
Border
Direct Known Subclasses:
AbstractBackground, AbstractFlowBorder, AbstractLabeledBorder, CompoundBorder, FocusBorder, LineBorder, MarginBorder, SchemeBorder

public abstract class AbstractBorder
extends java.lang.Object
implements Border

Provides generic support for borders.


Field Summary
protected static  Rectangle tempRect
          A temporary Rectangle
 
Constructor Summary
AbstractBorder ()
           
 
Method Summary
protected static  Rectangle getPaintRectangle ( IFigure figure, Insets insets)
          Returns a temporary rectangle representing the figure's bounds cropped by the specified insets.
  Dimension getPreferredSize ( IFigure f)
          Returns the preferred width and height that this border would like to display itself properly.
 boolean isOpaque ()
          Returns true if the Border completely fills the region defined in Border.paint(IFigure, Graphics, Insets).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.draw2d. Border
getInsets, paint
 

Field Detail

tempRect

protected static 
Rectangle tempRect
A temporary Rectangle

Constructor Detail

AbstractBorder

public AbstractBorder()
Method Detail

getPaintRectangle

protected static final 
Rectangle getPaintRectangle(
IFigure figure,
                                                   
Insets insets)
Returns a temporary rectangle representing the figure's bounds cropped by the specified insets. This method exists for convenience and performance; the method does not new any Objects and returns a rectangle which the caller can manipulate.

Parameters:
figure - Figure for which the paintable rectangle is needed
insets - The insets
Returns:
The paintable region on the Figure f
Since:
2.0

getPreferredSize

public 
Dimension getPreferredSize(
IFigure f)
Description copied from interface: Border
Returns the preferred width and height that this border would like to display itself properly.

Specified by:
getPreferredSize in interface Border
Parameters:
f - The figure
Returns:
The preferred size
See Also:
Border.getPreferredSize(IFigure)

isOpaque

public boolean isOpaque()
Description copied from interface: Border
Returns true if the Border completely fills the region defined in Border.paint(IFigure, Graphics, Insets).

Specified by:
isOpaque in interface Border
Returns:
true if this border is opaque
See Also:
Border.isOpaque()

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