Package org.locationtech.udig.project.internal.render

Examples of org.locationtech.udig.project.internal.render.ExecutorVisitor


     */
    public void printRenderStack() {
        checkState();
        if (getRenderExecutor() != null) {
            final StringBuffer msg = new StringBuffer();
            getRenderExecutor().visit(new ExecutorVisitor() {
                int i = 0;

                public void visit(RenderExecutor executor) {
                    i++;
                    String layername = executor.getContext().getLayer().getID().toString();
View Full Code Here


     * @see org.locationtech.udig.project.render.IRenderManager#getRenderers()
     */
    public List<IRenderer> getRenderers() {
        checkState();
        final List<IRenderer> renderers = new ArrayList<IRenderer>();
        getRenderExecutor().visit(new ExecutorVisitor() {

            public void visit(RenderExecutor executor) {
                if (!(executor.getContext().getLayer() instanceof SelectionLayer)) {
                    Renderer renderer = executor.getRenderer();
                    renderers.add(renderer);
View Full Code Here

    final ReferencedEnvelope bbox = bounds == null
        || bounds instanceof ReferencedEnvelope ? (ReferencedEnvelope) bounds
        : new ReferencedEnvelope(bounds, getRenderExecutor()
            .getContext().getCRS());

    getRenderExecutor().visit(new ExecutorVisitor() {
      public void visit(RenderExecutor executor) {
        if (executor.getContext().getLayer() == layer
            || selectionLayer == executor.getContext().getLayer()) {
          // tell the renderer the area of the screen to refresh
          executor.getRenderer().setRenderBounds(bbox);
View Full Code Here

      return;

    getRendererCreator().reset();
    validateRendererConfiguration();

    getRenderExecutor().visit(new ExecutorVisitor() {
      public void visit(RenderExecutor executor) {
        IRenderContext context = executor.getContext();
        if (selectionLayer == context.getLayer()) {
          executor.getRenderer().setRenderBounds(bounds);
          if (bounds != null) {
View Full Code Here

  private void logRendererTypes() {
    if (ProjectUIPlugin.isDebugging(RENDER)) {

      final StringBuffer log = new StringBuffer("Current Renderers:"); //$NON-NLS-1$
      getRenderExecutor().visit(new ExecutorVisitor() {
        public void visit(RenderExecutor executor) {
          log
              .append("\n\t" + executor.getClass().getSimpleName() + ":" + //$NON-NLS-1$ //$NON-NLS-2$
                  executor.getRenderer().getClass()
                      .getSimpleName() + "-" + //$NON-NLS-1$
View Full Code Here

      assertNotNull(renderer2.getContext());
    }

    final int[] countedRenderers=new int[1];
        countedRenderers[0]=0;
        renderManagerInternal.getRenderExecutor().visit(new ExecutorVisitor(){

            public void visit( RenderExecutor executor ) {
                countedRenderers[0]++;
            }
View Full Code Here

                    layersToUpdate.add(metrics.getRenderContext().getLayer());
                }
            }
         
            for( final ILayer newlayer : layersToUpdate) {
                re.visit(new ExecutorVisitor(){
                    public void visit( RenderExecutor executor ) {
                        if (executor.getContext().getLayer() == newlayer) {
                            // layer to refresh
                            executor.getRenderer().setRenderBounds(bbox);
                            // register request
View Full Code Here

            }

            final Envelope bbox = env;

            //set render requests for the selection layer
            re.visit(new ExecutorVisitor(){

                public void visit( RenderExecutor executor ) {
                    IRenderContext context = executor.getContext();
                    if (selectionLayer == context.getLayer()) {
                        executor.getRenderer().setRenderBounds(bbox);
View Full Code Here

TOP

Related Classes of org.locationtech.udig.project.internal.render.ExecutorVisitor

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.