~ubuntu-branches/debian/stretch/insubstantial/stretch

« back to all changes in this revision

Viewing changes to substance/src/main/java/org/pushingpixels/substance/internal/contrib/randelshofer/quaqua/colorchooser/PaletteEntry.java

  • Committer: Package Import Robot
  • Author(s): Felix Natter
  • Date: 2016-01-18 20:58:45 UTC
  • Revision ID: package-import@ubuntu.com-20160118205845-crbmrkda61qsi5qa
Tags: upstream-7.3+dfsg2
ImportĀ upstreamĀ versionĀ 7.3+dfsg2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package org.pushingpixels.substance.internal.contrib.randelshofer.quaqua.colorchooser;
 
2
 
 
3
/*
 
4
 * @(#)PaletteEntry.java  1.0  19 septembre 2005
 
5
 *
 
6
 * Copyright (c) 2005 Werner Randelshofer
 
7
 * Staldenmattweg 2, Immensee, CH-6405, Switzerland.
 
8
 * All rights reserved.
 
9
 *
 
10
 * This software is the confidential and proprietary information of
 
11
 * Werner Randelshofer. ("Confidential Information").  You shall not
 
12
 * disclose such Confidential Information and shall use it only in
 
13
 * accordance with the terms of the license agreement you entered into
 
14
 * with Werner Randelshofer.
 
15
 */
 
16
 
 
17
import java.awt.*;
 
18
/**
 
19
 * PaletteEntry.
 
20
 *
 
21
 * @author  Werner Randelshofer
 
22
 * @version 1.0 19 septembre 2005 Created.
 
23
 */
 
24
public class PaletteEntry {
 
25
    private String name;
 
26
    private Color color;
 
27
    
 
28
    /**
 
29
     * Creates a new instance.
 
30
     */
 
31
    public PaletteEntry(String name, Color color) {
 
32
        this.name = name;
 
33
        this.color = color;
 
34
    }
 
35
    public String getName() {
 
36
        return name;
 
37
    }
 
38
    public String toString() {
 
39
        return name;
 
40
    }
 
41
    public Color getColor() {
 
42
        return color;
 
43
    }
 
44
}