public class SegmentedControlUI
extends javax.swing.plaf.PanelUI
This delegate paints the whole of the SegmentedControl including the background and focus for all of its segments.
Modifier and Type | Method and Description |
---|---|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c) |
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c) |
protected void |
paintBackground(java.awt.Graphics2D g2,
SegmentedControl sc) |
protected void |
paintBorder(java.awt.Graphics2D g2,
SegmentedControl sc) |
protected void |
paintFocusBorder(java.awt.Graphics2D g2,
SegmentedControl sc)
Paint focus around the whole SegmentedControl.
|
protected void |
paintInterSegmentDividers(java.awt.Graphics2D g2,
SegmentedControl sc) |
protected void |
paintSegmentFocusBorder(java.awt.Graphics2D g2,
SegmentedControl sc)
Paint focus around an individual segment.
|
protected void |
paintSelection(java.awt.Graphics2D g2,
SegmentedControl sc) |
public void paint(java.awt.Graphics g, javax.swing.JComponent c)
paint
in class javax.swing.plaf.ComponentUI
protected void paintBackground(java.awt.Graphics2D g2, SegmentedControl sc)
protected void paintSelection(java.awt.Graphics2D g2, SegmentedControl sc)
protected void paintInterSegmentDividers(java.awt.Graphics2D g2, SegmentedControl sc)
protected void paintFocusBorder(java.awt.Graphics2D g2, SegmentedControl sc)
g2
- sc
- protected void paintSegmentFocusBorder(java.awt.Graphics2D g2, SegmentedControl sc)
g2
- sc
- protected void paintBorder(java.awt.Graphics2D g2, SegmentedControl sc)
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)