public abstract class GraphLayoutAction extends FlowApplicationAction
TAG_ACCELERATOR, TAG_MNEMONIC, TAG_NAME, TAG_TOOLTIPchangeSupport, enabledACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON| Constructor and Description |
|---|
GraphLayoutAction(FlowApplication application,
ImageIcon icon,
GraphLayout layout)
Cria a ação.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doLayout(Workspace workspace)
Aplica o layout no fluxo corrente.
|
protected GraphLayout |
getLayout()
Retorna o layout da ação.
|
void |
handleActionPerformed(ActionEvent e)
Método que implementa a lógica da ação.
|
protected abstract boolean |
usePreview()
Indica se antes da ação deve ser mostrada uma pré-visualização do layout.
|
void |
wasChangedWorkspace(Graph graph) |
void |
wasElementCreated(Graph graph,
GraphElement element) |
void |
wasElementRemoved(Graph graph,
GraphElement element) |
void |
wasLinkAnchored(Graph graph,
GraphLink link,
GraphFileDescriptor fileDescriptor) |
void |
wasLinkUnanchored(Graph graph,
GraphLink link,
GraphFileDescriptor fileDescriptor) |
wasElementDragged, wasElementDragged, wasElementDropped, wasElementParametrized, wasElementSelected, wasLinkIncreased, wasLinkStatusChanged, wasNodeResized, wasParameterSetEnabled, wasParameterSetVisible, wasResetedactionPerformed, getClassString, getDefaultIcon, getString, getStrokeFromTextgetApplicationaddPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledpublic GraphLayoutAction(FlowApplication application, ImageIcon icon, GraphLayout layout)
application - A aplicação construtura de fluxos.icon - O ícone da ação.layout - Tipo de layout a ser aplicado.public void handleActionPerformed(ActionEvent e)
handleActionPerformed in class AbstractSimpleApplicationAction<FlowApplication>e - evento que gerou a ação.protected void doLayout(Workspace workspace)
workspace - workspace com o fluxo.protected abstract boolean usePreview()
public void wasChangedWorkspace(Graph graph)
wasChangedWorkspace in interface GraphListenerwasChangedWorkspace in class FlowApplicationActionpublic void wasElementCreated(Graph graph, GraphElement element)
wasElementCreated in interface GraphListenerwasElementCreated in class FlowApplicationActionpublic void wasElementRemoved(Graph graph, GraphElement element)
wasElementRemoved in interface GraphListenerwasElementRemoved in class FlowApplicationActionpublic void wasLinkAnchored(Graph graph, GraphLink link, GraphFileDescriptor fileDescriptor)
wasLinkAnchored in interface GraphListenerwasLinkAnchored in class FlowApplicationActionpublic void wasLinkUnanchored(Graph graph, GraphLink link, GraphFileDescriptor fileDescriptor)
wasLinkUnanchored in interface GraphListenerwasLinkUnanchored in class FlowApplicationActionprotected GraphLayout getLayout()
Copyright © 2020. All rights reserved.