~josejuan-sanchez/+junk/original-jhv-experimental-version

« back to all changes in this revision

Viewing changes to src/viewmodelplugin/src/org/helioviewer/viewmodelplugin/overlay/OverlayControlComponent.java

  • Committer: José Juan Sánchez Hernández
  • Date: 2013-02-05 13:32:08 UTC
  • Revision ID: josejuan.sanchez@gmail.com-20130205133208-dfz1sh1uge5pjkny
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package org.helioviewer.viewmodelplugin.overlay;
 
2
 
 
3
/**
 
4
 * This class bundles all needed information of a visual control component for
 
5
 * an overlay.
 
6
 * 
 
7
 * @author Stephan Pagel
 
8
 */
 
9
public class OverlayControlComponent {
 
10
 
 
11
    // ////////////////////////////////////////////////////////////////
 
12
    // Definitions
 
13
    // ////////////////////////////////////////////////////////////////
 
14
 
 
15
    private OverlayPanel panel;
 
16
    private String title;
 
17
 
 
18
    // ////////////////////////////////////////////////////////////////
 
19
    // Methods
 
20
    // ////////////////////////////////////////////////////////////////
 
21
 
 
22
    /**
 
23
     * Default constructor.
 
24
     * 
 
25
     * @param panel
 
26
     *            Panel which includes all control components of the overlay.
 
27
     * @param title
 
28
     *            User friendly title which will be displayed with the control
 
29
     *            component.
 
30
     */
 
31
    public OverlayControlComponent(OverlayPanel panel, String title) {
 
32
        this.panel = panel;
 
33
        this.title = title;
 
34
    }
 
35
 
 
36
    /**
 
37
     * Returns the control component of the overlay.
 
38
     * 
 
39
     * @return the control component of the overlay.
 
40
     */
 
41
    public OverlayPanel getOverlayPanel() {
 
42
        return panel;
 
43
    }
 
44
 
 
45
    /**
 
46
     * Returns the title for the control component.
 
47
     * 
 
48
     * @return the title for the control component.
 
49
     */
 
50
    public String getTitle() {
 
51
        return title;
 
52
    }
 
53
}