@Override public void focusedComponentChanged(Component previousFocusedComponent) { if (previousFocusedComponent != null && previousFocusedComponent.getDecorators().indexOf(focusDecorator) > -1) { previousFocusedComponent.getDecorators().remove(focusDecorator); } Component focusedComponent = Component.getFocusedComponent(); if (focusedComponent != null && focusedComponent.getDecorators().indexOf(focusDecorator) == -1) { focusedComponent.getDecorators().add(focusDecorator); } System.out.println("focusedComponentChanged():\n from = " + previousFocusedComponent + "\n to = " + focusedComponent); } };
@Override public void focusedComponentChanged(Component previousFocusedComponent) { if (previousFocusedComponent != null && previousFocusedComponent.getDecorators().indexOf(focusDecorator) > -1) { previousFocusedComponent.getDecorators().remove(focusDecorator); } Component focusedComponentLocal = Component.getFocusedComponent(); if (focusedComponentLocal != null && focusedComponentLocal.getDecorators().indexOf(focusDecorator) == -1) { focusedComponentLocal.getDecorators().add(focusDecorator); } System.out.println("focusedComponentChanged():\n from = " + previousFocusedComponent + "\n to = " + focusedComponentLocal); } };
@Override public void stop() { super.stop(); if (fromCard != null) { fromCard.getDecorators().remove(fadeOutDecorator); fromCard.setVisible(false); } if (toCard != null) { toCard.getDecorators().remove(fadeInDecorator); } }
@Override public void start(TransitionListener transitionListener) { if (fromCard != null) { fromCard.getDecorators().add(fromScaleDecorator); } if (toCard != null) { toCard.getDecorators().add(toScaleDecorator); toCard.setVisible(true); } super.start(transitionListener); }
@Override public void start(TransitionListener transitionListener) { component.getDecorators().add(fadeDecorator); super.start(transitionListener); }
@Override public void stop() { super.stop(); if (fromCard != null) { fromCard.getDecorators().remove(fromScaleDecorator); fromCard.setVisible(false); } if (toCard != null) { toCard.getDecorators().remove(toScaleDecorator); } }
@Override public void stop() { component.getDecorators().remove(fadeDecorator); super.stop(); }
@Override public void start(TransitionListener transitionListener) { if (fromCard != null) { fromCard.getDecorators().add(fadeOutDecorator); } if (toCard != null) { toCard.getDecorators().add(fadeInDecorator); toCard.setVisible(true); } super.start(transitionListener); }
@Override public void start(TransitionListener transitionListener) { component.getDecorators().add(fadeDecorator); super.start(transitionListener); }
@Override public void stop() { component.getDecorators().remove(fadeDecorator); super.stop(); }
@Override public void stop() { super.stop(); if (fromCard != null) { fromCard.getDecorators().remove(fadeOutDecorator); fromCard.setVisible(false); } if (toCard != null) { toCard.getDecorators().remove(fadeInDecorator); } }
@Override public void start(TransitionListener transitionListener) { if (fromCard != null) { fromCard.getDecorators().add(fromScaleDecorator); } if (toCard != null) { toCard.getDecorators().add(toScaleDecorator); toCard.setVisible(true); } super.start(transitionListener); }
@Override public void start(TransitionListener transitionListener) { if (fromCard != null) { fromCard.getDecorators().add(fadeOutDecorator); } if (toCard != null) { toCard.getDecorators().add(fadeInDecorator); toCard.setVisible(true); } super.start(transitionListener); }
@Override public void stop() { super.stop(); if (fromCard != null) { fromCard.getDecorators().remove(fromScaleDecorator); fromCard.setVisible(false); } if (toCard != null) { toCard.getDecorators().remove(toScaleDecorator); } }
@Override public void start(TransitionListener transitionListener) { theta = 0; getComponent().getDecorators().add(scaleDecorator); super.start(transitionListener); }
@Override public void stop() { getComponent().getDecorators().remove(scaleDecorator); super.stop(); }
@Override public void stop() { getComponent().getDecorators().remove(scaleDecorator); super.stop(); }
@Override public void start(TransitionListener transitionListener) { theta = 0; getComponent().getDecorators().add(scaleDecorator); super.start(transitionListener); }
DecoratorSequence decorators = component.getDecorators(); int n = decorators.getLength(); for (int j = n - 1; j >= 0; j--) {
DecoratorSequence decorators = component.getDecorators(); int n = decorators.getLength(); for (int j = n - 1; j >= 0; j--) {