public class SyntaxPanelPainter<E extends javax.swing.JPanel,U extends WebPanelUI> extends AbstractPainter<E,U> implements IPanelPainter<E,U>
PanelPainter,
AbstractPainter,
Painter| Modifier and Type | Field and Description |
|---|---|
static java.awt.Color |
boldBackground |
static java.awt.Color |
boldBorder
Used colors.
|
protected SyntaxPanelStyle |
style
Syntax panel style.
|
static java.awt.Color |
thickBackground |
static java.awt.Color |
thickBorder |
component, listeners, ltr, propertyChangeListener, ui| Constructor and Description |
|---|
SyntaxPanelPainter() |
| Modifier and Type | Method and Description |
|---|---|
SyntaxPanelStyle |
getStyle()
Returns syntax panel style.
|
void |
paint(java.awt.Graphics2D g2d,
java.awt.Rectangle bounds,
E panel,
U ui)
Paints visual data using component graphics context.
|
void |
setStyle(SyntaxPanelStyle style)
Sets syntax panel style.
|
addPainterListener, b, borderChange, getBorders, getCompleteBorder, getPreferredSize, i, i, i, install, installPropertyChangeListener, isOpaque, isSectionPainter, isSettingsUpdateAllowed, orientationChange, p, propertyChange, removePainterListener, repaint, repaint, repaint, revalidate, saveOrientation, uninstall, uninstallPropertyChangeListener, updateAll, updateBorder, updateOpacity, updateOrientationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPainterListener, getBorders, getPreferredSize, install, isOpaque, removePainterListener, uninstallpublic static java.awt.Color boldBorder
public static java.awt.Color boldBackground
public static java.awt.Color thickBorder
public static java.awt.Color thickBackground
protected SyntaxPanelStyle style
public SyntaxPanelStyle getStyle()
public void setStyle(SyntaxPanelStyle style)
style - new syntax panel stylepublic void paint(java.awt.Graphics2D g2d,
java.awt.Rectangle bounds,
E panel,
U 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.
paint in interface Painter<E extends javax.swing.JPanel,U extends WebPanelUI>g2d - graphics contextbounds - painting boundspanel - painted componentui - painted component UI