cz.cuni.pogamut.shed.widget
Class ShedVariableWidget

Package class diagram package ShedVariableWidget
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
All Implemented Interfaces:
IPresentedWidget, Accessible, org.netbeans.api.visual.action.PopupMenuProvider
Direct Known Subclasses:
ShedCollapseWidget, ShedSenseWidget

public class ShedVariableWidget
extends ShedWidget

This class represents a node in the YAPOSH plan that should show title text on the first line and some variables on rest of lines.

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
 
Fields inherited from class cz.cuni.pogamut.shed.widget.ShedWidget
actionProvider, color, font, height, textOfs, width
 
Constructor Summary
ShedVariableWidget(ShedScene scene, String title, Color color)
           
 
Method Summary
 void addBreakpoint(boolean single)
          Show strip at the right side of the widget
protected  Rectangle calculateClientArea()
           
protected  void paintWidget()
           
 void removeBreakpoint()
           
 void setActiveIntensity(int percent)
           
 void setMissing(List<String> newPresent)
           
 void setPresent(List<String> newPresent)
           
 void setUnused(List<String> newPresent)
           
 
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

ShedVariableWidget

public ShedVariableWidget(ShedScene scene,
                          String title,
                          Color color)
Method Detail

setPresent

public final void setPresent(List<String> newPresent)

setMissing

public final void setMissing(List<String> newPresent)

setUnused

public final void setUnused(List<String> newPresent)

calculateClientArea

protected Rectangle calculateClientArea()
Overrides:
calculateClientArea in class org.netbeans.api.visual.widget.Widget

setActiveIntensity

public void setActiveIntensity(int percent)

paintWidget

protected void paintWidget()
Overrides:
paintWidget in class ShedWidget

addBreakpoint

public void addBreakpoint(boolean single)
Show strip at the right side of the widget

Since:
What color, dark red or light red

removeBreakpoint

public void removeBreakpoint()


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