cz.cuni.pogamut.shed.widget
Class ShedSenseWidget

Package class diagram package ShedSenseWidget
java.lang.Object
  extended by org.netbeans.api.visual.widget.Widget
      extended by cz.cuni.pogamut.shed.widget.ShedWidget
          extended by cz.cuni.pogamut.shed.widget.ShedVariableWidget
              extended by cz.cuni.pogamut.shed.widget.ShedSenseWidget
All Implemented Interfaces:
IPresentedWidget, Accessible, org.netbeans.api.visual.action.PopupMenuProvider

public class ShedSenseWidget
extends ShedVariableWidget

Widget representing the Sense in the ShedScene.

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.ShedWidget
actionProvider, color, font, height, textOfs, width
 
Constructor Summary
ShedSenseWidget(ShedScene scene, Sense element, Color color)
           
 
Method Summary
static String createDisplayName(Sense sense)
          Create human readable string representing what is Sense doing.
 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.
 
Methods inherited from class cz.cuni.pogamut.shed.widget.ShedVariableWidget
addBreakpoint, calculateClientArea, paintWidget, removeBreakpoint, setActiveIntensity, setMissing, setPresent, setUnused
 
Methods inherited from class cz.cuni.pogamut.shed.widget.ShedWidget
drawString, getDisplayName, getFittingString, getMenuActions, getPopupMenu, getPresenter, getShedScene, setDisplayName, setPresenter, toString
 
Methods inherited from class org.netbeans.api.visual.widget.Widget
addDependency, addChild, addChild, addChild, addChild, addChildren, bringToBack, bringToFront, 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, 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, wait, wait, wait
 

Constructor Detail

ShedSenseWidget

public ShedSenseWidget(ShedScene scene,
                       Sense element,
                       Color color)
Method Detail

createDisplayName

public static String createDisplayName(Sense sense)
Create human readable string representing what is Sense doing.

This is static to be able to call before parent's constructor.

Parameters:
sense - Sense for which to construct the representation.
Returns:
String representing what the sense is doing

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.