|
||||||||||
| 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<SlotEnvelope> |
createDriveEnvelope(LapPath drivePath,
DriveElement drive)
Create envelope containing fully expanded drive along with all inside widgets and presenters. |
ShedCreationContainer<SlotEnvelope> |
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. |
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 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<SlotEnvelope> 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<SlotEnvelope> 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 | |||||||||