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 ButtonBorder

java.lang.Object
  extended by

org.eclipse.draw2d.AbstractBorder
      extended by

org.eclipse.draw2d.SchemeBorder
          extended by
org.eclipse.draw2d.ButtonBorder
All Implemented Interfaces:
Border, ColorConstants

public class ButtonBorder
extends SchemeBorder

Creates a border for a clickable type of figure, which works in conjunction with the Figure and its model. This border adjusts itself to the various states the model of the figure could be. This border uses an extended Scheme called ButtonBorder.ButtonScheme which provides more information required by border to handle the the states of the model.

See Also:
SchemeBorder.Scheme, ButtonBorder.ButtonScheme

Nested Class Summary
static class ButtonBorder.ButtonScheme
          Provides for a scheme to represent the borders of clickable figures like buttons.
static interface ButtonBorder.SCHEMES
          Interface defining commonly used schemes for the ButtonBorder.
 
Nested classes inherited from class org.eclipse.draw2d. SchemeBorder
SchemeBorder.Scheme
 
Nested classes inherited from class org.eclipse.draw2d. ColorConstants
ColorConstants.SystemColorFactory
 
Field Summary
static  Border BUTTON
          Default button border.
static  Border BUTTON_CONTRAST
          Inverted hightlight colors from BUTTON.
static  Border BUTTON_SCROLLBAR
          Used for scrollbar buttons.
static  Border TOOLBAR
          Used for toolbar buttons.
 
Fields inherited from class org.eclipse.draw2d. SchemeBorder
DARKER_LIGHTER, DARKEST_DARKER, LIGHTER_DARKER, scheme
 
Fields inherited from class org.eclipse.draw2d. AbstractBorder
tempRect
 
Fields inherited from interface org.eclipse.draw2d. ColorConstants
black, blue, button, buttonDarker, buttonDarkest, buttonLightest, cyan, darkBlue, darkGray, darkGreen, gray, green, lightBlue, lightGray, lightGreen, listBackground, listForeground, menuBackground, menuBackgroundSelected, menuForeground, menuForegroundSelected, orange, red, titleBackground, titleForeground, titleGradient, titleInactiveBackground, titleInactiveForeground, titleInactiveGradient, tooltipBackground, tooltipForeground, white, yellow
 
Constructor Summary
ButtonBorder ()
          Constructs a ButtonBorder with a predefined button scheme set as its default.
ButtonBorder ( ButtonBorder.ButtonScheme scheme)
          Constructs a ButtonBorder with the input ButtonScheme set as its Scheme.
 
Method Summary
 void paint ( IFigure figure, Graphics graphics, Insets insets)
          Paints this border with the help of the set scheme, the model of the clickable figure, and other inputs.
 
Methods inherited from class org.eclipse.draw2d. SchemeBorder
getInsets, getScheme, isOpaque, paint, setScheme
 
Methods inherited from class org.eclipse.draw2d. AbstractBorder
getPaintRectangle, getPreferredSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUTTON

public static final 
Border BUTTON
Default button border.

See Also:
ButtonBorder.SCHEMES.BUTTON

BUTTON_CONTRAST

public static final 
Border BUTTON_CONTRAST
Inverted hightlight colors from BUTTON.

See Also:
ButtonBorder.SCHEMES.BUTTON_CONTRAST

BUTTON_SCROLLBAR

public static final 
Border BUTTON_SCROLLBAR
Used for scrollbar buttons.

See Also:
ButtonBorder.SCHEMES.BUTTON_SCROLLBAR

TOOLBAR

public static final 
Border TOOLBAR
Used for toolbar buttons.

See Also:
ButtonBorder.SCHEMES.TOOLBAR
Constructor Detail

ButtonBorder

public ButtonBorder()
Constructs a ButtonBorder with a predefined button scheme set as its default.

Since:
2.0

ButtonBorder

public ButtonBorder(
ButtonBorder.ButtonScheme scheme)
Constructs a ButtonBorder with the input ButtonScheme set as its Scheme.

Parameters:
scheme - ButtonScheme for this ButtonBorder.
Since:
2.0
Method Detail

paint

public void paint(
IFigure figure,
                  
Graphics graphics,
                  
Insets insets)
Paints this border with the help of the set scheme, the model of the clickable figure, and other inputs. The scheme is used in conjunction with the state of the model to get the appropriate colors for the border.

Specified by:
paint in interface Border
Overrides:
paint in class SchemeBorder
Parameters:
figure - The Clickable that this border belongs to
graphics - The graphics 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