Statistics
| Revision:

root / trunk / extensions / extArcims / src / es / prodevelop / cit / gvsig / arcims / gui / panels / utils / JMultilineToolTip.java @ 8110

History | View | Annotate | Download (787 Bytes)

1
package es.prodevelop.cit.gvsig.arcims.gui.panels.utils;
2

    
3
import javax.swing.JToolTip;
4

    
5
/**
6
 * This class allows nice multiline tool tips.
7
 *  
8
 * @author Zafir Anjum
9
 * @author jldominguez
10
 */
11
public class JMultilineToolTip extends JToolTip {
12

    
13
        private static final long serialVersionUID = 0;
14

    
15

    
16
        String tipText;
17

    
18
        public JMultilineToolTip() {
19
                updateUI();
20
        }
21
        
22
        public void updateUI() {
23
                setUI(MultilineToolTipUI.createUI(this));
24
        }
25

    
26
        public void setColumns(int columns) {
27
                this.columns = columns;
28
                this.fixedwidth = 0;
29
        }
30

    
31
        public int getColumns() {
32
                return columns;
33
        }
34

    
35
        public void setFixedWidth(int width) {
36
                this.fixedwidth = width;
37
                this.columns = 0;
38
        }
39

    
40
        public int getFixedWidth() {
41
                return fixedwidth;
42
        }
43
        
44
        protected int columns = 0;
45

    
46
        protected int fixedwidth = 0;
47
}