Package dwlab.shapes

Examples of dwlab.shapes.Shape$LayerRemover


 

  @Override
  public Shape remove( Shape shape ) {
    for ( ListIterator<Shape> iterator = children.listIterator(); iterator.hasNext(); ) {
      Shape childShape = iterator.next();
      if( childShape == shape ) iterator.remove();
      childShape.remove( shape );
    }
    return this;
  }
View Full Code Here



  @Override
  public Shape remove( Class shapeClass ) {
    for ( ListIterator<Shape> iterator = children.listIterator(); iterator.hasNext(); ) {
      Shape childShape = iterator.next();
      if( childShape.getClass() == shapeClass ) iterator.remove();
      childShape.remove( shapeClass );
    }
    return this;
  }
View Full Code Here


  public void copyLayerTo( Layer layer ) {
    copyShapeTo( layer );
    if( bounds != null ) {
      layer.bounds = new Shape();
      bounds.copyTo( layer.bounds );
    }
    layer.mixContent = mixContent;
  }
View Full Code Here

  @Override
  public Shape findShape( String parameterName, String parameterValue ) {
    super.findShape( parameterName, parameterValue );
    for( Shape childShape: sprites ) {
      Shape shape = childShape.findShape( parameterName, parameterValue );
      if( shape != null ) return shape;
    }
    return null;
  }
View Full Code Here

  @Override
  public Shape findShape( Class shapeClass ) {
    super.findShape( shapeClass );
    for( Shape childShape: sprites ) {
      Shape shape = childShape.findShape( shapeClass );
      if( shape != null ) return shape;
    }
    return null;
  }
View Full Code Here

  @Override
  public Shape findShape( String parameterName, String parameterValue, Class shapeClass ) {
    super.findShape( parameterName, parameterValue, shapeClass );
    for( Shape childShape: sprites ) {
      Shape shape = childShape.findShape( parameterName, parameterValue, shapeClass );
      if( shape != null ) return shape;
    }
    return null;
  }
View Full Code Here


  @Override
  public Shape remove( Class shapeClass ) {
    for ( Iterator<Sprite> iterator = sprites.iterator(); iterator.hasNext(); ) {
      Shape childSprite = iterator.next();
      if( childSprite.getClass() == shapeClass ) iterator.remove(); else childSprite.remove( shapeClass );
    }
    return this;
  }
View Full Code Here

TOP

Related Classes of dwlab.shapes.Shape$LayerRemover

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.