cz.cuni.pogamut.shed.widget
Class ShedTriggerEnvelope

Package class diagram package ShedTriggerEnvelope
java.lang.Object
  extended by org.netbeans.api.visual.widget.Widget
      extended by cz.cuni.pogamut.shed.widget.AbstractShedEnvelope<ShedSenseWidget>
          extended by cz.cuni.pogamut.shed.widget.ShedTriggerEnvelope
All Implemented Interfaces:
IPresentedWidget, IShedEnvelope<ShedSenseWidget>, Accessible

public class ShedTriggerEnvelope
extends AbstractShedEnvelope<ShedSenseWidget>

This envelope is containing the trigger senses. It can add/move/delete ShedSenseWidget.

The origin of the envelope ([0,0]) is at left top corner, its height is ShedWidget.height and its width is width of its children + ShedWidgetFactory.HORIZONTAL_GAP between each widget.

Author:
HonzaH

Nested Class Summary
 
Nested classes/interfaces inherited from class org.netbeans.api.visual.widget.Widget
org.netbeans.api.visual.widget.Widget.Dependency
 
Field Summary
 
Fields inherited from class cz.cuni.pogamut.shed.widget.AbstractShedEnvelope
scene
 
Constructor Summary
ShedTriggerEnvelope(ShedScene scene)
          Create envelope for trigger senses.
ShedTriggerEnvelope(ShedScene scene, org.netbeans.api.visual.anchor.Anchor anchor)
          Create envelope for the trigger senses.
 
Method Summary
 org.netbeans.api.visual.anchor.Anchor getCommonAnchor()
          Get anchor of the widget that is used as a common source anchor for the ArrowWidget, the target anchors will be provided by its children.
 void updateChildrenPositions()
           
 
Methods inherited from class cz.cuni.pogamut.shed.widget.AbstractShedEnvelope
add, add, getChild, getPresenter, move, numberOfChildren, remove, setPresenter
 
Methods inherited from class org.netbeans.api.visual.widget.Widget
addDependency, addChild, addChild, addChild, addChild, addChildren, bringToBack, bringToFront, calculateClientArea, convertLocalToScene, convertLocalToScene, convertSceneToLocal, convertSceneToLocal, createActions, equals, getAccessibleContext, getActions, getActions, getBackground, getBorder, getBounds, getClientArea, getCursor, getCursorAt, getDependencies, getFont, getForeground, getGraphics, getChildConstraint, getChildren, getLayout, getLocation, getLookup, getMaximumSize, getMinimumSize, getParentWidget, getPreferredBounds, getPreferredLocation, getPreferredSize, getResourceTable, getScene, getState, getToolTipText, hashCode, isEnabled, isHitAt, isCheckClipping, isOpaque, isPreferredBoundsSet, isRepaintRequiredForRevalidating, isValidated, isVisible, notifyAdded, notifyBackgroundChanged, notifyFontChanged, notifyForegroundChanged, notifyRemoved, notifyStateChanged, paint, paintBackground, paintBorder, paintChildren, paintWidget, removeDependency, removeFromParent, removeChild, removeChildren, removeChildren, repaint, resolveBounds, revalidate, revalidate, setAccessibleContext, setBackground, setBackgroundFromResource, setBorder, setBorder, setCursor, setEnabled, setFont, setFontFromResource, setForeground, setForegroundFromResource, setCheckClipping, setChildConstraint, setLayout, setMaximumSize, setMinimumSize, setOpaque, setPreferredBounds, setPreferredLocation, setPreferredSize, setResourceTable, setState, setToolTipText, setVisible, updateResources
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShedTriggerEnvelope

public ShedTriggerEnvelope(ShedScene scene,
                           org.netbeans.api.visual.anchor.Anchor anchor)
Create envelope for the trigger senses. The @anchor is can used as source anchor for ArrowWidgets, through getCommonAnchor().

Parameters:
scene -
anchor -

ShedTriggerEnvelope

public ShedTriggerEnvelope(ShedScene scene)
Create envelope for trigger senses.

Parameters:
scene -
Method Detail

updateChildrenPositions

public void updateChildrenPositions()
Specified by:
updateChildrenPositions in class AbstractShedEnvelope<ShedSenseWidget>

getCommonAnchor

public org.netbeans.api.visual.anchor.Anchor getCommonAnchor()
Get anchor of the widget that is used as a common source anchor for the ArrowWidget, the target anchors will be provided by its children. Related widget must be the widget of the anchor.

Returns:
Common source anchor


Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.