Examples of Locatable


Examples of org.jitterbit.integration.data.Locatable

            return super.getDefaultIcon();
        }
    }

    private Icon getLocationDecoratedIcon(Size size) {
        Locatable locatable = (Locatable) getUserObject();
        LocationDecoratedIcons icons = LocationDecoratedIcons.forLocatable(locatable);
        return icons.getIcon(locatable, size);
    }
View Full Code Here

Examples of org.jitterbit.integration.data.Locatable

                        locatableClass, new FileBasedLocationFilter());
        page.setNewEntityVisitor(new Receiver<T>() {

            @Override
            public void handle(T object) {
                Locatable locatable = (Locatable) object;
                locatable.setAllowedLocationTypes(DataLocationType.getFileBasedTypes());
            }
        });
        String mainCaption = String.format("Select a File %s", (locatableType == EntityType.Source ? "Source" : "Target"));
        page.setMainCaption(mainCaption);
        String subCaption = String.format("Select the location of the %s file that will be used in this connect operation.", (locatableType == EntityType.Source ? "source" : "target"));
View Full Code Here

Examples of org.jitterbit.integration.data.Locatable

    private class DbQuoteListener implements PropertyChangeListener {

        @Override
        public void propertyChange(PropertyChangeEvent evt) {
            Locatable source = ((LocatableChangeEvent) evt).getLocatable();
            IntegrationEntity entity = (IntegrationEntity) source;
            saveEntity(entity);
        }
View Full Code Here

Examples of org.jitterbit.integration.data.Locatable

            return node;
        }

        private void checkIcon(IntegrationEntity entity, EntityNodeUi node) {
            if (entity instanceof Locatable && LocationDecorateTreeNodeIconsPreference.value()) {
                Locatable locatable = (Locatable) entity;
                LocationDecoratedIcons locationIcons = LocationDecoratedIcons.forLocatable(locatable);
                Icon icon = locationIcons.getIcon(locatable, Size.SMALL);
                node.setIcon(icon);
            }
        }
View Full Code Here

Examples of org.powerbot.game.api.wrappers.Locatable

            g.setFont(nodeBlockFont);
            g.drawString("SCRIPT IS BLOCKING NODES", 171, 100);
            g.drawString("GETTING MORE RUNE ESS", 180, 130);
        }

        final Locatable target = SudoRunespan.getTarget();
        if (target != null && target.getLocation().isOnScreen()) {
            g.setColor(Color.RED);
            g.drawPolygon(target.getLocation().getBounds()[0]);
            g.setColor(alphaRed);
            g.fillPolygon(target.getLocation().getBounds()[0]);
        }

        if (Widgets.get(1274).validate()) {
            gainedPoints = Integer.parseInt(Widgets.get(1274, 2).getText()) - startPoints;
        }
View Full Code Here

Examples of ptolemy.kernel.util.Locatable

                // Change the color of the icon to green.
                _circle2.fillColor.setToken("{0.0, 1.0, 0.0, 1.0}");

                CompositeEntity container = (CompositeEntity) getContainer();
                Entity destNode = container.getEntity(destination);
                Locatable destLocation = (Locatable) destNode.getAttribute(
                        "_location", Locatable.class);
                Locatable myLocation = (Locatable) this.getAttribute(
                        "_location", Locatable.class);

                if ((destLocation == null) || (myLocation == null)) {
                    throw new IllegalActionException(
                            "Cannot determine location for node "
                                    + destNode.getName() + ".");
                }

                Iterator nodes = _connectedNodes.iterator();
                double minDistance = _distanceBetween(destLocation, myLocation);
                String to = " ";
                boolean multi = ((BooleanToken) doublePath.getToken())
                        .booleanValue();
                double nextMinDistance = _distanceBetween(destLocation,
                        myLocation);
                String to2 = " ";

                while (nodes.hasNext()) {
                    Entity node = (Entity) nodes.next();
                    Locatable location = (Locatable) node.getAttribute(
                            "_location", Locatable.class);

                    if (location == null) {
                        throw new IllegalActionException(
                                "Cannot determine location for node "
View Full Code Here

Examples of ptolemy.kernel.util.Locatable

     @exception IllegalActionException If a valid location attribute cannot
     *   be found.
     */
    protected double[] _locationOf(IOPort port) throws IllegalActionException {
        Entity container = (Entity) port.getContainer();
        Locatable location = null;

        if (container == getContainer()) {
            location = (Locatable) port.getAttribute(LOCATION_ATTRIBUTE_NAME,
                    Locatable.class);
        } else {
            location = (Locatable) container.getAttribute(
                    LOCATION_ATTRIBUTE_NAME, Locatable.class);
        }

        if (location == null) {
            throw new IllegalActionException(
                    "Cannot determine location for port " + port.getName()
                            + " with container\n" + container + ".");
        }

        // NOTE: We assume here that the implementation
        // of addValueListener() is smart enough to not add
        // this if it is already a listener.
        location.addValueListener(this);
        return location.getLocation();
    }
View Full Code Here

Examples of ptolemy.kernel.util.Locatable

     *   be found.
     */
    public static double[] locationOf(IOPort port)
            throws IllegalActionException {
        Entity portContainer = (Entity) port.getContainer();
        Locatable location = null;

        //FIXME: What should I do here...
        //if (portContainer == container) {
        //    location = (Locatable)port.getAttribute(LOCATION_ATTRIBUTE_NAME,
        //            Locatable.class);
        //} else {
        location = (Locatable) portContainer.getAttribute(
                LOCATION_ATTRIBUTE_NAME, Locatable.class);

        //}
        if (location == null) {
            throw new IllegalActionException(
                    "Cannot determine location for port " + port.getName()
                            + ".");
        }

        return location.getLocation();
    }
View Full Code Here

Examples of ptolemy.kernel.util.Locatable

     *   be found.
     */
    private double[] _locationOf(WirelessIOPort port)
            throws IllegalActionException {
        Entity container = (Entity) port.getContainer();
        Locatable location = null;
        location = (Locatable) container.getAttribute(LOCATION_ATTRIBUTE_NAME,
                Locatable.class);

        if (location == null) {
            throw new IllegalActionException(
                    "Cannot determine location for port " + port.getName()
                            + ".");
        }

        return location.getLocation();
    }
View Full Code Here

Examples of ptolemy.kernel.util.Locatable

        super.initialize();
        _terrain.width.setToken(new IntToken(10));
        _number = 10;
        _offset = new double[2];

        Locatable location = (Locatable) getAttribute(LOCATION_ATTRIBUTE_NAME,
                Locatable.class);

        if (location == null) {
            throw new IllegalActionException(
                    "Cannot determine location for entity " + getName() + ".");
        }

        double[] center = _polygonCenter();

        //Note: the polygon is not centered, but the location
        //refers to the center of the polygon. We adjust the
        //offset here.
        _offset[0] = location.getLocation()[0] + center[0];
        _offset[1] = location.getLocation()[1] + center[1];

        CompositeEntity container = (CompositeEntity) getContainer();
        _channelName = channelName.stringValue();

        Entity channel = container.getEntity(_channelName);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.