public class WebViewportUI extends javax.swing.plaf.basic.BasicViewportUI implements Styleable, ShapeProvider
| Modifier and Type | Field and Description |
|---|---|
protected IViewportPainter |
painter
Component painter.
|
protected javax.swing.JViewport |
viewport
Runtime variables.
|
| Constructor and Description |
|---|
WebViewportUI() |
| Modifier and Type | Method and Description |
|---|---|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
Returns an instance of the WebViewportUI for the specified component.
|
Painter |
getPainter()
Returns viewport painter.
|
java.awt.Dimension |
getPreferredSize(javax.swing.JComponent c) |
StyleId |
getStyleId()
Returns component style ID.
|
void |
installUI(javax.swing.JComponent c)
Installs UI in the specified component.
|
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c) |
java.awt.Shape |
provideShape()
Returns component shape.
|
void |
setPainter(Painter painter)
Sets viewport painter.
|
StyleId |
setStyleId(StyleId id)
Sets new component style ID.
|
void |
uninstallUI(javax.swing.JComponent c)
Uninstalls UI from the specified component.
|
installDefaults, uninstallDefaults@DefaultPainter(value=ViewportPainter.class) protected IViewportPainter painter
protected javax.swing.JViewport viewport
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
c - component that will use UI instancepublic void installUI(javax.swing.JComponent c)
installUI in class javax.swing.plaf.basic.BasicViewportUIc - component for this UIpublic void uninstallUI(javax.swing.JComponent c)
uninstallUI in class javax.swing.plaf.basic.BasicViewportUIc - component with this UIpublic StyleId getStyleId()
StyleablegetStyleId in interface Styleablepublic StyleId setStyleId(StyleId id)
StyleablesetStyleId in interface Styleableid - custom component style IDpublic java.awt.Shape provideShape()
ShapeProviderprovideShape in interface ShapeProviderpublic Painter getPainter()
public void setPainter(Painter painter)
painter - new viewport painterpublic void paint(java.awt.Graphics g,
javax.swing.JComponent c)
paint in class javax.swing.plaf.ComponentUIpublic java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
getPreferredSize in class javax.swing.plaf.ComponentUI