View Javadoc
1   /**
2    * 
3    * Copyright (c) 2013-2014, Openflexo
4    * Copyright (c) 2011-2012, AgileBirds
5    * 
6    * This file is part of Gina-swing-editor, a component of the software infrastructure 
7    * developed at Openflexo.
8    * 
9    * 
10   * Openflexo is dual-licensed under the European Union Public License (EUPL, either 
11   * version 1.1 of the License, or any later version ), which is available at 
12   * https://joinup.ec.europa.eu/software/page/eupl/licence-eupl
13   * and the GNU General Public License (GPL, either version 3 of the License, or any 
14   * later version), which is available at http://www.gnu.org/licenses/gpl.html .
15   * 
16   * You can redistribute it and/or modify under the terms of either of these licenses
17   * 
18   * If you choose to redistribute it and/or modify under the terms of the GNU GPL, you
19   * must include the following additional permission.
20   *
21   *          Additional permission under GNU GPL version 3 section 7
22   *
23   *          If you modify this Program, or any covered work, by linking or 
24   *          combining it with software containing parts covered by the terms 
25   *          of EPL 1.0, the licensors of this Program grant you additional permission
26   *          to convey the resulting work. * 
27   * 
28   * This software is distributed in the hope that it will be useful, but WITHOUT ANY 
29   * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 
30   * PARTICULAR PURPOSE. 
31   *
32   * See http://www.openflexo.org/license.html for details.
33   * 
34   * 
35   * Please contact Openflexo (openflexo-contacts@openflexo.org)
36   * or visit www.openflexo.org if you need additional information.
37   * 
38   */
39  
40  package org.openflexo.gina.swing.editor.controller;
41  
42  import javax.swing.ImageIcon;
43  
44  import org.openflexo.icon.IconMarker;
45  import org.openflexo.icon.ImageIconResource;
46  import org.openflexo.rm.ResourceLocator;
47  
48  /**
49   * Provides graphical resources used in the context of FIB
50   * 
51   * 
52   * @author sylvain
53   * 
54   */
55  public class FIBEditorIconLibrary {
56  
57  	public static final ImageIcon DELETE_ICON = new ImageIconResource(ResourceLocator.locateResource("Icons/Actions/Delete.gif"));
58  	public static final ImageIcon HELP_ICON = new ImageIconResource(ResourceLocator.locateResource("Icons/Actions/Help.gif"));
59  	public static final ImageIcon REFRESH_ICON = new ImageIconResource(ResourceLocator.locateResource("Icons/Actions/Refresh.gif"));
60  	public static final ImageIcon INSPECT_ICON = new ImageIconResource(ResourceLocator.locateResource("Icons/Actions/Inspect.gif"));
61  	public static final ImageIcon COPY_ICON = new ImageIconResource(ResourceLocator.locateResource("Icons/Actions/Copy.gif"));
62  	public static final ImageIcon CUT_ICON = new ImageIconResource(ResourceLocator.locateResource("Icons/Actions/Cut.gif"));
63  	public static final ImageIcon PASTE_ICON = new ImageIconResource(ResourceLocator.locateResource("Icons/Actions/Paste.gif"));
64  	public static final ImageIcon UNDO_ICON = new ImageIconResource(ResourceLocator.locateResource("Icons/Actions/Undo.gif"));
65  	public static final ImageIcon REDO_ICON = new ImageIconResource(ResourceLocator.locateResource("Icons/Actions/Redo.gif"));
66  
67  	public static final ImageIcon TOP_ICON = new ImageIconResource(ResourceLocator.locateResource("Icons/Actions/Top.png"));
68  	public static final ImageIcon BOTTOM_ICON = new ImageIconResource(ResourceLocator.locateResource("Icons/Actions/Bottom.png"));
69  	public static final ImageIcon UP_ICON = new ImageIconResource(ResourceLocator.locateResource("Icons/Actions/Up.png"));
70  	public static final ImageIcon DOWN_ICON = new ImageIconResource(ResourceLocator.locateResource("Icons/Actions/Down.png"));
71  
72  	public static final ImageIcon ROLE_ICON = new ImageIconResource(ResourceLocator.locateResource("Icons/SmallRole.gif"));
73  	public static final ImageIcon ROOT_COMPONENT_ICON = new ImageIconResource(
74  			ResourceLocator.locateResource("Icons/RootComponentIcon.png"));
75  	public static final ImageIcon PANEL_ICON = new ImageIconResource(ResourceLocator.locateResource("Icons/PanelIcon.png"));
76  	public static final ImageIcon REFERENCE_COMPONENT_ICON = new ImageIconResource(
77  			ResourceLocator.locateResource("Icons/InternalFrameIcon.png"));
78  	public static final ImageIcon SPLIT_PANEL_ICON = new ImageIconResource(ResourceLocator.locateResource("Icons/SplitPaneIcon.png"));
79  	public static final ImageIcon BUTTON_ICON = new ImageIconResource(ResourceLocator.locateResource("Icons/ButtonIcon.png"));
80  	public static final ImageIcon CHECKBOX_ICON = new ImageIconResource(ResourceLocator.locateResource("Icons/CheckBoxIcon.png"));
81  	public static final ImageIcon DROPDOWN_ICON = new ImageIconResource(ResourceLocator.locateResource("Icons/DropDownIcon.png"));
82  	public static final ImageIcon LABEL_ICON = new ImageIconResource(ResourceLocator.locateResource("Icons/LabelIcon.png"));
83  	public static final ImageIcon RADIOBUTTON_ICON = new ImageIconResource(ResourceLocator.locateResource("Icons/RadioButtonIcon.png"));
84  	public static final ImageIcon TABS_ICON = new ImageIconResource(ResourceLocator.locateResource("Icons/TabbedPaneIcon.png"));
85  	public static final ImageIcon TEXTAREA_ICON = new ImageIconResource(ResourceLocator.locateResource("Icons/TextAreaIcon.png"));
86  	public static final ImageIcon TEXTFIELD_ICON = new ImageIconResource(ResourceLocator.locateResource("Icons/TextFieldIcon.png"));
87  	public static final ImageIcon TABLE_ICON = new ImageIconResource(ResourceLocator.locateResource("Icons/TableIcon.png"));
88  	public static final ImageIcon TABLE_COLUMN_ICON = new ImageIconResource(ResourceLocator.locateResource("Icons/TableColumnIcon.png"));
89  	public static final ImageIcon TABLE_ACTION_ICON = new ImageIconResource(ResourceLocator.locateResource("Icons/ActionIcon.png"));
90  	public static final ImageIcon BROWSER_ICON = new ImageIconResource(ResourceLocator.locateResource("Icons/TreeIcon.png"));
91  	public static final ImageIcon BROWSER_ELEMENT_ICON = new ImageIconResource(ResourceLocator.locateResource("Icons/BrowserElement.png"));
92  	public static final ImageIcon BROWSER_ELEMENT_CHILDREN_ICON = new ImageIconResource(
93  			ResourceLocator.locateResource("Icons/CheckBoxIcon.png"));
94  	public static final ImageIcon BROWSER_ELEMENT_ACTION_ICON = new ImageIconResource(
95  			ResourceLocator.locateResource("Icons/ActionIcon.png"));
96  	public static final ImageIcon DRAG_OPERATION_ICON = new ImageIconResource(ResourceLocator.locateResource("Icons/DragOperation.png"));
97  	public static final ImageIcon NUMBER_ICON = new ImageIconResource(ResourceLocator.locateResource("Icons/SpinnerIcon.png"));
98  	public static final ImageIcon IMAGE_ICON = new ImageIconResource(ResourceLocator.locateResource("Icons/ImageIcon.png"));
99  	public static final ImageIcon CUSTOM_ICON = new ImageIconResource(ResourceLocator.locateResource("Icons/LayeredPaneIcon.png"));
100 	public static final ImageIcon GRAPH_ICON = new ImageIconResource(ResourceLocator.locateResource("Icons/Small_BIRT.gif"));
101 	public static final ImageIcon GRAPH_FUNCTION_ICON = new ImageIconResource(ResourceLocator.locateResource("Icons/FunctionIcon.png"));
102 
103 	public static final ImageIcon ITERATION_ICON = new ImageIconResource(ResourceLocator.locateResource("Icons/IterationIcon.png"));
104 	public static final ImageIcon CONDITIONAL_ICON = new ImageIconResource(ResourceLocator.locateResource("Icons/ConditionalIcon.png"));
105 
106 	public static final IconMarker DELETE = new IconMarker(
107 			new ImageIconResource(ResourceLocator.locateResource("Icons/Markers/Delete.png")), 8, 8);
108 	public static final IconMarker DUPLICATE = new IconMarker(
109 			new ImageIconResource(ResourceLocator.locateResource("Icons/Markers/Plus.png")), 8, 0);
110 
111 }