cz.cuni.pogamut.shed.widget
Class SlotEnvelope

Package class diagram package SlotEnvelope
java.lang.Object
  extended by org.netbeans.api.visual.widget.Widget
      extended by cz.cuni.pogamut.shed.widget.SlotEnvelope
All Implemented Interfaces:
Accessible

public class SlotEnvelope
extends org.netbeans.api.visual.widget.Widget

Envelope for visual representation element (e.g. drive/choice) with trigger and reference to some other element. The element itself is in the left top corner, the trigger is shown on the right of element and attachment is under the representation of trigger. NOTE: Layout of the right widget has different gap when trigger is empty (gap is 0) and when trigger has some sense in it (gap in ShedWidgetFactory.VERTICAL_GAP. The layout gap is initialized in the con structor and updated by the TriggerPresenter.

Author:
Honza

Nested Class Summary
 
Nested classes/interfaces inherited from class org.netbeans.api.visual.widget.Widget
org.netbeans.api.visual.widget.Widget.Dependency
 
Field Summary
protected  ShedWidget slotWidget
          Widget representing the slot element, e.g. competence element.
 
Constructor Summary
SlotEnvelope(ShedScene scene, ShedWidget slotWidget, ShedTriggerEnvelope triggerEnvelope, ExpandedActionEnvelope expandedActionEnvelope)
          Create slot envelope for some element (e.g. choice or drive).
 
Method Summary
 org.netbeans.api.visual.anchor.Anchor getAnchor()
          Get anchor on the left side of the envelope.
 ExpandedActionEnvelope getExpandedActionEnvelope()
          Get envelope that contains expanded action of element.
 ShedWidget getSlotWidget()
          Get widget representing the element.
 ShedTriggerEnvelope getTriggerEnvelope()
          Get envelope representing the trigger of element.
 
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
 

Field Detail

slotWidget

protected final ShedWidget slotWidget
Widget representing the slot element, e.g. competence element. It displayes the name ect.

Constructor Detail

SlotEnvelope

public SlotEnvelope(ShedScene scene,
                    ShedWidget slotWidget,
                    ShedTriggerEnvelope triggerEnvelope,
                    ExpandedActionEnvelope expandedActionEnvelope)
Create slot envelope for some element (e.g. choice or drive).

Parameters:
scene - Scene the envelope belongs to.
slotWidget - The widget representing the element (e.g. drive or choice)
triggerEnvelope - Trigger of element.
expandedActionEnvelope - Expanded action of element.
Method Detail

getSlotWidget

public ShedWidget getSlotWidget()
Get widget representing the element. In most cases, it is simply widget with name fo element on it.


getTriggerEnvelope

public ShedTriggerEnvelope getTriggerEnvelope()
Get envelope representing the trigger of element.


getExpandedActionEnvelope

public ExpandedActionEnvelope getExpandedActionEnvelope()
Get envelope that contains expanded action of element.


getAnchor

public org.netbeans.api.visual.anchor.Anchor getAnchor()
Get anchor on the left side of the envelope.



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