|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent com.yworks.yfiles.bpmn.view.BpmnPalette
A component that represents a palette of BPMN nodes or edges and
allows to drag them into a Graph2DView
.
Nested Class Summary |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
BpmnPalette(Graph2DView view)
Initializes a new BpmnPalette .
|
Method Summary | |
protected void |
addActivities(List realizers)
Adds templates for BPMN activities to the list of available BPMN templates. |
protected void |
addArtifacts(List realizers)
Adds templates for BPMN artifacts to the list of available BPMN templates. |
protected void |
addChoreographies(List realizers)
Adds templates for BPMN choreographies to the list of available BPMN templates. |
protected void |
addConversations(List realizers)
Adds templates for BPMN conversations to the list of available BPMN templates. |
protected void |
addDefaultTemplates(List realizers)
Adds default BPMN templates to the palette list. |
protected void |
addEvents(List realizers)
Adds templates for BPMN events to the list of available BPMN templates. |
protected void |
addGateways(List realizers)
Adds templates for BPMN gateways to the list of available BPMN templates. |
protected void |
addPools(List realizers)
Adds templates for BPMN pools to the list of available BPMN templates. |
protected void |
addRelations(List realizers)
Adds templates for BPMN relations to the list of available BPMN templates. |
void |
addTemplate(NodeRealizer realizer)
Appends the specified template to the palette. |
protected void |
initializeDefaultRealizers(Graph2DView view)
Initializes default realizers for group and folder nodes for graph associated with the specified graph view. |
boolean |
isEventPortCreationEnabled()
Determines whether or not automatic creation of attached events is enabled. |
boolean |
isSnappingEnabled()
Returns whether or not snapping is enabled when creating nodes via drag and drop. |
void |
removeTemplate(NodeRealizer realizer)
Removes the specified template from the palette. |
void |
setEventPortCreationEnabled(boolean enabled)
Specifies whether or not automatic creation of attached events is enabled. |
void |
setSnappingEnabled(boolean enabled)
Specifies whether or not nodes created via drag and drop should snap to other graph elements or grid points. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public BpmnPalette(Graph2DView view)
BpmnPalette
.
The following node and edge realizers will be available by default:
view
- the Graph2DView
onto which elements from this
palette may be dropped.Method Detail |
public boolean isSnappingEnabled()
By default, this feature is enabled.
true if snapping is enabled; false
otherwise.- See Also:
setSnappingEnabled(boolean)
public void setSnappingEnabled(boolean enabled)
By default, this feature is enabled.
enabled
- if true
snapping is enabled.isSnappingEnabled()
public boolean isEventPortCreationEnabled()
By default, this feature is enabled.
true
if events are automatically attached to activity
nodes; false
otherwise.EventPortSupport.convertToPort(y.view.NodeRealizer, y.view.NodeRealizer, y.geom.YPoint)
,
setEventPortCreationEnabled(boolean)
public void setEventPortCreationEnabled(boolean enabled)
By default, this feature is enabled.
enabled
- if true
events are automatically attached to
activity nodes.EventPortSupport.convertToPort(y.view.NodeRealizer, y.view.NodeRealizer, y.geom.YPoint)
,
isEventPortCreationEnabled()
protected void initializeDefaultRealizers(Graph2DView view)
view
- The Graph2DView
instance associated with
this BpmnPalette
.public void addTemplate(NodeRealizer realizer)
realizer
- The template node realizer that is added to the palette.public void removeTemplate(NodeRealizer realizer)
realizer
- The template node realizer that is removed from the palette.protected void addDefaultTemplates(List realizers)
This method will call the following methods:
addEvents(java.util.List)
addGateways(java.util.List)
addConversations(java.util.List)
(java.util.List)} addArtifacts(java.util.List)
addActivities(java.util.List)
addChoreographies(java.util.List)
addPools(java.util.List)
addRelations(java.util.List)
realizers
- The list to which the template realizers are added.protected void addChoreographies(List realizers)
addDefaultTemplates(java.util.List)
.
realizers
- The list to which the template realizers are added.protected void addPools(List realizers)
addDefaultTemplates(java.util.List)
.
realizers
- The list to which the template realizers are added.protected void addRelations(List realizers)
addDefaultTemplates(java.util.List)
.
realizers
- The list to which the template realizers are added.protected void addArtifacts(List realizers)
addDefaultTemplates(java.util.List)
.
realizers
- The list to which the template realizers are added.protected void addEvents(List realizers)
addDefaultTemplates(java.util.List)
.
realizers
- The list to which the template realizers are added.protected void addGateways(List realizers)
addDefaultTemplates(java.util.List)
.
realizers
- The list to which the template realizers are added.protected void addActivities(List realizers)
addDefaultTemplates(java.util.List)
.
realizers
- The list to which the template realizers are added.protected void addConversations(List realizers)
addDefaultTemplates(java.util.List)
.
realizers
- The list to which the template realizers are added.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |