Changeset 5590 for trunk/gli/src/org/greenstone/gatherer/gui/tree
- Timestamp:
- 2003-10-07T14:48:08+13:00 (21 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer/gui/tree
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/gui/tree/DragTree.java
r5571 r5590 11 11 import javax.swing.event.*; 12 12 import javax.swing.tree.*; 13 import org.greenstone.gatherer.Dictionary; 13 14 import org.greenstone.gatherer.Gatherer; 14 15 import org.greenstone.gatherer.file.FileNode; … … 221 222 } 222 223 else { 223 String title = getSelectionCount() + " files";224 String title = getSelectionCount() + Dictionary.newget("Tree.Files"); 224 225 label = new JLabel(title, ((DefaultTreeCellRenderer)getCellRenderer()).getClosedIcon(), JLabel.CENTER); 225 226 title = null; … … 272 273 pt_last = pt; 273 274 if(!DragSource.isDragImageSupported()) { 274 275 // Erase the last ghost image and cue line 275 276 paintImmediately(ra_ghost.getBounds()); 276 277 // Remember where you are about to draw the new ghost image 277 278 ra_ghost.setRect(pt.x - group.mouse_offset.x, pt.y - group.mouse_offset.y, group.image_ghost.getWidth(), group.image_ghost.getHeight()); 278 279 // Draw the ghost image 279 280 g2.drawImage(group.image_ghost, AffineTransform.getTranslateInstance(ra_ghost.getX(), ra_ghost.getY()), null); 280 281 } … … 282 283 TreePath target_path = this.getPathForLocation(pt.x, pt.y); 283 284 if(previous_path == null || target_path != null && !target_path.equals(previous_path)) { 284 285 // Immediately clear the old cue lines. 285 286 if(upper_cue_line != null && lower_cue_line != null) { 286 287 paintImmediately(upper_cue_line.getBounds()); -
trunk/gli/src/org/greenstone/gatherer/gui/tree/DragTreeCellRenderer.java
r5360 r5590 1 package org.greenstone.gatherer.gui.tree;2 1 /** 3 2 *######################################################################### … … 36 35 *######################################################################## 37 36 */ 37 package org.greenstone.gatherer.gui.tree; 38 38 39 import java.awt.*; 39 40 import javax.swing.*; … … 97 98 } 98 99 } 99
Note:
See TracChangeset
for help on using the changeset viewer.