@@ -0,0 +1,2373 @@
+/*%0A * JaamSim Discrete Event Simulation%0A * Copyright (C) 2018 JaamSim Software Inc.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage com.jaamsim.Graphics;%0A%0Apublic interface Editable %7B%0A%0A%09public static final int ACCEPT_EDITS = 1;%0A%09public static final int CONTINUE_EDITS = 0;%0A%09public static final int CANCEL_EDITS = -1;%0A%0A%09/**%0A%09 * Sets the edit mode.%0A%09 * @param bool - new mode: true = editing, false = not editing%0A%09 */%0A%09public void setEditMode(boolean bool);%0A%0A%09/**%0A%09 * Returns whether edit mode is set.%0A%09 * @return true if in edit mode%0A%09 */%0A%09public boolean isEditMode();%0A%0A%09/**%0A%09 * Accepts any edits that have been made.%0A%09 */%0A%09public void acceptEdits();%0A%0A%09/**%0A%09 * Cancels any edits that have been made.%0A%09 */%0A%09public void cancelEdits();%0A%0A%09/**%0A%09 * Performs the editing action for the specified key on the keyboard is first pressed.%0A%09 * @param keyCode - Newt code for the keyboard key%0A%09 * @param keyChar - Newt character code for the keyboard key%0A%09 * @param shift - true if the Shift key is pressed%0A%09 * @param control - true if the Control key is pressed%0A%09 * @param alt - true if the Alt key is pressed%0A%09 * @return state after the keystroke: ACCEPT_EDITS, CONTINUE_EDITS, or CANCEL_EDITS%0A%09 */%0A%09public int handleEditKeyPressed(int keyCode, char keyChar, boolean shift, boolean control, boolean alt);%0A%0A%0A%09/**%0A%09 * Performs the editing action for the specified key on the keyboard is released.%0A%09 * @param keyCode - Newt code for the keyboard key%0A%09 * @param keyChar - Newt character code for the keyboard key%0A%09 * @param shift - true if the Shift key is pressed%0A%09 * @param control - true if the Control key is pressed%0A%09 * @param alt - true if the Alt key is pressed%0A%09 * @return state after the keystroke: ACCEPT_EDITS, CONTINUE_EDITS, or CANCEL_EDITS%0A%09 */%0A%09public int handleEditKeyReleased(int keyCode, char keyChar, boolean shift, boolean control, boolean alt);%0A%0A%7D%0A

add Editable interface