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

All Superinterfaces:
Border
All Known Implementing Classes:
AbstractLabeledBorder, FrameBorder

public interface LabeledBorder
extends Border

LabeledBorders have a text message somewhere on them. The Font for the text can be set. LabeledBorders should not change their Insets when the label changes, therefore, Figures using this Border should repaint() when updating the label, and revalidate() when changing the Font.


Method Summary
 java.lang.String getLabel ()
          Returns the label for this Border.
 void setFont (Font f)
          Sets the Font for the label.
 void setLabel (java.lang.String l)
          Sets the text to be displayed as the label for this Border.
 
Methods inherited from interface org.eclipse.draw2d. Border
getInsets, getPreferredSize, isOpaque, paint
 

Method Detail

getLabel

public java.lang.String getLabel()
Returns the label for this Border.

Returns:
The label for this Border

setFont

public void setFont(Font f)
Sets the Font for the label.

Parameters:
f - The Font to be set

setLabel

public void setLabel(java.lang.String l)
Sets the text to be displayed as the label for this Border.

Parameters:
l - The text

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