当前位置: 首页>>代码示例>>Java>>正文


Java ConnectionWidget.setToolTipText方法代码示例

本文整理汇总了Java中org.netbeans.api.visual.widget.ConnectionWidget.setToolTipText方法的典型用法代码示例。如果您正苦于以下问题:Java ConnectionWidget.setToolTipText方法的具体用法?Java ConnectionWidget.setToolTipText怎么用?Java ConnectionWidget.setToolTipText使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.netbeans.api.visual.widget.ConnectionWidget的用法示例。


在下文中一共展示了ConnectionWidget.setToolTipText方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: creaCandidateCorrespondence

import org.netbeans.api.visual.widget.ConnectionWidget; //导入方法依赖的package包/类
private void creaCandidateCorrespondence(ValueCorrespondence valueCorrespondence, MappingTask mappingTask) {
    INode iNodeSource = finder.findNodeInSchema(valueCorrespondence.getSourcePaths().get(0), mappingTask.getSourceProxy());
    VMDPinWidgetSource sourceWidget = (VMDPinWidgetSource) iNodeSource.getAnnotation(Costanti.PIN_WIDGET_TREE_SPICY);
    INode iNodeTarget = finder.findNodeInSchema(valueCorrespondence.getTargetPath(), mappingTask.getTargetProxy());
    VMDPinWidgetTarget targetWidget = (VMDPinWidgetTarget) iNodeTarget.getAnnotation(Costanti.PIN_WIDGET_TREE_SPICY);

    ConnectionWidget connection = new ConnectionWidget(glassPane.getScene());
    connection.setTargetAnchorShape(AnchorShape.TRIANGLE_FILLED);
    connection.setSourceAnchor(AnchorFactory.createCenterAnchor(sourceWidget));
    connection.setTargetAnchor(AnchorFactory.createRectangularAnchor(targetWidget));
    Stroke stroke = Costanti.DASHED_STROKE;
    connection.setStroke(stroke);
    ConnectionInfo connectionInfo = new ConnectionInfo();
    connectionInfo.setConnectionWidget(connection);
    connectionInfo.setValueCorrespondence(valueCorrespondence);
    connection.setToolTipText(connectionInfo.getValueCorrespondence().toString());
    setColorOnConfidence(connectionInfo, connection);
    glassPane.getConnectionLayer().addChild(connection, connectionInfo);
    connection.getActions().addAction(ActionFactory.createPopupMenuAction(new MyPopupProviderConnectionSpicy(glassPane.getScene())));
    connection.getActions().addAction(ActionFactory.createSelectAction(new MySelectConnectionActionProvider(glassPane.getConnectionLayer())));
    glassPane.getScene().validate();
}
 
开发者ID:dbunibas,项目名称:spicy,代码行数:23,代码来源:CreaWidgetCorrespondencesSpicy.java

示例2: creaCorrespondence

import org.netbeans.api.visual.widget.ConnectionWidget; //导入方法依赖的package包/类
private void creaCorrespondence(VariableCorrespondence variableCorrespondence, ValueCorrespondence valueCorrespondence, MappingTask mappingTask) {
        INode iNodeSource = finder.findNodeInSchema(valueCorrespondence.getSourcePaths().get(0), mappingTask.getSourceProxy());
        VMDPinWidgetSource sourceWidget = (VMDPinWidgetSource) iNodeSource.getAnnotation(Costanti.PIN_WIDGET_TREE);
        INode iNodeTarget = finder.findNodeInSchema(valueCorrespondence.getTargetPath(), mappingTask.getTargetProxy());
        VMDPinWidgetTarget targetWidget = (VMDPinWidgetTarget) iNodeTarget.getAnnotation(Costanti.PIN_WIDGET_TREE);

        ConnectionWidget connection = new ConnectionWidget(glassPane.getScene());
        connection.setTargetAnchorShape(AnchorShape.TRIANGLE_FILLED);
        connection.setSourceAnchor(AnchorFactory.createCenterAnchor(sourceWidget));
        connection.setTargetAnchor(AnchorFactory.createRectangularAnchor(targetWidget));
        Stroke stroke = Costanti.BASIC_STROKE;
        connection.setStroke(stroke);
        ConnectionInfo connectionInfo = new ConnectionInfo();
        connectionInfo.setConnectionWidget(connection);
        connectionInfo.setValueCorrespondence(valueCorrespondence);
        connection.setToolTipText(connectionInfo.getValueCorrespondence().toString());
        glassPane.getConnectionLayer().addChild(connection, connectionInfo);
        connection.getActions().addAction(ActionFactory.createPopupMenuAction(new MyPopupProviderConnectionMappingTask(glassPane.getScene())));
        connection.getActions().addAction(ActionFactory.createSelectAction(new MySelectConnectionActionProvider(glassPane.getConnectionLayer())));
//        analisiFiltro.creaWidgetEsisteFiltro(connection, connectionInfo);
        glassPane.getScene().validate();
    }
 
