cz.cuni.pogamut.shed.widget
Class ShedChoicesEnvelope

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

public final class ShedChoicesEnvelope
extends AbstractShedEnvelope<SlotEnvelope>

This is an envelope for ShedChoiceEnvelopes, similar to the ShedDrivesEnvelope and ShedTriggerEnvelope.

Author:
Honza H

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
 
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.
protected  void updateChildrenPositions()
          Method called when child widget is added/moved/deleted.
 
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
addChild, addChild, addChild, addChild, addChildren, addDependency, bringToBack, bringToFront, calculateClientArea, convertLocalToScene, convertLocalToScene, convertSceneToLocal, convertSceneToLocal, createActions, equals, getAccessibleContext, getActions, getActions, getBackground, getBorder, getBounds, getChildConstraint, getChildren, getClientArea, getCursor, getCursorAt, getDependencies, getFont, getForeground, getGraphics, getLayout, getLocation, getLookup, getMaximumSize, getMinimumSize, getParentWidget, getPreferredBounds, getPreferredLocation, getPreferredSize, getResourceTable, getScene, getState, getToolTipText, hashCode, isCheckClipping, isEnabled, isHitAt, isOpaque, isPreferredBoundsSet, isRepaintRequiredForRevalidating, isValidated, isVisible, notifyAdded, notifyBackgroundChanged, notifyFontChanged, notifyForegroundChanged, notifyRemoved, notifyStateChanged, paint, paintBackground, paintBorder, paintChildren, paintWidget, removeChild, removeChildren, removeChildren, removeDependency, removeFromParent, repaint, resolveBounds, revalidate, revalidate, setAccessibleContext, setBackground, setBackgroundFromResource, setBorder, setBorder, setCheckClipping, setChildConstraint, setCursor, setEnabled, setFont, setFontFromResource, setForeground, setForegroundFromResource, 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
 

Method Detail

updateChildrenPositions

protected void updateChildrenPositions()
Description copied from class: AbstractShedEnvelope
Method called when child widget is added/moved/deleted. Its job is to make sure that children are correctly positioned. What it does depend on layout of the envelope. In many cases, there is no need to do anything, but e.g. absolute layout would require to manually update position of children. Use Widget.setPreferredLocation(java.awt.Point).

Specified by:
updateChildrenPositions in class AbstractShedEnvelope<SlotEnvelope>

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.