public float getFocusLoopPosition() { if (this.focusLoopTimeline == null) return 0.0f; return this.focusLoopTimeline.getTimelinePosition(); }
public float getFocusLoopPosition() { if (this.focusLoopTimeline == null) return 0.0f; return this.focusLoopTimeline.getTimelinePosition(); }
public float getIconGlowPosition() { return this.iconGlowTimeline.getTimelinePosition(); } }
public float getIconGlowPosition() { return this.iconGlowTimeline.getTimelinePosition(); } }
/** * Retrieves the current cycle count for the specified button. * * @param jButton * Button. * @return Current cycle count for the specified button. */ public static float getTimelinePosition(JButton jButton) { RootPaneDefaultButtonTracker tracker = trackers.get(jButton); if (tracker == null) return 0; return tracker.timeline.getTimelinePosition(); // Long cycleCount = cycles.get(jButton); // if (cycleCount == null) { // return 0; // } // long result = cycleCount.longValue(); // if (result < 0) // result = 0; // return result; }
/** * Retrieves the current cycle count for the specified button. * * @param jButton * Button. * @return Current cycle count for the specified button. */ public static float getTimelinePosition(JButton jButton) { RootPaneDefaultButtonTracker tracker = trackers.get(jButton); if (tracker == null) return 0; return tracker.timeline.getTimelinePosition(); // Long cycleCount = cycles.get(jButton); // if (cycleCount == null) { // return 0; // } // long result = cycleCount.longValue(); // if (result < 0) // result = 0; // return result; }
public float getFocusStrength(boolean hasFocus) { if (this.focusTimeline == null) return 0.0f; TimelineState focusTimelineState = this.focusTimeline.getState(); if ((focusTimelineState == TimelineState.READY) || (focusTimelineState == TimelineState.PLAYING_FORWARD) || (focusTimelineState == TimelineState.PLAYING_REVERSE)) { return this.focusTimeline.getTimelinePosition(); } return hasFocus ? 1.0f : 0.0f; }
public float getFocusStrength(boolean hasFocus) { if (this.focusTimeline == null) return 0.0f; TimelineState focusTimelineState = this.focusTimeline.getState(); if ((focusTimelineState == TimelineState.READY) || (focusTimelineState == TimelineState.PLAYING_FORWARD) || (focusTimelineState == TimelineState.PLAYING_REVERSE)) { return this.focusTimeline.getTimelinePosition(); } return hasFocus ? 1.0f : 0.0f; }
JComponent comp, Timeline ghostRolloverTimeline, Icon icon, double scaleFactor) { String key = ghostRolloverTimeline.getTimelinePosition() + ":" + comp.hashCode() + ":" + icon.hashCode() + ":" + scaleFactor;
/** * Returns a scaled ghost image of the specified component. * * @param comp * Component. * @param scaleFactor * Scale factor. * @return A scaled ghost image of the specified component. */ protected static synchronized BufferedImage getComponentGhostImage( JComponent comp, Timeline ghostPressTimeline, double scaleFactor) { String key = ghostPressTimeline.getTimelinePosition() + ":" + comp.hashCode() + ":" + scaleFactor; BufferedImage result = componentGhostCache.get(key); if (result == null) { Rectangle bounds = comp.getBounds(); double iWidth = bounds.width * scaleFactor; double iHeight = bounds.height * scaleFactor; result = LafWidgetUtilities.getBlankImage((int) iWidth, (int) iHeight); Graphics2D iGraphics = result.createGraphics(); iGraphics.scale(scaleFactor, scaleFactor); comp.paint(iGraphics); iGraphics.dispose(); componentGhostCache.put(key, result); } return result; }
float fade = ghostRolloverTimeline.getTimelinePosition(); if ((icon != null) && (iconRectangle != null)) { double iFactor = 1.0 + fade;
float fade = timeline.getTimelinePosition(); float fade = timeline.getTimelinePosition();
cyclePos = modificationTimeline.getTimelinePosition();
cyclePos = modificationTimeline.getTimelinePosition();