35 |
obligated to do so. If you do not wish to do so, delete this |
obligated to do so. If you do not wish to do so, delete this |
36 |
exception statement from your version. */ |
exception statement from your version. */ |
37 |
|
|
|
|
|
38 |
package javax.swing.colorchooser; |
package javax.swing.colorchooser; |
39 |
|
|
40 |
import javax.swing.JComponent; |
import javax.swing.JComponent; |
41 |
|
|
42 |
|
|
43 |
/** |
/** |
44 |
* ColorChooserComponentFactory |
* ColorChooserComponentFactory |
45 |
* @author Andrew Selkirk |
* |
46 |
* @version 1.0 |
* @author Andrew Selkirk |
47 |
|
* @version 1.0 |
48 |
*/ |
*/ |
49 |
public class ColorChooserComponentFactory { |
public class ColorChooserComponentFactory |
50 |
|
{ |
51 |
//------------------------------------------------------------- |
/** |
52 |
// Initialization --------------------------------------------- |
* Constructor ColorChooserComponentFactory |
53 |
//------------------------------------------------------------- |
*/ |
54 |
|
private ColorChooserComponentFactory() |
55 |
/** |
{ |
56 |
* Constructor ColorChooserComponentFactory |
} // ColorChooserComponentFactory() |
57 |
*/ |
|
58 |
private ColorChooserComponentFactory() { |
/** |
59 |
// TODO |
* This method returns the three default chooser panels to be used in |
60 |
} // ColorChooserComponentFactory() |
* JColorChooser. |
61 |
|
* |
62 |
|
* @return The default chooser panels. |
63 |
//------------------------------------------------------------- |
*/ |
64 |
// Methods ---------------------------------------------------- |
public static AbstractColorChooserPanel[] getDefaultChooserPanels() |
65 |
//------------------------------------------------------------- |
{ |
66 |
|
AbstractColorChooserPanel[] values = |
67 |
/** |
{ |
68 |
* getDefaultChooserPanels |
new DefaultSwatchChooserPanel(), |
69 |
* @returns AbstractColorChooserPanel[] |
new DefaultHSBChooserPanel(), |
70 |
*/ |
new DefaultRGBChooserPanel() |
71 |
public static AbstractColorChooserPanel[] getDefaultChooserPanels() { |
}; |
72 |
return null; // TODO |
return values; |
73 |
} // getDefaultChooserPanels() |
} |
74 |
|
|
75 |
/** |
/** |
76 |
* getPreviewPanel |
* This method returns the default preview panel to be used with |
77 |
* @returns JComponent |
* JColorChoosers. |
78 |
*/ |
* |
79 |
public static JComponent getPreviewPanel() { |
* @return The default preview panel. |
80 |
return null; // TODO |
*/ |
81 |
} // getPreviewPanel() |
public static JComponent getPreviewPanel() |
82 |
|
{ |
83 |
|
return new DefaultPreviewPanel(); |
84 |
|
} // getPreviewPanel() |
85 |
} // ColorChooserComponentFactory |
} // ColorChooserComponentFactory |