com.sas.visuals
Class ToolbarBorder

com.sas.visuals.ToolbarBorder
All Implemented Interfaces:
com.sas.beans.PropertyChangeSource, com.sas.beans.VetoableChangeSource, com.sas.ComponentInterface, com.sas.LinkPropertiesInterface, com.sas.ModelInterface, com.sas.PublicClonable, com.sas.ViewInterface, BorderInterface, MultipleValueEventSourceInterface, VisualAspects, java.beans.PropertyChangeListener, java.io.ObjectInputValidation, java.io.Serializable, java.lang.Cloneable, java.util.EventListener

public class ToolbarBorder

ToolbarBorder provides Border support for Windows 95 Window Border styles for Toolbars

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.sas.visuals.Windows95Border
_component
 
Fields inherited from class com.sas.visuals.Border
baseColor, baseColorJ, borderWidth, lightSource, RB_KEY, style
 
Fields inherited from interface com.sas.visuals.VisualAspects
BDR_BUMP, BDR_BUTTON_NORMAL, BDR_BUTTON_PRESSED, BDR_BUTTON_SELECTED, BDR_DIP, BDR_FIELD_BORDER, BDR_FLAT, BDR_FLAT_BORDER, BDR_GROUP_BORDER, BDR_NONE, BDR_RAISED, BDR_RAISED_INNER, BDR_RAISED_OUTER, BDR_STATUSFIELD_BORDER, BDR_SUNKEN, BDR_SUNKEN_INNER, BDR_SUNKEN_OUTER, BDR_WINDOW_BORDER, BS_NONE, BS_NORMAL, BS_PRESSED, BS_ROUND_NORMAL, BS_ROUND_PRESSED, BS_ROUND_SELECTED, BS_ROUNDEDGE_NORMAL, BS_ROUNDEDGE_PRESSED, BS_ROUNDEDGE_SELECTED, BS_SELECTED, CENTER, CONTENTS_CENTER, CONTENTS_LEFT, CONTENTS_RIGHT, DEVELOPMENT, DOUBLE_BUFFERED, DT_CENTER, DT_LEFT, DT_OPAQUE, DT_RIGHT, DT_UNDERLINE, EAST, HORIZONTAL, NORTH, NORTH_EAST, NORTH_WEST, SHOW_IMAGE, SHOW_NONE, SHOW_TEXT, SOUTH, SOUTH_EAST, SOUTH_WEST, TEXT_CENTER, TEXT_EAST, TEXT_LEFT, TEXT_NORTH, TEXT_RIGHT, TEXT_SOUTH, TEXT_WEST, VERTICAL, WEST
 
Fields inherited from interface com.sas.visuals.BorderInterface
BOTTOM_LEFT, BOTTOM_RIGHT, DEFAULT, LOWERED, NONE, RAISED, TOP_LEFT, TOP_RIGHT
 
Constructor Summary
ToolbarBorder()
          Default ToolbarBorder constructor
ToolbarBorder(java.awt.Component component)
          ToolbarBorder constructor with a specified component
ToolbarBorder(java.awt.Component component, int s)
          ToolbarBorder constructor with a specified component and style
ToolbarBorder(int s)
          ToolbarBorder constructor with a specified style
ToolbarBorder(Windows95Border border)
          ToolbarBorder constructor based on an existing Windows95Border
 
Method Summary
 void drawInRect(java.awt.Component component, java.awt.Graphics graphics, int x, int y, int width, int height)
          Draws the border on the specified graphics with the specified x, y, Math.max(getPreferredSize().width, width), Math.max(getPreferredSize().height, height)
 
Methods inherited from class com.sas.visuals.Windows95Border
drawInRect, getBackground, getBottomMargin, getComponent, getForeground, getInsets, getLeftMargin, getRightMargin, getTopMargin, setComponent
 
Methods inherited from class com.sas.visuals.Border
clone, drawInRect, drawInRect, equals, getBaseColor, getBorderWidth, getExtendedBeanInfo, getInsets, getInteriorBounds, getInteriorBounds, getLightSource, getStyle, hashCode, paramString, setBaseColor, setBorderWidth, setLightSource, setStyle, toString
 

Constructor Detail

ToolbarBorder

public ToolbarBorder()
Default ToolbarBorder constructor


ToolbarBorder

public ToolbarBorder(int s)
ToolbarBorder constructor with a specified style

Parameters:
s - the border style. Valid border styles are VisualAspects.BDRxxx values

ToolbarBorder

public ToolbarBorder(java.awt.Component component)
ToolbarBorder constructor with a specified component

Parameters:
component - the component associated with the border

ToolbarBorder

public ToolbarBorder(java.awt.Component component,
                     int s)
ToolbarBorder constructor with a specified component and style

Parameters:
s - the border style. Valid border styles are VisualAspects.BDRxxx values
component - the component associated with the border

ToolbarBorder

public ToolbarBorder(Windows95Border border)
ToolbarBorder constructor based on an existing Windows95Border

Parameters:
border - Windows95Border
Method Detail

drawInRect

public void drawInRect(java.awt.Component component,
                       java.awt.Graphics graphics,
                       int x,
                       int y,
                       int width,
                       int height)
Draws the border on the specified graphics with the specified x, y, Math.max(getPreferredSize().width, width), Math.max(getPreferredSize().height, height)

Specified by:
drawInRect in interface BorderInterface
Overrides:
drawInRect in class Windows95Border
Parameters:
graphics - the graphics to use
x - coordinate
y - coordinate
width - coordinate
height - coordinate
component - the java.awt.Component to draw the border on, can be null
See Also:
BorderInterface



Copyright © 2009 SAS Institute Inc. All Rights Reserved.