public class DiagramNodeBorder
extends javax.swing.border.AbstractBorder
| Modifier and Type | Field and Description |
|---|---|
protected java.awt.Insets |
insets |
protected java.awt.Color |
lineColor |
| Constructor and Description |
|---|
DiagramNodeBorder(java.awt.Insets insets)
Creates a border for a diagram node with no line color
|
DiagramNodeBorder(java.awt.Insets insets,
java.awt.Color lineColor)
Creates a border for a diagram node with a line color
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.Insets |
getBorderInsets(java.awt.Component c)
Returns the insets for the component
|
java.awt.Insets |
getBorderInsets(java.awt.Component c,
java.awt.Insets insetsIn)
Updates and returns the insets for the component
|
void |
paintBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
Draws the border
|
public DiagramNodeBorder(java.awt.Insets insets)
insets - The insets for the borderpublic DiagramNodeBorder(java.awt.Insets insets,
java.awt.Color lineColor)
insets - The insets for the borderlineColor - The color of the border linepublic void paintBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
paintBorder in interface javax.swing.border.BorderpaintBorder in class javax.swing.border.AbstractBorderc - The components to draw forg - The grahics contextx - The X locationy - The Y locationwidth - The component's widthheight - The component's heightpublic java.awt.Insets getBorderInsets(java.awt.Component c)
getBorderInsets in interface javax.swing.border.BordergetBorderInsets in class javax.swing.border.AbstractBorderc - The componentpublic java.awt.Insets getBorderInsets(java.awt.Component c,
java.awt.Insets insetsIn)
getBorderInsets in class javax.swing.border.AbstractBorderc - The componentinsetsIn - The insets object