diff --git a/AlgebraicDataflowArchitectureModel/src/application/editor/FlowCellEditor.java b/AlgebraicDataflowArchitectureModel/src/application/editor/FlowCellEditor.java index c0d6b1a..b4d7176 100644 --- a/AlgebraicDataflowArchitectureModel/src/application/editor/FlowCellEditor.java +++ b/AlgebraicDataflowArchitectureModel/src/application/editor/FlowCellEditor.java @@ -1,45 +1,27 @@ package application.editor; -import java.util.EventObject; - import com.mxgraph.swing.mxGraphComponent; import com.mxgraph.swing.view.mxICellEditor; -abstract public class FlowCellEditor implements mxICellEditor { +import java.util.EventObject; - protected Stage stage = null; - protected mxGraphComponent graphComponent = null; +public abstract class FlowCellEditor implements mxICellEditor { + + protected Stage stage; + protected mxGraphComponent graphComponent; protected Object editingCell = null; - /************************************************************* - * [ *constructor] - /************************************************************* - * - * @param stage - * @param graphComponent - */ protected FlowCellEditor(Stage stage, mxGraphComponent graphComponent) { this.stage = stage; this.graphComponent = graphComponent; } - /************************************************************* - * [ *public ] - /************************************************************* - * - */ + public abstract void startEditing(Object cellObj, EventObject eventObj); + + public abstract void stopEditing(boolean cancel); + public Object getEditingCell() { return this.editingCell; } - - /************************************************************* - * - */ - abstract public void startEditing(Object cellObj, EventObject eventObj); - - /************************************************************* - * - */ - abstract public void stopEditing(boolean cancel); }