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 Draw2d
3.3

org.eclipse.draw2d
Class MarginBorder

java.lang.Object
  extended by

org.eclipse.draw2d.AbstractBorder
      extended by
org.eclipse.draw2d.MarginBorder
All Implemented Interfaces:
Border

public class MarginBorder
extends AbstractBorder

A border that provides blank padding.


Field Summary
protected   Insets insets
          This border's insets.
 
Fields inherited from class org.eclipse.draw2d. AbstractBorder
tempRect
 
Constructor Summary
MarginBorder ( Insets insets)
          Constructs a MarginBorder with dimensions specified by insets.
MarginBorder (int allsides)
          Constructs a MarginBorder with equal padding on all sides.
MarginBorder (int t, int l, int b, int r)
          Constructs a MarginBorder with padding specified by the passed values.
 
Method Summary
  Insets getInsets ( IFigure figure)
          Returns the Insets for this Border for the given Figure.
 void paint ( IFigure figure, Graphics graphics, Insets insets)
          This method does nothing, since this border is just for spacing.
 
Methods inherited from class org.eclipse.draw2d. AbstractBorder
getPaintRectangle, getPreferredSize, isOpaque
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

insets

protected 
Insets insets
This border's insets.

Constructor Detail

MarginBorder

public MarginBorder(
Insets insets)
Constructs a MarginBorder with dimensions specified by insets.

Parameters:
insets - The Insets for the border
Since:
2.0

MarginBorder

public MarginBorder(int t,
                    int l,
                    int b,
                    int r)
Constructs a MarginBorder with padding specified by the passed values.

Parameters:
t - Top padding
l - Left padding
b - Bottom padding
r - Right padding
Since:
2.0

MarginBorder

public MarginBorder(int allsides)
Constructs a MarginBorder with equal padding on all sides.

Parameters:
allsides - Padding size for all sides of the border.
Since:
2.0
Method Detail

getInsets

public 
Insets getInsets(
IFigure figure)
Description copied from interface: Border
Returns the Insets for this Border for the given Figure.

Parameters:
figure - The figure this border belongs to
Returns:
The insets
See Also:
Border.getInsets(IFigure)

paint

public void paint(
IFigure figure,
                  
Graphics graphics,
                  
Insets insets)
This method does nothing, since this border is just for spacing.

Parameters:
figure - The figure this border belongs to
graphics - The graphics object used for painting
insets - The insets
See Also:
Border.paint(IFigure, Graphics, Insets)

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