E - component typepublic class BorderPainter<E extends javax.swing.JComponent,U extends javax.swing.plaf.ComponentUI> extends AbstractPainter<E,U>
AbstractPainter,
Painter| Modifier and Type | Field and Description |
|---|---|
protected java.awt.Color |
color
Border color.
|
protected int |
round
Border round.
|
protected java.awt.Stroke |
stroke
Border stroke.
|
component, listeners, ltr, propertyChangeListener, ui| Constructor and Description |
|---|
BorderPainter()
Constructs default border painter.
|
BorderPainter(java.awt.Color color)
Constructs border painter with a specified color.
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.Insets |
getBorders()
Returns margin required for visual data provided by this painter.
|
protected java.awt.geom.RectangularShape |
getBorderShape(java.awt.Rectangle bounds)
Returns border shape for the specified limiting bounds.
|
java.awt.Color |
getColor()
Returns border color.
|
java.awt.Dimension |
getPreferredSize()
Returns preferred size required for proper painting of visual data provided by this painter.
|
int |
getRound()
Returns border round.
|
java.awt.Stroke |
getStroke()
Returns border stroke.
|
int |
getStrokeWidth()
Returns stroke width.
|
void |
paint(java.awt.Graphics2D g2d,
java.awt.Rectangle bounds,
E c,
U ui)
Paints visual data onto the component graphics.
|
void |
setColor(java.awt.Color color)
Sets border color.
|
void |
setRound(int round)
Sets border round.
|
void |
setStroke(java.awt.Stroke stroke)
Sets border stroke.
|
addPainterListener, b, borderChange, getCompleteBorder, i, i, i, install, installPropertyChangeListener, isOpaque, isSectionPainter, isSettingsUpdateAllowed, orientationChange, p, propertyChange, removePainterListener, repaint, repaint, repaint, revalidate, saveOrientation, uninstall, uninstallPropertyChangeListener, updateAll, updateBorder, updateOpacity, updateOrientationprotected int round
protected java.awt.Color color
protected java.awt.Stroke stroke
public BorderPainter()
public BorderPainter(java.awt.Color color)
color - border colorpublic int getRound()
public void setRound(int round)
round - new border roundpublic java.awt.Color getColor()
public void setColor(java.awt.Color color)
color - new border colorpublic java.awt.Stroke getStroke()
public void setStroke(java.awt.Stroke stroke)
stroke - new border strokepublic int getStrokeWidth()
public java.awt.Insets getBorders()
getBorders in interface Painter<E extends javax.swing.JComponent,U extends javax.swing.plaf.ComponentUI>getBorders in class AbstractPainter<E extends javax.swing.JComponent,U extends javax.swing.plaf.ComponentUI>public void paint(java.awt.Graphics2D g2d,
java.awt.Rectangle bounds,
E c,
U ui)
g2d - component graphicsbounds - bounds for painter visual datac - component to processui - component UIprotected java.awt.geom.RectangularShape getBorderShape(java.awt.Rectangle bounds)
bounds - limiting boundspublic java.awt.Dimension getPreferredSize()
getPreferredSize in interface Painter<E extends javax.swing.JComponent,U extends javax.swing.plaf.ComponentUI>getPreferredSize in class AbstractPainter<E extends javax.swing.JComponent,U extends javax.swing.plaf.ComponentUI>