|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectorg.netbeans.api.visual.widget.Widget
org.netbeans.api.visual.widget.Scene
cz.cuni.pogamut.shed.widget.ShedScene
public class ShedScene
Scene that shows the graph representation of lap tree. By
itself it is (nearly) only view. ShedPresenter is responsible for
manipulating the scene.
factory to instantiate this scene.| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.netbeans.api.visual.widget.Scene |
|---|
org.netbeans.api.visual.widget.Scene.SceneListener |
| Nested classes/interfaces inherited from class org.netbeans.api.visual.widget.Widget |
|---|
org.netbeans.api.visual.widget.Widget.Dependency |
| Constructor Summary | |
|---|---|
ShedScene(PoshPlan plan)
Create initial visual configuration and set the presenter. |
|
| Method Summary | |
|---|---|
void |
addArrow(org.netbeans.api.visual.anchor.Anchor sourceAnchor,
org.netbeans.api.visual.anchor.Anchor targetAnchor)
IMPORTANT: I can't validate, until the parent is added to the scene. |
void |
addArrows(Set<ArrowWidget> arrows)
|
Set<ArrowWidget> |
findArrows(org.netbeans.api.visual.anchor.Anchor sourceAnchor,
org.netbeans.api.visual.anchor.Anchor targetAnchor)
Find all arrows in the connectionLayer that have specified sourceAnchor and targetAnchor. |
List<org.netbeans.api.visual.widget.Widget> |
findArrows(org.netbeans.api.visual.widget.Widget arrowEndpointWidget)
Find all arrows in the scene that have one of anchors attached to the |
ShedWidget |
findShedWidget(Point scenePoint)
Find the ShedWidget int the widget layer that contains the passed
point. |
ShedDrivesEnvelope |
getDrivesEnvelope()
|
ShedTriggerEnvelope |
getGoalEnvelope()
Get envelope for the goal of the drive collection. |
ShedPresenter |
getPresenter()
Get presenter used by this scene. |
ShedWidgetFactory |
getWidgetFactory()
|
protected void |
paintChildren()
|
void |
removeArrows(Set<ArrowWidget> arrowsToRemove)
Remove all @arrowsToRemove from the connection layer. |
void |
removeBranch(org.netbeans.api.visual.widget.Widget removedBranchRoot)
Method for removing branches from the shed scene. |
void |
update()
Method that revalidates all widgets in @widgetLayer and reroutes all arrows. |
| Methods inherited from class org.netbeans.api.visual.widget.Scene |
|---|
addSceneListener, convertSceneToView, convertSceneToView, convertViewToScene, createBirdView, createSatelliteView, createView, createWidgetHoverAction, getActiveTool, getDefaultFont, getFocusedWidget, getGraphics, getInputBindings, getKeyEventProcessingType, getLookFeel, getMaximumBounds, getPriorActions, getResourceTable, getSceneAnimator, getView, getZoomFactor, isRepaintRequiredForRevalidating, isValidated, paint, removeSceneListener, setActiveTool, setFocusedWidget, setKeyEventProcessingType, setLookFeel, setMaximumBounds, setResourceTable, setZoomFactor, validate, validate |
| 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, getChildConstraint, getChildren, getLayout, getLocation, getLookup, getMaximumSize, getMinimumSize, getParentWidget, getPreferredBounds, getPreferredLocation, getPreferredSize, getScene, getState, getToolTipText, hashCode, isEnabled, isHitAt, isCheckClipping, isOpaque, isPreferredBoundsSet, isVisible, notifyAdded, notifyBackgroundChanged, notifyFontChanged, notifyForegroundChanged, notifyRemoved, notifyStateChanged, paint, paintBackground, paintBorder, 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, setState, setToolTipText, setVisible, updateResources |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ShedScene(PoshPlan plan)
plan - initial.| Method Detail |
|---|
public ShedPresenter getPresenter()
public ShedTriggerEnvelope getGoalEnvelope()
public ShedDrivesEnvelope getDrivesEnvelope()
public final void removeBranch(org.netbeans.api.visual.widget.Widget removedBranchRoot)
removedBranchRoot - public List<org.netbeans.api.visual.widget.Widget> findArrows(org.netbeans.api.visual.widget.Widget arrowEndpointWidget)
arrowEndpointWidget - Widget that is used for anchor of each returned arrow.
public ShedWidget findShedWidget(Point scenePoint)
ShedWidget int the widget layer that contains the passed
point.
scenePoint - Point in the scene coordinated that we are looking for.
public final void addArrow(org.netbeans.api.visual.anchor.Anchor sourceAnchor,
org.netbeans.api.visual.anchor.Anchor targetAnchor)
sourceAnchor - targetAnchor - public void addArrows(Set<ArrowWidget> arrows)
public Set<ArrowWidget> findArrows(org.netbeans.api.visual.anchor.Anchor sourceAnchor,
org.netbeans.api.visual.anchor.Anchor targetAnchor)
sourceAnchor - Source anchor of arrows we are looking for.targetAnchor - Target anchor of arrows we are looking for.
public void removeArrows(Set<ArrowWidget> arrowsToRemove)
arrowsToRemove - public void update()
protected void paintChildren()
paintChildren in class org.netbeans.api.visual.widget.Widgetpublic ShedWidgetFactory getWidgetFactory()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||