com.yworks.yfiles.bpmn.view
Class BpmnView

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byy.view.Graph2DView
                  extended bycom.yworks.yfiles.bpmn.view.BpmnView
All Implemented Interfaces:
AnimationListener, ImageObserver, MenuContainer, ScrollPaneConstants, Serializable, View, View2DConstants, ViewContainer

public class BpmnView
extends Graph2DView

A component that visualizes BPMN diagrams.

See Also:
Serialized Form
 

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 y.view.Graph2DView
BG_LAYER, CONTENT_POLICY_BACKGROUND_DRAWABLES, CONTENT_POLICY_FOREGROUND_DRAWABLES, CONTENT_POLICY_GRAPH, CONTENT_POLICY_GRAPH_DRAWABLES, FG_LAYER, LAYER_MODE, MOVE_SELECTION_MODE, NORMAL_MODE, SELECTION_BOX_MODE, UNBUFFERED_MODE
 
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 javax.swing.ScrollPaneConstants
COLUMN_HEADER, HORIZONTAL_SCROLLBAR, HORIZONTAL_SCROLLBAR_ALWAYS, HORIZONTAL_SCROLLBAR_AS_NEEDED, HORIZONTAL_SCROLLBAR_NEVER, HORIZONTAL_SCROLLBAR_POLICY, LOWER_LEADING_CORNER, LOWER_LEFT_CORNER, LOWER_RIGHT_CORNER, LOWER_TRAILING_CORNER, ROW_HEADER, UPPER_LEADING_CORNER, UPPER_LEFT_CORNER, UPPER_RIGHT_CORNER, UPPER_TRAILING_CORNER, VERTICAL_SCROLLBAR, VERTICAL_SCROLLBAR_ALWAYS, VERTICAL_SCROLLBAR_AS_NEEDED, VERTICAL_SCROLLBAR_NEVER, VERTICAL_SCROLLBAR_POLICY, VIEWPORT
 
Fields inherited from interface y.view.View2DConstants
GRID_CROSS, GRID_LINES, GRID_NONE, GRID_POINTS
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
BpmnView()
          Initializes a new BpmnView.
 
Method Summary
protected  String getLocalized(String key)
          Returns the localized text for the specified key.
 boolean isGridEnabled()
          Returns whether or not this view uses grid mode.
 boolean isOrthogonalEdgeCreationEnabled()
          Returns whether or not new edges created in this view's graph will have orthogonal edge paths.
 boolean isSnappingEnabled()
          Returns whether or not snapping is enabled.
protected  void registerViewActions()
          Registers BPMN specific view actions.
protected  void registerViewListeners()
          Registers and configures BPMN specific listeners.
protected  void registerViewModes()
          Registers and configures BPMN specific view modes.
 void setGridEnabled(boolean enabled)
          Specifies whether or not this view has to use grid mode.
 void setOrthogonalEdgeCreationEnabled(boolean enabled)
          Specifies whether or not new edges created in this view's graph will have orthogonal edge paths.
 void setSnappingEnabled(boolean enabled)
          Specifies whether or not snapping is enabled.
 
