2 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 * Copyright (C) 2013 - Marcos CARDINOT
5 * This file must be used under the terms of the CeCILL.
6 * This source file is licensed as described in the file COPYING, which
7 * you should have received as part of this distribution. The terms
8 * are also available at
9 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
12 package org.scilab.modules.gui.ged.graphic_objects.arc;
14 import javax.swing.JPanel;
15 import org.scilab.modules.gui.ged.MessagesGED;
16 import org.scilab.modules.gui.ged.graphic_objects.SimpleSection;
17 import org.scilab.modules.gui.ged.graphic_objects.properties.Arc;
18 import org.scilab.modules.gui.ged.graphic_objects.properties.ClippableContouredObject;
19 import org.scilab.modules.gui.ged.graphic_objects.properties.GraphicObject;
22 * Construction and startup of all components of the section: Base Properties.
23 * @author Marcos CARDINOT <mcardinot@gmail.com>
25 public class BaseProperties extends SimpleSection {
26 private JPanel sectionPanel;
27 private static BaseProperties instance;
28 private Arc arc = new Arc();
29 private ClippableContouredObject clippableContouredObject = new ClippableContouredObject();
30 private GraphicObject graphicObject = new GraphicObject();
33 * Initializes the properties and the icons of the buttons.
34 * @param objectID Enters the identification of object.
36 public BaseProperties(String objectID) {
37 super(MessagesGED.base_properties, "arc");
39 sectionPanel = getSectionPanel();
40 initComponents(objectID);
47 public static BaseProperties getInstance() {
52 * Add all the properties in this section.
56 public final void initComponents(String objectID) {
58 final int leftmargin = 0; //to inner components
59 int column = 1; //first column
61 //Components of the property: Arc Drawing Method
62 arc.arcDrawingMethod(sectionPanel, row++, column, leftmargin, objectID);
64 //Components of the property: Clip State.
65 clippableContouredObject.clipState(sectionPanel, row++, column, leftmargin, objectID);
67 //Components of the property: Clip Box.
68 clippableContouredObject.clipBox(sectionPanel, row, column, leftmargin, objectID);
71 //Components of the property: Tag.
72 graphicObject.tag(sectionPanel, row++, column, leftmargin, objectID);
74 //Components of the property: User Data.
75 graphicObject.userData(sectionPanel, row++, column, leftmargin);
77 //Components of the property: Visible
78 graphicObject.visible(sectionPanel, row++, column, leftmargin, objectID);