Search in sources :

Example 1 with ObjectPropertiesFrame

use of doc_gui.attribute_panels.ObjectPropertiesFrame in project OpenNotebook by jaltekruse.

the class OpenNotebook method addContents.

private void addContents(Container c) {
    notebookPanel = new NotebookPanel(this);
    //		propertiesFrames = new ObjectPropertiesFrame[MathObject.objects.length];
    //		for (int i = 0; i < MathObject.objects.length; i++){
    //			//System.out.println("before:" + (new java.util.Date().getTime() - timeAtStart));
    //			//propertiesFrames[i] = new ObjectPropertiesFrame(MathObject.objects[i], notebookPanel);
    //			//System.out.println("after:" + (new java.util.Date().getTime() - timeAtStart));
    //		}
    new ObjectPropertiesFrame(new GraphObject(), notebookPanel);
    new ObjectPropertiesFrame(new ExpressionObject(), notebookPanel);
    c.removeAll();
    c.setLayout(new GridBagLayout());
    GridBagConstraints bCon = new GridBagConstraints();
    bCon.fill = GridBagConstraints.BOTH;
    bCon.weightx = 1;
    bCon.weighty = 1;
    c.add(notebookPanel, bCon);
}
Also used : GridBagConstraints(java.awt.GridBagConstraints) ObjectPropertiesFrame(doc_gui.attribute_panels.ObjectPropertiesFrame) ExpressionObject(doc.mathobjects.ExpressionObject) GridBagLayout(java.awt.GridBagLayout) GraphObject(doc.mathobjects.GraphObject)

Aggregations

ExpressionObject (doc.mathobjects.ExpressionObject)1 GraphObject (doc.mathobjects.GraphObject)1 ObjectPropertiesFrame (doc_gui.attribute_panels.ObjectPropertiesFrame)1 GridBagConstraints (java.awt.GridBagConstraints)1 GridBagLayout (java.awt.GridBagLayout)1