开发者ID:dbunibas,项目名称:spicy,代码行数:23,代码来源:CreaWidgetCorrespondencesMappingTask.java

示例3: creaCorrespondence

import org.netbeans.api.visual.widget.ConnectionWidget; //导入方法依赖的package包/类
private void creaCorrespondence(VariableCorrespondence variableCorrespondence) {
//        INode iNodeSource = finder.findNodeInSchema(variableCorrespondence.getSourcePaths().get(0), mappingTask.getSource());
        INode iNodeSource = finder.findNodeInSchema(variableCorrespondence.getSourcePaths().get(0).getAbsolutePath(), mappingTask.getSourceProxy());
        VMDPinWidgetSource sourceWidget = (VMDPinWidgetSource) iNodeSource.getAnnotation(Costanti.PIN_WIDGET_TREE_TGD);
//        INode iNodeTarget = finder.findNodeInSchema(variableCorrespondence.getTargetPath(), mappingTask.getTarget());
        INode iNodeTarget = finder.findNodeInSchema(variableCorrespondence.getTargetPath().getAbsolutePath(), mappingTask.getTargetProxy());
        VMDPinWidgetTarget targetWidget = (VMDPinWidgetTarget) iNodeTarget.getAnnotation(Costanti.PIN_WIDGET_TREE_TGD);

        ConnectionWidget connection = new ConnectionWidget(glassPane.getScene());
        connection.setTargetAnchorShape(AnchorShape.TRIANGLE_FILLED);
        connection.setSourceAnchor(AnchorFactory.createCenterAnchor(sourceWidget));
        connection.setTargetAnchor(AnchorFactory.createRectangularAnchor(targetWidget));
        Stroke stroke = Costanti.BASIC_STROKE;
        connection.setStroke(stroke);
        ConnectionInfo connectionInfo = new ConnectionInfo();
        connectionInfo.setConnectionWidget(connection);
//        connectionInfo.setVariableCorrespondence(variableCorrespondence);
        connectionInfo.setVariableCorrespondence(variableCorrespondence);

        connection.setToolTipText(connectionInfo.getVariableCorrespondence().toString());

        glassPane.getConnectionLayer().addChild(connection, connectionInfo);
//        connection.getActions().addAction(ActionFactory.createPopupMenuAction(new MyPopupProviderConnectionMappingTask(glassPane.getScene())));
//        connection.getActions().addAction(ActionFactory.createSelectAction(new MySelectConnectionActionProvider(glassPane.getConnectionLayer())));

//        analisiFiltro.creaWidgetEsisteFiltro(connection, connectionInfo);

        glassPane.getScene().validate();
    }
 
开发者ID:dbunibas,项目名称:spicy,代码行数:30,代码来源:CreaWidgetCorrespondencesTGD.java

示例4: createCorrespondence

import org.netbeans.api.visual.widget.ConnectionWidget; //导入方法依赖的package包/类
private void createCorrespondence(ConnectionWidget connection, Widget sourceWidget, Widget targetWidget) {
    ConnectionInfo connectionInfo = new ConnectionInfo();
    connectionInfo.setConnectionWidget(connection);
    connectionLayer.addChild(connection, connectionInfo);
    connection.getActions().addAction(ActionFactory.createPopupMenuAction(new MyPopupProviderConnectionMappingTask(scene)));
    connection.getActions().addAction(ActionFactory.createSelectAction(new MySelectConnectionActionProvider(connectionLayer)));
    creator.createCorrespondence(mainLayer, sourceWidget, targetWidget, connectionInfo);
    if (connectionInfo.getValueCorrespondence() != null) {
        connection.setToolTipText(connectionInfo.getValueCorrespondence().toString());
    } else {
        connection.setToolTipText(connectionInfo.getVariableCorrespondence().toString());
    }
}
 
开发者ID:dbunibas,项目名称:spicy,代码行数:14,代码来源:ActionSceneConnection.java

示例5: changeMandatory

import org.netbeans.api.visual.widget.ConnectionWidget; //导入方法依赖的package包/类
public void changeMandatory(boolean mandatary, String joinString) {
        this.suffixMandatory = Boolean.toString(mandatary);
        this.joinString = joinString;
        for (ConnectionWidget connectionWidget : connections) {
//            connectionWidget.setToolTipText("Mandatory = " + this.suffixMandatory + " Monodirectional = " + this.suffixForeignKey);
            connectionWidget.setToolTipText(joinString);
            if (mandatary) {
                connectionWidget.setStroke(Costanti.DASHED_STROKE_THICK);
            } else {
                connectionWidget.setStroke(Costanti.DASHED_STROKE);
            }
        }
    }
 
开发者ID:dbunibas,项目名称:spicy,代码行数:14,代码来源:ConnectionConstraint.java


注:本文中的org.netbeans.api.visual.widget.ConnectionWidget.setToolTipText方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。