PlotConfigurationTreeTransferHandler.java 文件源码

java
阅读 29 收藏 0 点赞 0 评论 0

项目:rapidminer 作者:
/**
 * @param container
 * @param comp
 * @param childIndex
 * @param container2
 */
private String canImportRangeAxis(Component container, TreeNode treeNode, int childIndex, Component container2) {
    String importAction = I18N.getGUILabel("plotter.drag_and_drop.axis_drop.move_axis");

    // RangeAxisConfigTreeNode can only be dropped on PlotConfigTreeNodes
    if (!(treeNode instanceof PlotConfigurationTreeNode)) {
        updateToolTip(container, I18N.getGUILabel("plotter.drag_and_drop.axis_drop.cant_drop_axis_config"));
        return null;
    }
    // can only be dropped below static dimension configs
    if (childIndex > -1 && childIndex < PlotConfigurationTreeModel.NUMBER_OF_PERMANENT_DIMENSIONS) {
        updateToolTip(container, I18N.getGUILabel("plotter.drag_and_drop.axis_drop.only_below_dims"));
        return null;
    }

    if (childIndex == -1) {
        return I18N.getGUILabel("plotter.drag_and_drop.axis_drop.move_to_end");
    }

    return importAction;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号