E - component typepublic class DashedBorderPainter<E extends javax.swing.JComponent> extends BorderPainter<E>
BorderPainter,
AbstractPainter,
Paintercolor, round, stroke, widthlisteners, margin, opaque, preferredSize| Constructor and Description |
|---|
DashedBorderPainter()
Constructs default dashed border painter.
|
DashedBorderPainter(float[] dash)
Constructs dashed border painter with specified dashing pattern.
|
DashedBorderPainter(float[] dash,
float dashPhase)
Constructs dashed border painter with specified dashing pattern and offset.
|
| Modifier and Type | Method and Description |
|---|---|
float[] |
getDash()
Returns dashing pattern.
|
float |
getDashPhase()
Returns dashing pattern offset.
|
void |
setDash(float[] dash)
Sets dashing pattern.
|
void |
setDashPhase(float dashPhase)
Sets dashing pattern offset.
|
protected void |
updateStroke()
Updates border stroke depending on painter settings.
|
getBorderShape, getColor, getMargin, getPreferredSize, getRound, getStroke, getWidth, paint, setColor, setRound, setStroke, setWidthaddPainterListener, install, isOpaque, p, removePainterListener, repaint, repaint, repaint, revalidate, setMargin, setMargin, setMargin, setOpaque, setPreferredSize, uninstall, updateAll, updateOpacitypublic DashedBorderPainter()
public DashedBorderPainter(float[] dash)
dash - dashing patternpublic DashedBorderPainter(float[] dash,
float dashPhase)
dash - dashing patterndashPhase - dashing pattern offsetpublic float[] getDash()
public void setDash(float[] dash)
dash - new dashing patternpublic float getDashPhase()
public void setDashPhase(float dashPhase)
dashPhase - new dashing pattern offsetprotected void updateStroke()
updateStroke in class BorderPainter<E extends javax.swing.JComponent>