- Timestamp:
- 08/25/08 12:42:23 (16 years ago)
- Location:
- trunk/src/org/expeditee
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/gui/PopupManager.java
r219 r277 45 45 46 46 private LinkedList<AnimatedPopup> _animatingPopups = new LinkedList<AnimatedPopup>(); 47 48 47 private AnimationThread _animationThread = null; 49 48 50 49 private final int ANIMATION_DURATION = 180; // Tume its takes for a maximize . minimize to animate. In ms. 51 50 private final int ANIMATION_RATE = 30; // in ms … … 87 86 if (c == null) throw new NullPointerException("c"); 88 87 return _invokers.contains(c); 88 } 89 90 /** 91 * Gets an invoker for a popup 92 * 93 * @param p 94 * The popup to get the invoker for. 95 * 96 * @return 97 * The invoker for the given popup. 98 * Null if popup does not exist. 99 */ 100 public Component getInvoker(Popup p) { 101 if (p == null) throw new NullPointerException("p"); 102 return _popups.get(p); 89 103 } 90 104 … … 704 718 } 705 719 720 706 721 public class ExpandShrinkAnimator implements PopupAnimator { 707 722 -
trunk/src/org/expeditee/items/widgets/HeavyDutyInteractiveWidget.java
r211 r277 7 7 import java.awt.Graphics2D; 8 8 import java.awt.Rectangle; 9 import java.awt.Shape; 9 10 import java.awt.geom.Rectangle2D; 10 11 import java.util.LinkedList; … … 13 14 import javax.swing.SwingUtilities; 14 15 16 import org.expeditee.gui.Browser; 15 17 import org.expeditee.gui.DisplayIO; 16 18 import org.expeditee.gui.FrameGraphics; … … 230 232 private void paintLoadScreen(Graphics g, Color backgroundColor) { 231 233 234 if (Browser._theBrowser == null) return; 235 232 236 // Render shaded window over widget 233 237 g.setColor(backgroundColor); … … 248 252 g.setFont(f); 249 253 254 // If need to re-calc the message drawing area... do so 255 250 256 FontMetrics fm = g.getFontMetrics(f); 251 257 Rectangle2D rect = fm.getStringBounds(message, g); … … 258 264 if (textY <= 0) textY = barY + 2; 259 265 textY += textHeight; 260 266 267 // Ensure that load bar and text doesn't spill over widgets invalidation area 268 Shape clipBackUp = g.getClip(); 269 Rectangle tmpClip = (clipBackUp != null) ? clipBackUp.getBounds() : 270 new Rectangle(0, 0, 271 Browser._theBrowser.getContentPane().getWidth(), 272 Browser._theBrowser.getContentPane().getHeight()); 273 274 g.setClip(tmpClip.intersection(getBounds())); 275 276 261 277 if (loadState < 0.0f) { // indeterminant 262 278 … … 281 297 else g.setColor(Color.BLACK); 282 298 299 300 283 301 g.drawString(message, textX, textY); 284 302 303 g.setClip(clipBackUp); 304 285 305 } 286 306 … … 453 473 } 454 474 } 475 455 476 456 477 /** -
trunk/src/org/expeditee/items/widgets/InteractiveWidget.java
r239 r277 587 587 * @return The expeditee anotation string. 588 588 */ 589 pr ivateString getAnnotationString() {589 protected String getAnnotationString() { 590 590 591 591 // Create tag and append classname
Note:
See TracChangeset
for help on using the changeset viewer.