@Override public void mouseExited(MouseEvent e) { iconGlowTracker.cancel(); } });
@Override protected void installComponents() { super.installComponents(); // fix for defect 265 - check that the label is not null // before activating the loop. if (this.substanceIconLabel != null) { // Make the icon glow for three cycles. There's no need to // explicitly cancel the animation when the option pane is closed // before the animation is over - when the three cycles are up, // the animation will be removed by the tracker. if (!this.iconGlowTracker.isPlaying()) { this.iconGlowTracker.play(3); } } } }
public float getIconGlowPosition() { return this.iconGlowTracker.getIconGlowPosition(); }
@Override protected void installComponents() { super.installComponents(); this.errorMessage.setBorder(null); this.errorScrollPane.setOpaque(false); this.errorScrollPane.getViewport().setOpaque(false); this.iconGlowTracker = new IconGlowTracker(this.iconLabel); }
public boolean hasRunningTimelines() { if (this.focusTimeline != null) { TimelineState focusTimelineState = this.focusTimeline.getState(); if (focusTimelineState != TimelineState.IDLE) return true; } if (this.focusLoopTimeline != null) { TimelineState focusLoopTimelineState = this.focusLoopTimeline .getState(); if (focusLoopTimelineState != TimelineState.IDLE) return true; } if (this.iconGlowTracker.isPlaying()) { return true; } if (this.transitionTimeline != null) { TimelineState modelTransitionTimelineState = this.transitionTimeline .getState(); if (modelTransitionTimelineState != TimelineState.IDLE) return true; } return false; }
@Override public void mouseEntered(MouseEvent e) { iconGlowTracker.play(); }
.getIcon("resource/22/dialog-information.png")); this.iconGlowTracker = new IconGlowTracker(didYouKnow); didYouKnow.setIcon(new GlowingIcon(infoIcon, this.iconGlowTracker)); didYouKnow.setDescription("");
public boolean hasRunningTimelines() { if (this.focusTimeline != null) { TimelineState focusTimelineState = this.focusTimeline.getState(); if (focusTimelineState != TimelineState.IDLE) return true; } if (this.focusLoopTimeline != null) { TimelineState focusLoopTimelineState = this.focusLoopTimeline .getState(); if (focusLoopTimelineState != TimelineState.IDLE) return true; } if (this.iconGlowTracker.isPlaying()) { return true; } if (this.transitionTimeline != null) { TimelineState modelTransitionTimelineState = this.transitionTimeline .getState(); if (modelTransitionTimelineState != TimelineState.IDLE) return true; } return false; }
@Override protected void reinit() { super.reinit(); if (this.iconLabel.getIcon() != null) { this.iconGlowTracker.play(3); } } }
@Override protected void addIcon(Container top) { Icon sideIcon = (optionPane == null ? null : optionPane.getIcon()); if (sideIcon == null && optionPane != null) sideIcon = super.getIconForType(optionPane.getMessageType()); if (sideIcon != null) { if (!SubstanceLookAndFeel.isToUseConstantThemesOnDialogs()) { sideIcon = SubstanceCoreUtilities.getThemedIcon(null, sideIcon); } this.substanceIconLabel = new OptionPaneLabel(); this.iconGlowTracker = new IconGlowTracker(substanceIconLabel); this.substanceIconLabel.setIcon(new GlowingIcon(sideIcon, this.iconGlowTracker)); this.substanceIconLabel.setName("OptionPane.iconLabel"); this.substanceIconLabel.setVerticalAlignment(SwingConstants.TOP); top.add(this.substanceIconLabel, BorderLayout.BEFORE_LINE_BEGINS); } }
@Override protected void installComponents() { super.installComponents(); // fix for defect 265 - check that the label is not null // before activating the loop. if (this.substanceIconLabel != null) { // Make the icon glow for three cycles. There's no need to // explicitly cancel the animation when the option pane is closed // before the animation is over - when the three cycles are up, // the animation will be removed by the tracker. if (!this.iconGlowTracker.isPlaying()) { this.iconGlowTracker.play(3); } } } }
&& this.substanceVisualStateTracker .getStateTransitionTracker().getIconGlowTracker() .isPlaying()) { this.glowingIcon.paintIcon(b, graphics, iconRect.x, iconRect.y); } else {
public float getIconGlowPosition() { return this.iconGlowTracker.getIconGlowPosition(); }
@Override protected void addIcon(Container top) { Icon sideIcon = (optionPane == null ? null : optionPane.getIcon()); if (sideIcon == null && optionPane != null) sideIcon = super.getIconForType(optionPane.getMessageType()); if (sideIcon != null) { if (!SubstanceLookAndFeel.isToUseConstantThemesOnDialogs()) { sideIcon = SubstanceCoreUtilities.getThemedIcon(null, sideIcon); } this.substanceIconLabel = new OptionPaneLabel(); this.iconGlowTracker = new IconGlowTracker(substanceIconLabel); this.substanceIconLabel.setIcon(new GlowingIcon(sideIcon, this.iconGlowTracker)); this.substanceIconLabel.setName("OptionPane.iconLabel"); this.substanceIconLabel.setVerticalAlignment(SwingConstants.TOP); top.add(this.substanceIconLabel, BorderLayout.BEFORE_LINE_BEGINS); } }
&& this.substanceVisualStateTracker .getStateTransitionTracker().getIconGlowTracker() .isPlaying()) { this.glowingIcon.paintIcon(b, graphics, iconRect.x, iconRect.y); } else {
if (this.delegate == null) return; float fadePos = this.iconGlowTracker.getIconGlowPosition();
.getRepaintCallback()); this.iconGlowTracker = new IconGlowTracker(this.component);
&& this.substanceVisualStateTracker .getStateTransitionTracker().getIconGlowTracker() .isPlaying()) { this.glowingIcon.paintIcon(b, graphics, iconRect.x, iconRect.y); } else {