public class CancellationSetModel extends java.lang.Object implements GraphSelectionListener
Modifier and Type | Field and Description |
---|---|
static java.awt.Color |
CANCELLATION_SET_MEMBER_FOREGROUND |
static java.awt.Color |
CANCELLATION_SET_TRIGGER_BACKGROUND |
static int |
NO_VALID_SELECTION_FOR_SET_MEMBERSHIP |
static java.awt.Color |
NOT_CANCELLATION_SET_MEMBER_FOREGROUND |
static int |
SET_CHANGED |
static int |
VALID_SELECTION_FOR_SET_MEMBERSHIP |
Constructor and Description |
---|
CancellationSetModel(NetGraph graph) |
public static final int SET_CHANGED
public static final int NO_VALID_SELECTION_FOR_SET_MEMBERSHIP
public static final int VALID_SELECTION_FOR_SET_MEMBERSHIP
public static final java.awt.Color CANCELLATION_SET_TRIGGER_BACKGROUND
public static final java.awt.Color CANCELLATION_SET_MEMBER_FOREGROUND
public static final java.awt.Color NOT_CANCELLATION_SET_MEMBER_FOREGROUND
public CancellationSetModel(NetGraph graph)
public void setGraph(NetGraph graph)
public void subscribe(CancellationSetModelListener subscriber)
public void unsubscribe(CancellationSetModelListener subscriber)
public void refresh()
public void publishNotification(int notificationType)
public void changeCancellationSet(YAWLTask triggeringTask)
public void setCurrentCancellationSet(CancellationSet cancellationSet)
public CancellationSet getCurrentCancellationSet()
public boolean addCellToCancellationSet(YAWLCell cell)
public boolean removeCellFromCancellationSet(YAWLCell cell)
public YAWLTask getTriggeringTask()
public java.awt.Color getTriggeringTaskBackground()
public void setTriggeringTaskBackground(java.awt.Color bg)
public void valueChanged(GraphSelectionEvent event)
GraphSelectionListener
valueChanged
in interface GraphSelectionListener
event
- the event that characterizes the change.public boolean hasValidCellSelected()
public boolean hasValidSelectedCellsForInclusion()
public boolean hasValidSelectedCellsForExclusion()
public java.lang.Object[] getValidSelectedCellsForInclusion()
public java.lang.Object[] getValidSelectedCellsForExclusion()