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

java.lang.Objectcz.cuni.pogamut.shed.widget.ShedWidgetFactory
public class ShedWidgetFactory
Factory for creating various shed widgets.
| Field Summary | |
|---|---|
protected static int |
HORIZONTAL_GAP
Horizontal gap between widgets, generally also right
padding of widget envelope |
protected static int |
VERTICAL_GAP
Vertical gap between widgets, generally also bottom
padding of widget envelope |
| Method Summary | |
|---|---|
ShedCreationContainer<AttachmentEnvelope> |
createAttachmentEnvelope(LapPath actionPath,
TriggeredAction action,
LapChain chain)
Create proper attachment widget for the action and return it. |
ShedCreationContainer<ExpandedActionEnvelope> |
createdExpandedActionEnvelope(LapPath actionPath,
TriggeredAction action,
LapChain chain)
Create envelope containing expanded @action. |
ShedCreationContainer<ShedDriveEnvelope> |
createDriveEnvelope(LapPath drivePath,
DriveElement drive)
Create envelope containing fully expanded drive along with all inside widgets and presenters. |
ShedCollapseWidget |
createDriveWidget(LapPath drivePath,
DriveElement drive)
Create drive widget along with its DrivePresenter, only the
widget representing the DriveElement, not its Trigger or TriggeredAction |
ShedCreationContainer<ShedChoiceEnvelope> |
createChoiceEnvelope(LapPath choicePath,
CompetenceElement choice,
org.netbeans.api.visual.anchor.Anchor sourceAnchor,
LapChain competenceChain)
Create envelope with fully expanded choice along with all inside widgets and presenters. |
ShedCollapseWidget |
createChoiceWidget(LapPath choicePath,
CompetenceElement choice)
Create choice widget along with its ChoicePresenter, only the
widget representing the CompetenceElement, not its Trigger
or TriggeredAction |
ShedSenseWidget |
createSenseWidget(LapPath sensePath,
Sense sense,
LapChain parentChain)
Create a widget representing the sense and the presenter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final int HORIZONTAL_GAP
widgets, generally also right
padding of widget envelope
protected static final int VERTICAL_GAP
widgets, generally also bottom
padding of widget envelope
| Method Detail |
|---|
public ShedSenseWidget createSenseWidget(LapPath sensePath,
Sense sense,
LapChain parentChain)
sensePath - Path to the sense.sense - Sense the widget will represent
public ShedCreationContainer<AttachmentEnvelope> createAttachmentEnvelope(LapPath actionPath,
TriggeredAction action,
LapChain chain)
action and return it. The
created attachment is complete (i.e. all references are expanded).
actionPath - Path to the @action, ends with ../A:?action - Action for which to create attachment. Must be part of the
lap tree.chain - Chain of parameters from the root up to but not including
action.
public ShedCollapseWidget createDriveWidget(LapPath drivePath,
DriveElement drive)
DrivePresenter, only the
widget representing the DriveElement, not its Trigger or TriggeredAction
drivePath - Path tot the @drive.drive - drive the widget will represent (will listen on name changes
and others)
DriveElement in the ShedScene.
public ShedCollapseWidget createChoiceWidget(LapPath choicePath,
CompetenceElement choice)
ChoicePresenter, only the
widget representing the CompetenceElement, not its Trigger
or TriggeredAction
choice - drive the widget will represent (will listen on name
changes and others)
DriveElement in the ShedScene.
public ShedCreationContainer<ExpandedActionEnvelope> createdExpandedActionEnvelope(LapPath actionPath,
TriggeredAction action,
LapChain chain)
actionPath - Path to the @action, ends with ../A:?action - Action that will be expandedchain - Chain of parameters up to but not including the action.
public ShedCreationContainer<ShedDriveEnvelope> createDriveEnvelope(LapPath drivePath,
DriveElement drive)
scene - Scene into which the widget belongs to.drive - Drive that will be used to create the envelope and all
elements inside.
public ShedCreationContainer<ShedChoiceEnvelope> createChoiceEnvelope(LapPath choicePath,
CompetenceElement choice,
org.netbeans.api.visual.anchor.Anchor sourceAnchor,
LapChain competenceChain)
choicePath - Path to the @choicechoice - CompetenceElement used to create the expanded
envelopesourceAnchor - Source anchor for ArrowWidget between the
expanded choice widget and its parent.competenceChain - Chain of parameters from root up to incl.
competence.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||