Package org.locationtech.udig.project.ui.internal.commands.draw

Examples of org.locationtech.udig.project.ui.internal.commands.draw.DrawFeatureCommand$MathTransformKey


    }

    this.parallelContext.setMode(PrecisionToolsMode.WAITING);

    List<IDrawCommand> commands = new ArrayList<IDrawCommand>();
    DrawFeatureCommand drawCmd = new DrawFeatureCommand(feature);
    commands.add(drawCmd);
    FeatureHighLight animation = new FeatureHighLight(commands, new Rectangle());
    AnimationUpdater.runTimer(handler.getContext().getMapDisplay(), animation);
  }
View Full Code Here


        private IAnimation createAnimation( List<SimpleFeature> current ) {
            final List<IDrawCommand> commands = new ArrayList<IDrawCommand>();
            for( SimpleFeature feature : current ) {
                if (feature == null || feature.getFeatureType().getGeometryDescriptor() == null)
                    continue;
                DrawFeatureCommand command = null;
                if (feature instanceof IAdaptable) {
                    Layer layer = (Layer) ((IAdaptable) feature).getAdapter(Layer.class);
                    if (layer != null)
                        try {
                            command = new DrawFeatureCommand(feature, layer);
                        } catch (IOException e) {
                            // do nothing... thats life
                        }
                }
                if (command == null) {
                    command = new DrawFeatureCommand(feature);
                }
                command.setMap(getMap());
                command.preRender();
                commands.add(command);
            }
            Rectangle2D rect = new Rectangle();
            // for( IDrawCommand command : commands ) {
            // rect=rect.createUnion(command.getValidArea());
View Full Code Here

     * @return a new {@linkplain DrawFeatureCommand}
     * @see DrawFeatureCommand
     */
    public DrawFeatureCommand createDrawFeatureCommand( SimpleFeature feature, ILayer layer ) {
        try {
            return new DrawFeatureCommand(feature, layer);
        } catch (IOException e) {
            return new DrawFeatureCommand(feature);
        }
    }
View Full Code Here

     * @param model the ViewportModel that is used to calculate size and position.
     * @return a new {@linkplain DrawFeatureCommand}
     * @see DrawFeatureCommand
     */
    public DrawFeatureCommand createDrawFeatureCommand( SimpleFeature feature ) {
        return new DrawFeatureCommand(feature);
    }
View Full Code Here

     * @return a new {@linkplain DrawFeatureCommand}
     * @see DrawFeatureCommand
     */
    public DrawFeatureCommand createDrawFeatureCommand( SimpleFeature feature,
            CoordinateReferenceSystem crs ) {
        return new DrawFeatureCommand(feature, crs);
    }
View Full Code Here

        private IAnimation createAnimation( List<SimpleFeature> current ) {
            final List<IDrawCommand> commands = new ArrayList<IDrawCommand>();
            for( SimpleFeature feature : current ) {
                if (feature == null || feature.getFeatureType().getGeometryDescriptor() == null)
                    continue;
                DrawFeatureCommand command = null;
                if (feature instanceof IAdaptable) {
                    Layer layer = (Layer) ((IAdaptable) feature).getAdapter(Layer.class);
                    if (layer != null)
                        try {
                            command = new DrawFeatureCommand(feature, layer);
                        } catch (IOException e) {
                            // do nothing... thats life
                        }
                }
                if (command == null) {
                    command = new DrawFeatureCommand(feature);
                }
                command.setMap(getMap());
                command.preRender();
                commands.add(command);
            }
            Rectangle2D rect = new Rectangle();
            // for( IDrawCommand command : commands ) {
            // rect=rect.createUnion(command.getValidArea());
View Full Code Here

TOP

Related Classes of org.locationtech.udig.project.ui.internal.commands.draw.DrawFeatureCommand$MathTransformKey

Copyright © 2018 www.massapicom. 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.