public class StackBorder
extends javax.swing.border.AbstractBorder
| Constructor and Description |
|---|
StackBorder()
Create a stack border with a single stack page and default step size of
6.
|
StackBorder(int stepSize,
int numPages)
Create a stack border with the specified stack size and number of stack
pages
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.Insets |
getBorderInsets(java.awt.Component comp)
Get insets for this border.
|
void |
paintBorder(java.awt.Component comp,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
Paints the border for the specified component with the specified
position and size.
|
public StackBorder()
public StackBorder(int stepSize,
int numPages)
stepSize - The step sizenumPages - the number of stack pagespublic java.awt.Insets getBorderInsets(java.awt.Component comp)
getBorderInsets in interface javax.swing.border.BordergetBorderInsets in class javax.swing.border.AbstractBordercomp - the component for which this border insets value appliespublic void paintBorder(java.awt.Component comp,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
paintBorder in interface javax.swing.border.BorderpaintBorder in class javax.swing.border.AbstractBordercomp - the component for which this border is being paintedg - the paint graphicsx - the x position of the painted bordery - the y position of the painted borderwidth - the width of the painted borderheight - the height of the painted border