javax.swing.JToolBar .
| Modifier and Type | Class and Description |
|---|---|
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| private Rectangle | |
| private SynthStyle | |
| private SynthStyle | |
| private Icon | |
| private SynthStyle |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected LayoutManager | |
| public static ComponentUI | Returns: the UI objectcomponent to create UI object for c)Hides javax. Creates a new UI object for the given component. |
| private int | |
| public SynthContext | getContext(JComponent c)
Implements javax. Returns the Context for the specified component. |
| private SynthContext | |
| private SynthContext | |
| private SynthContext | |
| protected void | installComponents()
Overrides javax. Registers components. |
| protected void | installDefaults()
Overrides javax. Installs default properties. |
| protected void | installListeners()
Overrides javax. Registers listeners. |
| public void | paint(Graphics
the g, JComponent Graphics object used for paintingthe component being painted c)Overrides javax. Paints the specified component according to the Look and Feel. |
| protected void | paint(SynthContext
context for the component being painted context, Graphics the g)Graphics object used for paintingPaints the toolbar. |
| public void | paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
Implements javax. Paints the border. |
| protected void | paintContent(SynthContext
context for the component being painted context, Graphics Graphics object used for paintingbounding box for the toolbar bounds)Paints the toolbar content. |
| protected void | paintDragWindow(Graphics g)
Overrides javax. Paints the contents of the window used for dragging. |
| public void | propertyChange(PropertyChangeEvent e)
Implements java. This method gets called when a bound property is changed. |
| protected void | setBorderToNonRollover(Component c)
Overrides javax. This implementation does nothing, because the |
| protected void | setBorderToNormal(Component c)
Overrides javax. This implementation does nothing, because the |
| protected void | setBorderToRollover(Component c)
Overrides javax. This implementation does nothing, because the |
| protected void | uninstallComponents()
Overrides javax. Unregisters components. |
| protected void | uninstallDefaults()
Overrides javax. Uninstalls default properties. |
| protected void | uninstallListeners()
Overrides javax. Unregisters listeners. |
| public void | update(Graphics
the g, JComponent Graphics object used for paintingthe component being painted c)Overrides javax. Notifies this UI delegate to repaint the specified component. |
| private void |
| contentRect | back to summary |
|---|---|
| private Rectangle contentRect | |
| contentStyle | back to summary |
|---|---|
| private SynthStyle contentStyle | |
| dragWindowStyle | back to summary |
|---|---|
| private SynthStyle dragWindowStyle | |
| handleIcon | back to summary |
|---|---|
| private Icon handleIcon | |
| style | back to summary |
|---|---|
| private SynthStyle style | |
| SynthToolBarUI | back to summary |
|---|---|
| public SynthToolBarUI() Constructs a | |
| createLayout | back to summary |
|---|---|
| protected LayoutManager createLayout() Creates a
| |
| createUI | back to summary |
|---|---|
| public static ComponentUI createUI(JComponent c) Hides javax. Creates a new UI object for the given component.
| |
| getComponentState | back to summary |
|---|---|
| private int getComponentState(JComponent c, Region region) | |
| getContext | back to summary |
|---|---|
| public SynthContext getContext(JComponent c) Implements javax. Doc from javax. Returns the Context for the specified component.
| |
| getContext | back to summary |
|---|---|
| private SynthContext getContext(JComponent c, int state) | |
| getContext | back to summary |
|---|---|
| private SynthContext getContext(JComponent c, Region region, SynthStyle style) | |
| getContext | back to summary |
|---|---|
| private SynthContext getContext(JComponent c, Region region, SynthStyle style, int state) | |
| installComponents | back to summary |
|---|---|
| protected void installComponents() Overrides javax. Doc from javax. Registers components.
| |
| installDefaults | back to summary |
|---|---|
| protected void installDefaults() Overrides javax. Doc from javax. Installs default properties.
| |
| installListeners | back to summary |
|---|---|
| protected void installListeners() Overrides javax. Doc from javax. Registers listeners.
| |
| paint | back to summary |
|---|---|
| public void paint(Graphics g, JComponent c) Overrides javax. Paints the specified component according to the Look and Feel. This method is not used by Synth Look and Feel.
Painting is handled by the
| |
| paint | back to summary |
|---|---|
| protected void paint(SynthContext context, Graphics g) Paints the toolbar.
| |
| paintBorder | back to summary |
|---|---|
| public void paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h) Implements javax. Doc from javax. Paints the border.
| |
| paintContent | back to summary |
|---|---|
| protected void paintContent(SynthContext context, Graphics g, Rectangle bounds) Paints the toolbar content.
| |
| paintDragWindow | back to summary |
|---|---|
| protected void paintDragWindow(Graphics g) Overrides javax. Doc from javax. Paints the contents of the window used for dragging.
| |
| propertyChange | back to summary |
|---|---|
| public void propertyChange(PropertyChangeEvent e) Implements java. Doc from java. This method gets called when a bound property is changed.
| |
| setBorderToNonRollover | back to summary |
|---|---|
| protected void setBorderToNonRollover(Component c) Overrides javax. This implementation does nothing, because the
| |
| setBorderToNormal | back to summary |
|---|---|
| protected void setBorderToNormal(Component c) Overrides javax. This implementation does nothing, because the
| |
| setBorderToRollover | back to summary |
|---|---|
| protected void setBorderToRollover(Component c) Overrides javax. This implementation does nothing, because the
| |
| uninstallComponents | back to summary |
|---|---|
| protected void uninstallComponents() Overrides javax. Doc from javax. Unregisters components.
| |
| uninstallDefaults | back to summary |
|---|---|
| protected void uninstallDefaults() Overrides javax. Doc from javax. Uninstalls default properties.
| |
| uninstallListeners | back to summary |
|---|---|
| protected void uninstallListeners() Overrides javax. Doc from javax. Unregisters listeners.
| |
| update | back to summary |
|---|---|
| public void update(Graphics g, JComponent c) Overrides javax. Notifies this UI delegate to repaint the specified component.
This method paints the component background, then calls
the In general, this method does not need to be overridden by subclasses.
All Look and Feel rendering code should reside in the
| |
| updateStyle | back to summary |
|---|---|
| private void updateStyle(JToolBar c) | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | addLayoutComponent(String name, Component comp)
Implements java. If the layout manager uses a per-component string,
adds the component |
| private boolean | |
| public void | layoutContainer(Container parent)
Implements java. Lays out the specified container. |
| public Dimension | minimumLayoutSize(Container parent)
Implements java. Calculates the minimum size dimensions for the specified container, given the components it contains. |
| public Dimension | preferredLayoutSize(Container parent)
Implements java. Calculates the preferred size dimensions for the specified container, given the components it contains. |
| public void | removeLayoutComponent(Component comp)
Implements java. Removes the specified component from the layout. |
| SynthToolBarLayoutManager | back to summary |
|---|---|
| pack-priv SynthToolBarLayoutManager() | |
| addLayoutComponent | back to summary |
|---|---|
| public void addLayoutComponent(String name, Component comp) Implements java. Doc from java. If the layout manager uses a per-component string,
adds the component | |
| isGlue | back to summary |
|---|---|
| private boolean isGlue(Component c) | |
| layoutContainer | back to summary |
|---|---|
| public void layoutContainer(Container parent) Implements java. Doc from java. Lays out the specified container. | |
| minimumLayoutSize | back to summary |
|---|---|
| public Dimension minimumLayoutSize(Container parent) Implements java. Doc from java. Calculates the minimum size dimensions for the specified container, given the components it contains. | |
| preferredLayoutSize | back to summary |
|---|---|
| public Dimension preferredLayoutSize(Container parent) Implements java. Doc from java. Calculates the preferred size dimensions for the specified container, given the components it contains. | |
| removeLayoutComponent | back to summary |
|---|---|
| public void removeLayoutComponent(Component comp) Implements java. Doc from java. Removes the specified component from the layout. | |