private static String[] getAllInputPortNames(final MIFilter plugin) { return KaxVizFrame.convertPortsToNameArray(plugin.getInputPorts()); }
private final mxCell createFilter(final MIFilter plugin, final int c) { final mxCell vertex = new mxCell("<<Filter>>\n" + plugin.getName() + " : " + KaxVizFrame.getShortClassName(plugin), new mxGeometry(FILTER_SPACE, FILTER_SPACE + (c * (FILTER_HEIGHT + FILTER_SPACE)), FILTER_WIDTH, FILTER_HEIGHT), STYLE_FILTER); vertex.setVertex(true); this.graph.addCell(vertex); return vertex; }
private final mxCell createFilter(final MIFilter plugin, final int c) { final mxCell vertex = new mxCell("<<Filter>>\n" + plugin.getName() + " : " + KaxVizFrame.getShortClassName(plugin), new mxGeometry(FILTER_SPACE, FILTER_SPACE + (c * (FILTER_HEIGHT + FILTER_SPACE)), FILTER_WIDTH, FILTER_HEIGHT), STYLE_FILTER); vertex.setVertex(true); this.graph.addCell(vertex); return vertex; }
private static String[] getAllInputPortNames(final MIFilter plugin) { return KaxVizFrame.convertPortsToNameArray(plugin.getInputPorts()); }
/** * Searches for an input port within the given plugin with the given name. * * @param mPlugin * The plugin which will be searched through. * @param name * The name of the searched input port. * @return The searched port or null, if it is not available. */ public static final MIInputPort findInputPort(final MIFilter mPlugin, final String name) { for (final MIInputPort port : mPlugin.getInputPorts()) { if (port.getName().equals(name)) { return port; } } return null; }
/** * Searches for an input port within the given plugin with the given name. * * @param mPlugin * The plugin which will be searched through. * @param name * The name of the searched input port. * @return The searched port or null, if it is not available. */ public static final MIInputPort findInputPort(final MIFilter mPlugin, final String name) { for (final MIInputPort port : mPlugin.getInputPorts()) { if (port.getName().equals(name)) { return port; } } return null; }
final EList<MIInputPort> mInputPorts = (mPlugin instanceof MIFilter) ? ((MIFilter) mPlugin).getInputPorts() : new BasicEList<MIInputPort>(); // NOCS for (final MIInputPort mInputPort : mInputPorts) { if (!inputPorts.contains(mInputPort.getName())) {
final EList<MIInputPort> mInputPorts = (mPlugin instanceof MIFilter) ? ((MIFilter) mPlugin).getInputPorts() : new BasicEList<MIInputPort>(); // NOCS for (final MIInputPort mInputPort : mInputPorts) { if (!inputPorts.contains(mInputPort.getName())) {
mInputPort.setId(EcoreUtil.generateUUID()); mInputPort.setName(in); ((MIFilter) mPlugin).getInputPorts().add(mInputPort);
mInputPort.setId(EcoreUtil.generateUUID()); mInputPort.setName(in); ((MIFilter) mPlugin).getInputPorts().add(mInputPort);