protected static class AirspaceBuilder.AirspaceBuilderController extends WWObjectImpl implements ActionListener, MouseListener, AirspaceEditListener
Modifier and Type | Field and Description |
---|---|
protected AirspaceBuilder.AppFrame |
app |
protected AirspaceEditorController |
editorController |
protected boolean |
enabled |
protected boolean |
enableEdit |
protected JFileChooser |
fileChooser |
protected AirspaceBuilder.AirspaceBuilderModel |
model |
protected boolean |
resizeNewShapes |
protected AirspaceBuilder.AirspaceEntry |
selectedEntry |
protected AirspaceBuilder.AirspaceBuilderPanel |
view |
Constructor and Description |
---|
AirspaceBuilderController(AirspaceBuilder.AppFrame app) |
onMessage, propertyChange
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
protected AirspaceBuilder.AppFrame app
protected AirspaceEditorController editorController
protected boolean enabled
protected boolean enableEdit
protected JFileChooser fileChooser
protected AirspaceBuilder.AirspaceBuilderModel model
protected boolean resizeNewShapes
protected AirspaceBuilder.AirspaceEntry selectedEntry
protected AirspaceBuilder.AirspaceBuilderPanel view
public AirspaceBuilderController(AirspaceBuilder.AppFrame app)
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public void addEntry(AirspaceBuilder.AirspaceEntry entry)
public void airspaceMoved(AirspaceEditEvent e)
airspaceMoved
in interface AirspaceEditListener
public void airspaceResized(AirspaceEditEvent e)
airspaceResized
in interface AirspaceEditListener
public void controlPointAdded(AirspaceEditEvent e)
controlPointAdded
in interface AirspaceEditListener
public void controlPointChanged(AirspaceEditEvent e)
controlPointChanged
in interface AirspaceEditListener
public void controlPointRemoved(AirspaceEditEvent e)
controlPointRemoved
in interface AirspaceEditListener
public void createNewEntry(AirspaceBuilder.AirspaceFactory factory)
public AirspaceBuilder.AppFrame getApp()
protected AirspaceBuilder.AirspaceEntry[] getEntriesFor(int[] indices)
protected AirspaceBuilder.AirspaceEntry getEntryFor(Airspace airspace)
public AirspaceBuilder.AirspaceBuilderModel getModel()
protected AirspaceBuilder.AirspaceEntry[] getSelectedEntries()
public AirspaceBuilder.AirspaceEntry getSelectedEntry()
public AirspaceBuilder.AirspaceBuilderPanel getView()
protected void handleEnableEdit(boolean enable)
protected void handleSelect()
public boolean isEnabled()
public boolean isEnableEdit()
public boolean isResizeNewShapesToViewport()
protected boolean isSelectionEditing()
protected void loadAirspacesFromPath(String path, Collection<Airspace> airspaces)
public void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
public void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
public void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
protected void openFromFile()
protected void openFromPath(String path)
protected void openFromURL()
public void removeEntries(Iterable<? extends AirspaceBuilder.AirspaceEntry> entries)
public void removeEntry(AirspaceBuilder.AirspaceEntry entry)
protected void saveToFile()
public void selectEntry(AirspaceBuilder.AirspaceEntry entry, boolean updateView)
public void setEnabled(boolean enabled)
public void setEnableEdit(boolean enable)
public void setModel(AirspaceBuilder.AirspaceBuilderModel model)
public void setResizeNewShapesToViewport(boolean resize)
protected void setSelectedEntry(AirspaceBuilder.AirspaceEntry entry)
protected void setSelectionEditing(boolean editing)
public void setView(AirspaceBuilder.AirspaceBuilderPanel view)
protected void updateShapeIntersection()
protected void viewSelectionChanged()