Methods inherited from class y.view.Graph2DView
addBackgroundDrawable, addDrawable, addViewChangeListener, addViewMode, adjustScrollBarVisibility, animationPerformed, applyLayout, applyLayoutAnimated, calculateContentBounds, closeLabelEditor, createGlassPane, createGraphicsContext, createToolTip, fitContent, fitContent, fitRectangle, fitWorldRect, focusView, getBackgroundDrawables, getBackgroundRenderer, getCanvasComponent, getCanvasSize, getCenter, getComponent, getContentPolicy, getCurrentView, getDrawables, getFitContentOnResize, getFrame, getGlassPane, getGraph2D, getGraph2DRenderer, getGridColor, getGridMode, getGridResolution, getGridType, getHitInfoFactory, getHorizontalScrollBarPolicy, getImage, getPaintDetailThreshold, getRenderingHints, getVerticalScrollBarPolicy, getViewControl, getViewCursor, getViewModes, getViewPoint, getViewPoint2D, getViewSize, getVisibleRect, getVisibleRect2D, getWorldRect, getWorldRect2D, getZoom, isAntialiasedPainting, isFocusTraversable, isGridVisible, isInputSuppressed, isOptimizedDrawingEnabled, isValidateRoot, openLabelEditor, openLabelEditor, openLabelEditor, openLabelEditor, openLabelEditorCentered, openLabelEditorCentered, paintSelectionBox, paintVisibleContent, print, registerDefaultViewActions, registerKeyboardAction, registerKeyboardAction, removeBackgroundDrawable, removeDrawable, removeViewMode, requestFocus, setAntialiasedPainting, setBackgroundRenderer, setBounds, setCenter, setContentPolicy, setDrawingMode, setFitContentOnResize, setGraph2D, setGraph2DRenderer, setGridColor, setGridMode, setGridResolution, setGridType, setGridVisible, setHitInfoFactory, setHorizontalScrollBarPolicy, setInputSuppressed, setPaintDetailThreshold, setRenderingHints, setRenderingHints, setScrollBarPolicy, setSelectionBoxBounds, setSelectionBoxBounds2D, setToolTipText, setVerticalScrollBarPolicy, setViewControl, setViewCursor, setViewPoint, setViewPoint2D, setWorldRect, setWorldRect2D, setZoom, showPopup, toViewCoordX, toViewCoordY, toWorldCoordX, toWorldCoordY, unregisterKeyboardAction, updateView, updateView, updateView, updateWorldRect, zoomToArea
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, update, updateUI
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BpmnView

public BpmnView()
Initializes a new BpmnView. Calls

Method Detail

isOrthogonalEdgeCreationEnabled

public boolean isOrthogonalEdgeCreationEnabled()
Returns whether or not new edges created in this view's graph will have orthogonal edge paths. If this feature is enabled, paths of new edges will have only horizontal and vertical path segments.

By default, this feature is enabled.

Returns:
true if new edge have to be orthogonal; false otherwise.
See Also:
setOrthogonalEdgeCreationEnabled(boolean)

setOrthogonalEdgeCreationEnabled

public void setOrthogonalEdgeCreationEnabled(boolean enabled)
Specifies whether or not new edges created in this view's graph will have orthogonal edge paths. If this feature is enabled, paths of new edges will have only horizontal and vertical path segments.

By default, this feature is enabled.

Parameters:
enabled - if true new edge have to be orthogonal.
See Also:
isOrthogonalEdgeCreationEnabled()

isGridEnabled

public boolean isGridEnabled()
Returns whether or not this view uses grid mode.

By default, this feature is disabled.

Returns:
true if this view uses grid mode; false otherwise.
See Also:
setGridEnabled(boolean)

setGridEnabled

public void setGridEnabled(boolean enabled)
Specifies whether or not this view has to use grid mode.

By default, this feature is disabled.

Parameters:
enabled - if true this view uses grid mode.
See Also:
isGridEnabled()

isSnappingEnabled

public boolean isSnappingEnabled()
Returns whether or not snapping is enabled.

By default, this feature is enabled.

Returns:
true if snapping is enabled; false otherwise.
See Also:
setSnappingEnabled(boolean)

setSnappingEnabled

public void setSnappingEnabled(boolean enabled)
Specifies whether or not snapping is enabled.

By default, this feature is enabled.

Parameters:
enabled - if true snapping is enabled.
See Also:
isSnappingEnabled()

registerViewActions

protected void registerViewActions()
Registers BPMN specific view actions. Called from BpmnView().


registerViewModes

protected void registerViewModes()
Registers and configures BPMN specific view modes. Called from BpmnView().


registerViewListeners

protected void registerViewListeners()
Registers and configures BPMN specific listeners. Called from BpmnView().


getLocalized

protected String getLocalized(String key)
Returns the localized text for the specified key.

Parameters:
key - a unique identifier for localized text.
Returns:
the localized text for the specified key.


© Copyright 2010-2014,
yWorks GmbH.
All rights reserved.