com.alee.managers.style.skin.web
Class WebSyntaxPanelPainter<E extends javax.swing.JPanel>
java.lang.Object
com.alee.extended.painter.AbstractPainter<E>
com.alee.managers.style.skin.web.WebDecorationPainter<E>
com.alee.managers.style.skin.web.WebPanelPainter<E>
com.alee.managers.style.skin.web.WebSyntaxPanelPainter<E>
- All Implemented Interfaces:
- Painter<E>, PartialDecoration, SpecificPainter, PanelPainter<E>, PainterShapeProvider<E>
public class WebSyntaxPanelPainter<E extends javax.swing.JPanel>
- extends WebPanelPainter<E>
Custom painter for WebSyntaxPanel component.
- Author:
- Mikle Garin
- See Also:
WebPanelPainter
,
AbstractPainter
,
Painter
Fields inherited from class com.alee.managers.style.skin.web.WebDecorationPainter |
actualPaintLeft, actualPaintRight, BACKGROUND_SHAPE, BORDER_SHAPE, borderColor, borderStroke, disabledBorderColor, focused, focusTracker, h, ltr, paintBackground, paintBottom, paintBottomLine, paintFocus, paintLeft, paintLeftLine, paintRight, paintRightLine, paintTop, paintTopLine, round, shadeTransparency, shadeWidth, undecorated, w, webColoredBackground |
Methods inherited from class com.alee.managers.style.skin.web.WebDecorationPainter |
createShape, getBorderColor, getBorderStroke, getCachedShapeSettings, getDisabledBorderColor, getMargin, getRound, getShadeTransparency, getShadeWidth, getShape, install, isPaintBackground, isPaintBottom, isPaintBottomLine, isPaintFocus, isPaintLeft, isPaintLeftLine, isPaintRight, isPaintRightLine, isPaintTop, isPaintTopLine, isUndecorated, isWebColoredBackground, paintBackground, paintBorder, paintShade, provideShape, setBorderColor, setBorderStroke, setDisabledBorderColor, setPaintBackground, setPaintBottom, setPaintBottomLine, setPaintFocus, setPaintLeft, setPaintLeftLine, setPaintRight, setPaintRightLine, setPaintSideLines, setPaintSides, setPaintTop, setPaintTopLine, setRound, setShadeTransparency, setShadeWidth, setUndecorated, setWebColoredBackground, uninstall |
Methods inherited from class com.alee.extended.painter.AbstractPainter |
addPainterListener, getPreferredSize, p, removePainterListener, repaint, repaint, repaint, revalidate, setMargin, setMargin, setMargin, setOpaque, setPreferredSize, updateAll, updateOpacity |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
boldBorder
public static java.awt.Color boldBorder
- Used colors.
boldBackground
public static java.awt.Color boldBackground
thickBorder
public static java.awt.Color thickBorder
thickBackground
public static java.awt.Color thickBackground
style
protected SyntaxPanelStyle style
- Syntax panel style.
WebSyntaxPanelPainter
public WebSyntaxPanelPainter()
getStyle
public SyntaxPanelStyle getStyle()
- Returns syntax panel style.
- Returns:
- syntax panel style
setStyle
public void setStyle(SyntaxPanelStyle style)
- Sets syntax panel style.
- Parameters:
style
- new syntax panel style
paint
public void paint(java.awt.Graphics2D g2d,
java.awt.Rectangle bounds,
E panel)
- Paints visual data onto the component graphics.
Provided graphics and component are taken directly from component UI paint method.
Provided bounds are usually fake (zero location, component size) but in some cases it might be specified by componentUI.
- Specified by:
paint
in interface Painter<E extends javax.swing.JPanel>
- Overrides:
paint
in class WebPanelPainter<E extends javax.swing.JPanel>
- Parameters:
g2d
- component graphicsbounds
- bounds for painter visual datapanel
- component to process