本文整理汇总了Java中org.netbeans.api.visual.widget.ConnectionWidget.removeFromParent方法的典型用法代码示例。如果您正苦于以下问题:Java ConnectionWidget.removeFromParent方法的具体用法?Java ConnectionWidget.removeFromParent怎么用?Java ConnectionWidget.removeFromParent使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.netbeans.api.visual.widget.ConnectionWidget
的用法示例。
在下文中一共展示了ConnectionWidget.removeFromParent方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: manageTargetWidget
import org.netbeans.api.visual.widget.ConnectionWidget; //导入方法依赖的package包/类
private void manageTargetWidget(ConnectionWidget connectionWidget, CaratteristicheWidgetMergeComposition caratteristicheWidgetMergeComposition, LayerWidget mainLayer) {
AbstractCaratteristicheWidgetComposition caratteristicheWidgetCompositionTarget = (AbstractCaratteristicheWidgetComposition) mainLayer.getChildConstraint(connectionWidget.getTargetAnchor().getRelatedWidget());
MutableMappingTask mutableMappingTaskSource = caratteristicheWidgetMergeComposition.getMutableMappingTask();
MutableMappingTask mutableMappingTaskTarget = caratteristicheWidgetCompositionTarget.getMutableMappingTask();
mutableMappingTaskSource.getMutableMappingTasks().remove(mutableMappingTaskTarget);
mutableMappingTaskTarget.getMutableMappingTasks().remove(mutableMappingTaskSource);
caratteristicheWidgetCompositionTarget.removeSourceScenario((ICompositionWidget) connectionWidget.getTargetAnchor().getRelatedWidget());
caratteristicheWidgetMergeComposition.getTargetList().remove((ICompositionWidget) connectionWidget.getTargetAnchor().getRelatedWidget());
connectionWidget.removeFromParent();
}
示例2: manageSourceWidget
import org.netbeans.api.visual.widget.ConnectionWidget; //导入方法依赖的package包/类
private void manageSourceWidget(ConnectionWidget connectionWidget, CaratteristicheWidgetMergeComposition caratteristicheWidgetMergeCompositionTarget, LayerWidget mainLayer) {
AbstractCaratteristicheWidgetComposition caratteristicheWidgetCompositionSource = (AbstractCaratteristicheWidgetComposition) mainLayer.getChildConstraint(connectionWidget.getTargetAnchor().getRelatedWidget());
MutableMappingTask mutableMappingTaskSource = caratteristicheWidgetCompositionSource.getMutableMappingTask();
MutableMappingTask mutableMappingTaskTarget = caratteristicheWidgetMergeCompositionTarget.getMutableMappingTask();
mutableMappingTaskSource.getMutableMappingTasks().remove(mutableMappingTaskTarget);
mutableMappingTaskTarget.getMutableMappingTasks().remove(mutableMappingTaskSource);
caratteristicheWidgetMergeCompositionTarget.removeSourceScenario((ICompositionWidget) connectionWidget.getTargetAnchor().getRelatedWidget());
caratteristicheWidgetCompositionSource.getTargetList().remove((ICompositionWidget) connectionWidget.getTargetAnchor().getRelatedWidget());
connectionWidget.removeFromParent();
}
示例3: manageTargetWidget
import org.netbeans.api.visual.widget.ConnectionWidget; //导入方法依赖的package包/类
private void manageTargetWidget(ConnectionWidget connectionWidget, CaratteristicheWidgetChainComposition caratteristicheWidgetChainComposition, LayerWidget mainLayer) {
AbstractCaratteristicheWidgetComposition caratteristicheWidgetCompositionTarget = (AbstractCaratteristicheWidgetComposition) mainLayer.getChildConstraint(connectionWidget.getTargetAnchor().getRelatedWidget());
MutableMappingTask mutableMappingTaskSource = caratteristicheWidgetChainComposition.getMutableMappingTask();
MutableMappingTask mutableMappingTaskTarget = caratteristicheWidgetCompositionTarget.getMutableMappingTask();
mutableMappingTaskSource.getMutableMappingTasks().remove(mutableMappingTaskTarget);
mutableMappingTaskTarget.getMutableMappingTasks().remove(mutableMappingTaskSource);
caratteristicheWidgetCompositionTarget.removeSourceScenario((ICompositionWidget) connectionWidget.getTargetAnchor().getRelatedWidget());
caratteristicheWidgetChainComposition.getTargetList().remove((ICompositionWidget) connectionWidget.getTargetAnchor().getRelatedWidget());
connectionWidget.removeFromParent();
}
示例4: manageSourceWidget
import org.netbeans.api.visual.widget.ConnectionWidget; //导入方法依赖的package包/类
private void manageSourceWidget(ConnectionWidget connectionWidget, CaratteristicheWidgetChainComposition caratteristicheWidgetChainCompositionTarget, LayerWidget mainLayer) {
AbstractCaratteristicheWidgetComposition caratteristicheWidgetCompositionSource = (AbstractCaratteristicheWidgetComposition) mainLayer.getChildConstraint(connectionWidget.getTargetAnchor().getRelatedWidget());
MutableMappingTask mutableMappingTaskSource = caratteristicheWidgetCompositionSource.getMutableMappingTask();
MutableMappingTask mutableMappingTaskTarget = caratteristicheWidgetChainCompositionTarget.getMutableMappingTask();
mutableMappingTaskSource.getMutableMappingTasks().remove(mutableMappingTaskTarget);
mutableMappingTaskTarget.getMutableMappingTasks().remove(mutableMappingTaskSource);
caratteristicheWidgetChainCompositionTarget.removeSourceScenario((ICompositionWidget) connectionWidget.getTargetAnchor().getRelatedWidget());
caratteristicheWidgetCompositionSource.getTargetList().remove((ICompositionWidget) connectionWidget.getTargetAnchor().getRelatedWidget());
connectionWidget.removeFromParent();
}
示例5: manageTargetWidget
import org.netbeans.api.visual.widget.ConnectionWidget; //导入方法依赖的package包/类
private void manageTargetWidget(ConnectionWidget connectionWidget, CaratteristicheWidgetConstantComposition caratteristicheWidgetConstantComposition, LayerWidget mainLayer) {
AbstractCaratteristicheWidgetComposition caratteristicheWidgetCompositionTarget = (AbstractCaratteristicheWidgetComposition) mainLayer.getChildConstraint(connectionWidget.getTargetAnchor().getRelatedWidget());
MutableMappingTask mutableMappingTaskSource = caratteristicheWidgetConstantComposition.getMutableMappingTask();
MutableMappingTask mutableMappingTaskTarget = caratteristicheWidgetCompositionTarget.getMutableMappingTask();
mutableMappingTaskSource.getMutableMappingTasks().remove(mutableMappingTaskTarget);
mutableMappingTaskTarget.getMutableMappingTasks().remove(mutableMappingTaskSource);
caratteristicheWidgetCompositionTarget.removeSourceScenario((ICompositionWidget) connectionWidget.getTargetAnchor().getRelatedWidget());
caratteristicheWidgetConstantComposition.getTargetList().remove((ICompositionWidget) connectionWidget.getTargetAnchor().getRelatedWidget());
connectionWidget.removeFromParent();
}
示例6: manageSourceWidget
import org.netbeans.api.visual.widget.ConnectionWidget; //导入方法依赖的package包/类
private void manageSourceWidget(ConnectionWidget connectionWidget, CaratteristicheWidgetConstantComposition caratteristicheWidgetConstantCompositionTarget, LayerWidget mainLayer) {
AbstractCaratteristicheWidgetComposition caratteristicheWidgetCompositionSource = (AbstractCaratteristicheWidgetComposition) mainLayer.getChildConstraint(connectionWidget.getTargetAnchor().getRelatedWidget());
MutableMappingTask mutableMappingTaskSource = caratteristicheWidgetCompositionSource.getMutableMappingTask();
MutableMappingTask mutableMappingTaskTarget = caratteristicheWidgetConstantCompositionTarget.getMutableMappingTask();
mutableMappingTaskSource.getMutableMappingTasks().remove(mutableMappingTaskTarget);
mutableMappingTaskTarget.getMutableMappingTasks().remove(mutableMappingTaskSource);
caratteristicheWidgetConstantCompositionTarget.removeSourceScenario((ICompositionWidget) connectionWidget.getTargetAnchor().getRelatedWidget());
caratteristicheWidgetCompositionSource.getTargetList().remove((ICompositionWidget) connectionWidget.getTargetAnchor().getRelatedWidget());
connectionWidget.removeFromParent();
}
示例7: deleteConnectionAndWidget
import org.netbeans.api.visual.widget.ConnectionWidget; //导入方法依赖的package包/类
public void deleteConnectionAndWidget() {
for (ConnectionWidget connectionWidget : connections) {
connectionWidget.getSourceAnchor().getRelatedWidget().removeFromParent();
connectionWidget.getTargetAnchor().getRelatedWidget().removeFromParent();
connectionWidget.removeFromParent();
}
}