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:
IShedEnvelope<ShedSenseWidget>, Accessible
Direct Known Subclasses:
ShedDriveEnvelope, ShedChoiceEnvelope

public abstract class SlotEnvelope
extends org.netbeans.api.visual.widget.Widget
implements IShedEnvelope<ShedSenseWidget>

Envelope for visual representation of an slot element with trigger and attachment action (=DriveElement, CompetenceElement and DriveElement).

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
protected  ShedWidget slotWidget
          Widget representing the slot element, e.g. competence element.
 
Constructor Summary
SlotEnvelope(ShedScene scene, ShedWidget slotWidget, ShedTriggerEnvelope triggerEnvelope, ExpandedActionEnvelope expandedActionEnvelope)
           
 
Method Summary
 void add(ShedSenseWidget widget, int position)
          Add widget to the envelope at the specified position.
 ExpandedActionEnvelope getExpandedActionEnvelope()
           
 ShedWidget getSlotWidget()
           
 ShedTriggerEnvelope getTriggerEnvelope()
           
 void move(int absolutePosition, ShedSenseWidget widget)
          Move the widget relative to the other widgets.
 void remove(ShedSenseWidget widget)
          Remove widget from the envelope.
 
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)
Method Detail

getSlotWidget

public ShedWidget getSlotWidget()

getTriggerEnvelope

public ShedTriggerEnvelope getTriggerEnvelope()

getExpandedActionEnvelope

public ExpandedActionEnvelope getExpandedActionEnvelope()

add

public final void add(ShedSenseWidget widget,
                      int position)
Description copied from interface: IShedEnvelope
Add widget to the envelope at the specified position.

Specified by:
add in interface IShedEnvelope<ShedSenseWidget>
Parameters:
widget - widget to add
position - where to put widget

move

public final void move(int absolutePosition,
                       ShedSenseWidget widget)
Description copied from interface: IShedEnvelope
Move the widget relative to the other widgets.

Specified by:
move in interface IShedEnvelope<ShedSenseWidget>
widget - widget to move

remove

public final void remove(ShedSenseWidget widget)
Description copied from interface: IShedEnvelope
Remove widget from the envelope.

Specified by:
remove in interface IShedEnvelope<ShedSenseWidget>
Parameters:
widget - widget to remove from the envelope.


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