public abstract class AbstractCheckedOperation extends Object implements CheckedOperation
OPERATION_CONTEXT_LOCATION, OPERATION_LABEL, OPERATION_MENU_LOCATION
Constructor and Description |
---|
AbstractCheckedOperation() |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
createHistory(GraphContainer container)
By default, save the state based on the checked status of the operation,
independent of any currently-selected vertices.
|
protected boolean |
enabled(GraphContainer container) |
boolean |
enabled(List<VertexRef> vertices,
OperationContext context)
By default, call {@link #enabled(GraphContainer)
|
protected boolean |
isChecked(GraphContainer container) |
boolean |
isChecked(List<VertexRef> vertices,
OperationContext context)
By default, call
isChecked(GraphContainer) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
display, execute, getId
applyHistory
protected boolean enabled(GraphContainer container)
protected boolean isChecked(GraphContainer container)
public boolean enabled(List<VertexRef> vertices, OperationContext context)
public boolean isChecked(List<VertexRef> vertices, OperationContext context)
isChecked(GraphContainer)
isChecked
in interface CheckedOperation
public Map<String,String> createHistory(GraphContainer container)
createHistory
in interface HistoryOperation
Copyright © 2021. All rights reserved.