Search in sources :

Example 6 with StandardDrawingEditor

use of edu.cmu.cs.hcii.cogtool.view.StandardDrawingEditor in project cogtool by cogtool.

the class SEFrameChooserUI method resetVisibleArea.

// ctor
@Override
public void resetVisibleArea() {
    StandardDrawingEditor e = view.getEditor();
    e.getLWS().getUpdateManager().performUpdate();
    DoubleSize extent = structureView.getPreferredSize();
    e.setMinVisibleArea(PrecisionUtilities.round(extent.width), PrecisionUtilities.round(extent.height), false);
}
Also used : StandardDrawingEditor(edu.cmu.cs.hcii.cogtool.view.StandardDrawingEditor) DoubleSize(edu.cmu.cs.hcii.cogtool.model.DoubleSize)

Example 7 with StandardDrawingEditor

use of edu.cmu.cs.hcii.cogtool.view.StandardDrawingEditor in project cogtool by cogtool.

the class FrameEditorUI method resetVisibleArea.

public void resetVisibleArea() {
    // TODO:mlh at least on PC, performUpdate screws up previous locn assignment
    StandardDrawingEditor e = view.getEditor();
    e.getLWS().getUpdateManager().performUpdate();
    DoubleSize extent = frameUI.getPreferredSize();
    e.setMinVisibleArea(PrecisionUtilities.round(extent.width), PrecisionUtilities.round(extent.height), false);
}
Also used : StandardDrawingEditor(edu.cmu.cs.hcii.cogtool.view.StandardDrawingEditor) DoubleSize(edu.cmu.cs.hcii.cogtool.model.DoubleSize)

Aggregations

StandardDrawingEditor (edu.cmu.cs.hcii.cogtool.view.StandardDrawingEditor)7 DoubleSize (edu.cmu.cs.hcii.cogtool.model.DoubleSize)4 DoublePoint (edu.cmu.cs.hcii.cogtool.model.DoublePoint)2 InteractionFigure (edu.cmu.cs.hcii.cogtool.view.InteractionFigure)2 ArrayList (java.util.ArrayList)2 Iterator (java.util.Iterator)2 RectangleFigure (org.eclipse.draw2d.RectangleFigure)2 Point (org.eclipse.draw2d.geometry.Point)2 Rectangle (org.eclipse.draw2d.geometry.Rectangle)2 DoubleRectangle (edu.cmu.cs.hcii.cogtool.model.DoubleRectangle)1 GridButton (edu.cmu.cs.hcii.cogtool.model.GridButton)1 GridButtonGroup (edu.cmu.cs.hcii.cogtool.model.GridButtonGroup)1 DesignEditorFrame (edu.cmu.cs.hcii.cogtool.uimodel.DesignEditorFrame)1 FrameEltGroupHalo (edu.cmu.cs.hcii.cogtool.uimodel.FrameEltGroupHalo)1 FrameEltSelnFig (edu.cmu.cs.hcii.cogtool.uimodel.FrameEltSelnFig)1 GraphicalChildWidget (edu.cmu.cs.hcii.cogtool.uimodel.GraphicalChildWidget)1 GraphicalSource (edu.cmu.cs.hcii.cogtool.uimodel.GraphicalSource)1 GraphicalWidget (edu.cmu.cs.hcii.cogtool.uimodel.GraphicalWidget)1 IFigure (org.eclipse.draw2d.IFigure)1