Lines Matching defs:JLayer

44  * {@code JLayer} is a universal decorator for Swing components
48 * {@code JLayer} delegates the handling of painting and input events to a
52 * work for the JLayer itself and all its subcomponents.
57 * {@code JLayer} is a good solution if you only need to do custom painting
66 * private static JLayer<JComponent> createLayer() {
82 * ((JLayer) c).setLayerEventMask(AWTEvent.MOUSE_MOTION_EVENT_MASK);
88 * ((JLayer) c).setLayerEventMask(0);
92 * public void eventDispatched(AWTEvent e, JLayer<? extends JComponent> l) {
101 * return new JLayer<JComponent>(panel, layerUI);
126 * <b>Note:</b> {@code JLayer} doesn't support the following methods:
135 * to add a component to {@code JLayer}
138 * @param <V> the type of {@code JLayer}'s view component
140 * @see #JLayer(Component)
144 * @see #JLayer(Component, LayerUI)
151 public final class JLayer<V extends Component>
167 * Creates a new {@code JLayer} object with a {@code null} view component
173 public JLayer() {
178 * Creates a new {@code JLayer} object
181 * @param view the component to be decorated by this {@code JLayer}
185 public JLayer(V view) {
190 * Creates a new {@code JLayer} object with the specified view component
195 * to be used by this {@code JLayer}
197 public JLayer(V view, LayerUI<V> ui) {
204 * Returns the {@code JLayer}'s view component or {@code null}.
207 * @return the {@code JLayer}'s view component
217 * Sets the {@code JLayer}'s view component, which can be {@code null}.
220 * @param view the view component for this {@code JLayer}
240 * and receive input events for this {@code JLayer}.
242 * @param ui the {@link javax.swing.plaf.LayerUI} for this {@code JLayer}
250 * Returns the {@link javax.swing.plaf.LayerUI} for this {@code JLayer}.
252 * @return the {@code LayerUI} for this {@code JLayer}
259 * Returns the {@code JLayer}'s glassPane component or {@code null}.
262 * @return the {@code JLayer}'s glassPane component
272 * Sets the {@code JLayer}'s glassPane component, which can be {@code null}.
275 * @param glassPane the glassPane component of this {@code JLayer}
314 * a {@code JLayer}.
321 throw new IllegalArgumentException("JLayer.setLayout() not supported");
328 * subclassing of {@code LayerUI} class. To create a {@code JLayer} with a border,
332 * a {@code JLayer}.
339 throw new IllegalArgumentException("JLayer.setBorder() not supported");
344 * This method is not supported by {@code JLayer}
354 "Adding components to JLayer is not supported, " +
386 * Always returns {@code true} to cause painting to originate from {@code JLayer},
398 * {@link javax.swing.plaf.LayerUI#paintImmediately(int, int, int, int, JLayer)} method,
446 * The {@code JLayer} overrides the default implementation of
449 * that the drawing machinery will call the {@code JLayer}'s
451 * implementation rather than messaging the {@code JLayer}'s
470 * Enables the events from JLayer and <b>all its descendants</b>
473 * {@link LayerUI#eventDispatched(AWTEvent, JLayer)} method.
476 * for this {@code JLayer} and the {@code JLayer}
484 * JLayer l = (JLayer) c;
491 * JLayer l = (JLayer) c;
492 * // JLayer must be returned to its initial state
497 * By default {@code JLayer} receives no events and its event mask is {@code 0}.
502 * @see LayerUI#eventDispatched(AWTEvent, JLayer)
520 * Returns the bitmap of event mask to receive by this {@code JLayer}
523 * It means that {@link javax.swing.plaf.LayerUI#eventDispatched(AWTEvent, JLayer)} method
526 * By default {@code JLayer} receives no events.
528 * @return the bitmask of event types to receive for this {@code JLayer}
535 * Delegates its functionality to the {@link javax.swing.plaf.LayerUI#updateUI(JLayer)} method,
676 * Delegates its functionality to the {@link javax.swing.plaf.LayerUI#doLayout(JLayer)} method,
686 * Gets the AccessibleContext associated with this {@code JLayer}.
688 * @return the AccessibleContext associated with this {@code JLayer}.
728 if (component instanceof JLayer) {
729 JLayer l = (JLayer) component;
825 * The default glassPane for the {@link javax.swing.JLayer}.