protected static class ExtrudedPolygonBuilder.PolygonBuilderController extends WWObjectImpl implements ActionListener, MouseListener
Modifier and Type | Field and Description |
---|---|
protected ExtrudedPolygonBuilder.AppFrame |
app |
protected ExtrudedPolygonEditor |
editor |
protected boolean |
enabled |
protected boolean |
enableEdit |
protected ExtrudedPolygonBuilder.PolygonBuilderModel |
model |
protected boolean |
resizeNewShapes |
protected ExtrudedPolygonBuilder.PolygonEntry |
selectedEntry |
protected ExtrudedPolygonBuilder.PolygonBuilderPanel |
view |
Constructor and Description |
---|
PolygonBuilderController(ExtrudedPolygonBuilder.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 ExtrudedPolygonBuilder.AppFrame app
protected ExtrudedPolygonEditor editor
protected boolean enabled
protected boolean enableEdit
protected ExtrudedPolygonBuilder.PolygonBuilderModel model
protected boolean resizeNewShapes
protected ExtrudedPolygonBuilder.PolygonEntry selectedEntry
protected ExtrudedPolygonBuilder.PolygonBuilderPanel view
public PolygonBuilderController(ExtrudedPolygonBuilder.AppFrame app)
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public void addEntry(ExtrudedPolygonBuilder.PolygonEntry entry)
public void createNewEntry(ExtrudedPolygonBuilder.ExtrudedPolygonFactory factory)
public ExtrudedPolygonBuilder.AppFrame getApp()
protected ExtrudedPolygonBuilder.PolygonEntry[] getEntriesFor(int[] indices)
protected ExtrudedPolygonBuilder.PolygonEntry getEntryFor(ExtrudedPolygon polygon)
public ExtrudedPolygonBuilder.PolygonBuilderModel getModel()
protected ExtrudedPolygonBuilder.PolygonEntry[] getSelectedEntries()
public ExtrudedPolygonBuilder.PolygonEntry getSelectedEntry()
public ExtrudedPolygonBuilder.PolygonBuilderPanel getView()
protected void handleEnableEdit(boolean enable)
protected void handleSelect()
public boolean isEnabled()
public boolean isEnableEdit()
public boolean isResizeNewShapesToViewport()
protected boolean isSelectionEditing()
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
public void removeEntries(Iterable<? extends ExtrudedPolygonBuilder.PolygonEntry> entries)
public void removeEntry(ExtrudedPolygonBuilder.PolygonEntry entry)
public void selectEntry(ExtrudedPolygonBuilder.PolygonEntry entry, boolean updateView)
public void setEnabled(boolean enabled)
public void setEnableEdit(boolean enable)
public void setModel(ExtrudedPolygonBuilder.PolygonBuilderModel model)
public void setResizeNewShapesToViewport(boolean resize)
protected void setSelectedEntry(ExtrudedPolygonBuilder.PolygonEntry entry)
protected void setSelectionEditing(boolean editing)
public void setView(ExtrudedPolygonBuilder.PolygonBuilderPanel view)
protected void viewSelectionChanged()