public class SelectablePanelPainter extends AbstractPainter<WebSelectablePanel,WebPanelUI>
| Modifier and Type | Field and Description |
|---|---|
protected java.awt.Color[] |
darkColors |
protected float[] |
fractions
Style settings.
|
static int |
GRIPPER_SIZE |
protected java.awt.Color[] |
lightColors |
static int |
SINGLE_GRIPPER_STEP |
component, listeners, ltr, propertyChangeListener, ui| Constructor and Description |
|---|
SelectablePanelPainter() |
| Modifier and Type | Method and Description |
|---|---|
java.awt.Insets |
getBorders()
Returns borders required for visual data provided by this painter.
|
java.lang.Boolean |
isOpaque()
Returns whether visual data provided by this painter is opaque or not.
|
void |
paint(java.awt.Graphics2D g2d,
java.awt.Rectangle bounds,
WebSelectablePanel panel,
WebPanelUI ui)
Paints visual data using component graphics context.
|
addPainterListener, b, borderChange, getCompleteBorder, getPreferredSize, i, i, i, install, installPropertyChangeListener, isSectionPainter, isSettingsUpdateAllowed, orientationChange, p, propertyChange, removePainterListener, repaint, repaint, repaint, revalidate, saveOrientation, uninstall, uninstallPropertyChangeListener, updateAll, updateBorder, updateOpacity, updateOrientationpublic static final int GRIPPER_SIZE
public static final int SINGLE_GRIPPER_STEP
protected float[] fractions
protected java.awt.Color[] lightColors
protected java.awt.Color[] darkColors
public java.lang.Boolean isOpaque()
PainterisOpaque in interface Painter<WebSelectablePanel,WebPanelUI>isOpaque in class AbstractPainter<WebSelectablePanel,WebPanelUI>public java.awt.Insets getBorders()
Painter
You may pass null in case additional borders aren't needed for this painter.
getBorders in interface Painter<WebSelectablePanel,WebPanelUI>getBorders in class AbstractPainter<WebSelectablePanel,WebPanelUI>null in case those aren't neededpublic void paint(java.awt.Graphics2D g2d,
java.awt.Rectangle bounds,
WebSelectablePanel panel,
WebPanelUI ui)
PainterIt is highly recommended to honor provided painting bounds to avoid painting issues. These bounds might be representing full component size or contain just a small portion of the component.
g2d - graphics contextbounds - painting boundspanel - painted componentui - painted component UI