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
Interface FlowBorder

All Superinterfaces:
Border
All Known Implementing Classes:
AbstractFlowBorder

public interface FlowBorder
extends Border

Experimental API. This is a special type of border for use with FlowFigures. This interface should not be implemented by clients. Clients should extend AbstractFlowBorder.

Since:
3.1

Method Summary
 int getBottomMargin ()
          Returns the collapsable bottom margin in pixels.
 int getLeftMargin ()
          Returns the left margin in pixels.
 int getRightMargin ()
          Returns the right margin in pixels.
 int getTopMargin ()
          Returns the collapsable top margin in pixels.
 void paint ( FlowFigure figure, Graphics g, Rectangle where, int sides)
          Paints the border around the given box location.
 
Methods inherited from interface org.eclipse.draw2d. Border
getInsets, getPreferredSize, isOpaque, paint
 

Method Detail

getBottomMargin

public int getBottomMargin()
Returns the collapsable bottom margin in pixels. Margin is the space external to the border and the flow box on which it is rendered. Vertical margins (top and bottom) may collapse in some situations, such as adjacent or nested blocks.

Returns:
the bottom margin
Since:
3.1

getLeftMargin

public int getLeftMargin()
Returns the left margin in pixels. Margin is the space external to the border and the flow box on which it is rendered.

Returns:
the left margin
Since:
3.1

getRightMargin

public int getRightMargin()
Returns the right margin in pixels. Margin is the space external to the border and the flow box on which it is rendered.

Returns:
the right margin
Since:
3.1

getTopMargin

public int getTopMargin()
Returns the collapsable top margin in pixels. Margin is the space external to the border and the flow box on which it is rendered. Vertical margins (top and bottom) may collapse in some situations, such as adjacent or nested blocks.

Returns:
the top margin
Since:
3.1

paint

public void paint(
FlowFigure figure,
                  
Graphics g,
                  
Rectangle where,
                  int sides)
Paints the border around the given box location. The border is asked to paint each of the FlowFigure's boxes. The sideInfo parameter is used to indicate whether the left and right sides should be rendered. This parameter will contain the following bit flags:

Parameters:
figure - the flow figure whose border is being painted
g - the graphics
where - the relative location of the box
sides - bits indicating sides and bidi orientation
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