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 FrameBorder

java.lang.Object
  extended by

org.eclipse.draw2d.AbstractBorder
      extended by

org.eclipse.draw2d.CompoundBorder
          extended by
org.eclipse.draw2d.FrameBorder
All Implemented Interfaces:
Border, LabeledBorder

public class FrameBorder
extends CompoundBorder
implements LabeledBorder

Provides for a frame-like border which contains a title bar for holding the title of a Figure.


Field Summary
protected static  SchemeBorder.Scheme SCHEME_FRAME
          The border scheme that determines the border highlight and shadow colors, as well as the border width (3).
 
Fields inherited from class org.eclipse.draw2d. CompoundBorder
inner, outer
 
Fields inherited from class org.eclipse.draw2d. AbstractBorder
tempRect
 
Constructor Summary
FrameBorder ()
          Constructs a FrameBorder with its label set to the name of the TitleBarBorder class.
FrameBorder (java.lang.String label)
          Constructs a FrameBorder with the title set to the passed String.
 
Method Summary
protected  void createBorders ()
          Creates the necessary borders for this FrameBorder.
 java.lang.String getLabel ()
          Returns the label for this Border.
protected   LabeledBorder getLabeledBorder ()
          Returns the inner border of this FrameBorder, which contains the label for the FrameBorder.
 void setFont (Font font)
          Sets the font for this border's label.
 void setLabel (java.lang.String label)
          Sets the label for this border.
 
Methods inherited from class org.eclipse.draw2d. CompoundBorder
getInnerBorder, getInsets, getOuterBorder, getPreferredSize, isOpaque, paint
 
Methods inherited from class org.eclipse.draw2d. AbstractBorder
getPaintRectangle
 
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, getPreferredSize, isOpaque, paint
 

Field Detail

SCHEME_FRAME

protected static final 
SchemeBorder.Scheme SCHEME_FRAME
The border scheme that determines the border highlight and shadow colors, as well as the border width (3).

Constructor Detail

FrameBorder

public FrameBorder()
Constructs a FrameBorder with its label set to the name of the TitleBarBorder class.

Since:
2.0

FrameBorder

public FrameBorder(java.lang.String label)
Constructs a FrameBorder with the title set to the passed String.

Parameters:
label - label or title of the frame.
Since:
2.0
Method Detail

createBorders

protected void createBorders()
Creates the necessary borders for this FrameBorder. The inner border is a TitleBarBorder. The outer border is a SchemeBorder.

Since:
2.0

getLabeledBorder

protected 
LabeledBorder getLabeledBorder()
Returns the inner border of this FrameBorder, which contains the label for the FrameBorder.

Returns:
the border holding the label.
Since:
2.0

getLabel

public java.lang.String getLabel()
Description copied from interface: LabeledBorder
Returns the label for this Border.

Specified by:
getLabel in interface LabeledBorder
Returns:
the label for this border

setLabel

public void setLabel(java.lang.String label)
Sets the label for this border.

Specified by:
setLabel in interface LabeledBorder
Parameters:
label - the label

setFont

public void setFont(Font font)
Sets the font for this border's label.

Specified by:
setFont in interface LabeledBorder
Parameters:
font - the font

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