|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.visuals.BufferedPanel
public class BufferedPanel
A panel that allows for doubleBuffering of components within it. This panel also supports a variety of border styles.
| Field Summary | |
|---|---|
protected BufferedGraphics |
_graphics
the BufferedGraphics for the Panel |
protected Wallpaper |
_wallpaper
Creates the default BufferedPanel |
| Fields inherited from class com.sas.awt.Panel |
|---|
RB_KEY |
| Constructor Summary | |
|---|---|
BufferedPanel()
|
|
BufferedPanel(int borderStyle)
Creates an BufferedPanel with the specified border style |
|
BufferedPanel(int borderStyle,
boolean doubleBuffered)
Creates an Panel with the specified border style, border thickness, border color and whether the Panel is double buffered |
|
| Method Summary | |
|---|---|
java.awt.Insets |
getInsets()
|
java.awt.Dimension |
getMaximumSize()
|
java.awt.Dimension |
getMinimumSize()
Overrides the java.awt.Component getMinimumSize method to return a minimum size of 5,5 for components which do not have a peer. |
java.awt.Dimension |
getPreferredSize()
|
Wallpaper |
getWallpaper()
|
int |
getWindowBorderStyle()
|
boolean |
isDoubleBuffered()
Gets the state of double buffering |
void |
paint(java.awt.Graphics g)
Called to paint the properties of the Panel. |
protected void |
paintBackground(BufferedGraphics g)
|
protected void |
paintView(BufferedGraphics g)
Called to paint the properties of the Panel. |
protected void |
printView(BufferedGraphics g)
Called to print the properties of the Panel. |
void |
setBackground(java.awt.Color c)
|
void |
setDefaultValues()
Sets all default values for the panel. |
void |
setDoubleBuffered(boolean state)
Sets the state of double buffering. |
void |
setForeground(java.awt.Color c)
|
void |
setWallpaper(Wallpaper wallpaper)
|
void |
setWindowBorderStyle(int s)
|
void |
update(java.awt.Graphics g)
Called to erase the background of the Panel. |
| Methods inherited from class com.sas.awt.Panel |
|---|
getDefaultHeight, getDefaultWidth, getExtendedBeanInfo, remove, remove, removeAll, setDefaultHeight, setDefaultWidth |
| Methods inherited from interface com.sas.awt.ContainerInterface |
|---|
getComponents, getLayout, invalidate, setLayout, validate |
| Field Detail |
|---|
protected transient BufferedGraphics _graphics
protected Wallpaper _wallpaper
| Constructor Detail |
|---|
public BufferedPanel()
public BufferedPanel(int borderStyle)
borderStyle - the border style of the Panel. Border style
constants are found in VisualAspects.
public BufferedPanel(int borderStyle,
boolean doubleBuffered)
borderStyle - the border style of the Panel. Border style
constants are found in VisualAspects.borderThickness - the border thickness of the PanelborderColor - the border Color for the PaneldoubleBuffered - specifies whether the Panel is double buffered.| Method Detail |
|---|
public void setWindowBorderStyle(int s)
public int getWindowBorderStyle()
public java.awt.Insets getInsets()
getInsets in interface ContainerInterfacegetInsets in class PanelContainerComponentpublic void setBackground(java.awt.Color c)
setBackground in class java.awt.Componentpublic void setForeground(java.awt.Color c)
setForeground in class java.awt.Componentpublic boolean isDoubleBuffered()
isDoubleBuffered in interface DoubleBufferInterfaceisDoubleBuffered in class java.awt.Componentpublic void setDoubleBuffered(boolean state)
setDoubleBuffered in interface DoubleBufferInterfacestate - the state of double bufferingpublic void update(java.awt.Graphics g)
update in class PanelVisualComponentg - the Graphics associated with the PanelVisualInterfaceSupport.update(com.sas.ComponentInterface, com.sas.awt.VisualInterface, java.awt.Component, java.awt.Graphics)public void setWallpaper(Wallpaper wallpaper)
public Wallpaper getWallpaper()
public void paint(java.awt.Graphics g)
paint in class PanelVisualComponentg - the Graphics associated with the PanelVisualInterfaceSupport.paint(com.sas.ComponentInterface, com.sas.awt.VisualInterface, java.awt.Component, java.awt.Graphics)protected void paintBackground(BufferedGraphics g)
protected void paintView(BufferedGraphics g)
g - the BufferedGraphics associated with the Panelprotected void printView(BufferedGraphics g)
g - the Graphics associated with the Panelpublic void setDefaultValues()
Panel
setDefaultValues in interface ContainerInterfacesetDefaultValues in interface VisualInterfacesetDefaultValues in interface com.sas.ComponentInterfacesetDefaultValues in class PanelContainerInterface.setDefaultValues()public java.awt.Dimension getPreferredSize()
getPreferredSize in interface VisualInterfacegetPreferredSize in class PanelVisualComponentVisualInterface.getPreferredSize()public java.awt.Dimension getMinimumSize()
VisualInterface
getMinimumSize in interface VisualInterfacegetMinimumSize in class PanelVisualComponentVisualInterface.getMinimumSize()public java.awt.Dimension getMaximumSize()
getMaximumSize in class java.awt.Container
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||