use of edu.cmu.cs.hcii.cogtool.util.AListenerAction in project cogtool by cogtool.
the class DesignEditorController method createNewFrameAction.
protected IListenerAction createNewFrameAction() {
return new AListenerAction() {
public boolean performAction(Object prms) {
// Find an unoccupied starting position by cascading.
DoublePoint origin = new DoublePoint(10.0, 10.0);
DesignUtil.findDistinctOrigin(design, origin, 16.0, 16.0);
Frame frame = createNewFrame(origin.x, origin.y);
ui.initiateFrameRename(frame);
return true;
}
};
}
Aggregations