< prev index next >

src/java.desktop/share/classes/javax/swing/plaf/synth/SynthRootPaneUI.java

Print this page




 144      * Paints the specified component. This implementation does nothing.
 145      *
 146      * @param context context for the component being painted
 147      * @param g the {@code Graphics} object used for painting
 148      * @see #update(Graphics,JComponent)
 149      */
 150     protected void paint(SynthContext context, Graphics g) {
 151     }
 152 
 153     /**
 154      * {@inheritDoc}
 155      */
 156     @Override
 157     public void paintBorder(SynthContext context, Graphics g, int x,
 158                             int y, int w, int h) {
 159         context.getPainter().paintRootPaneBorder(context, g, x, y, w, h);
 160     }
 161 
 162     /**
 163      * Invoked when a property changes on the root pane. If the event
 164      * indicates the <code>defaultButton</code> has changed, this will
 165      * reinstall the keyboard actions.
 166      */
 167     @Override
 168     public void propertyChange(PropertyChangeEvent e) {
 169         if (SynthLookAndFeel.shouldUpdateStyle(e)) {
 170             updateStyle((JRootPane)e.getSource());
 171         }
 172         super.propertyChange(e);
 173     }
 174 }


 144      * Paints the specified component. This implementation does nothing.
 145      *
 146      * @param context context for the component being painted
 147      * @param g the {@code Graphics} object used for painting
 148      * @see #update(Graphics,JComponent)
 149      */
 150     protected void paint(SynthContext context, Graphics g) {
 151     }
 152 
 153     /**
 154      * {@inheritDoc}
 155      */
 156     @Override
 157     public void paintBorder(SynthContext context, Graphics g, int x,
 158                             int y, int w, int h) {
 159         context.getPainter().paintRootPaneBorder(context, g, x, y, w, h);
 160     }
 161 
 162     /**
 163      * Invoked when a property changes on the root pane. If the event
 164      * indicates the {@code defaultButton} has changed, this will
 165      * reinstall the keyboard actions.
 166      */
 167     @Override
 168     public void propertyChange(PropertyChangeEvent e) {
 169         if (SynthLookAndFeel.shouldUpdateStyle(e)) {
 170             updateStyle((JRootPane)e.getSource());
 171         }
 172         super.propertyChange(e);
 173     }
 174 }
< prev index next >