Package dwlab.visualizers

Examples of dwlab.visualizers.WindowedVisualizer


   * All sprite parts which are outside this rectangle will not be displayed.
   *
   * @see #limitByWindowShape, #removeWindowLimit
   */
  public Shape limitByWindow( double wX, double wY, double wWidth, double wHeight ) {
    WindowedVisualizer newVisualizer = new WindowedVisualizer();
    newVisualizer.visualizer = visualizer;
    newVisualizer.viewports = new Shape[ 1 ];
    Shape viewport = new Shape();
    viewport.x = wX;
    viewport.y = wY;
View Full Code Here


   * All sprite parts which are outside this rectangle will not be displayed.
   *
   * @see #limitByWindow, #removeWindowLimit
   */
  public Shape limitByWindowShape( Shape shape ) {
    WindowedVisualizer newVisualizer = new WindowedVisualizer();
    newVisualizer.visualizer = visualizer;
    newVisualizer.viewports = new Shape[ 1 ];
    newVisualizer.viewports[ 0 ] = new Shape();
    shape.copyShapeTo( newVisualizer.viewports[ 0 ] );
    visualizer = newVisualizer;
View Full Code Here

    return this;
  }


  public Shape limitByWindowShapes( Shape[] shapes ) {
    WindowedVisualizer newVisualizer = new WindowedVisualizer();
    newVisualizer.visualizer = visualizer;
    newVisualizer.viewports = new Shape[ shapes.length ];
    for( int n = 0; n < shapes.length; n++ ) {
      newVisualizer.viewports[ n ] = new Shape();
      shapes[ n ].copyShapeTo( newVisualizer.viewports[ n ] );
View Full Code Here

TOP

Related Classes of dwlab.visualizers.WindowedVisualizer

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.