Package vash.value

Examples of vash.value.Position$Coord


  protected void processEraseScreen(int eraseOption) throws IOException {
    getConsoleInfo();
    int[] written = new int[1];
    switch(eraseOption) {
    case ERASE_SCREEN:
      COORD topLeft = new COORD();
      topLeft.x = 0;
      topLeft.y = info.window.top;
      int screenLength = info.window.height() * info.size.x;
      FillConsoleOutputCharacterW(console, ' ', screenLength, topLeft, written);
      break;
    case ERASE_SCREEN_TO_BEGINING:
      COORD topLeft2 = new COORD();
      topLeft2.x = 0;
      topLeft2.y = info.window.top;
      int lengthToCursor = (info.cursorPosition.y - info.window.top) * info.size.x
        + info.cursorPosition.x;
      FillConsoleOutputCharacterW(console, ' ', lengthToCursor, topLeft2, written);
View Full Code Here


  protected void processEraseLine(int eraseOption) throws IOException {
    getConsoleInfo();
    int[] written = new int[1];
    switch(eraseOption) {
    case ERASE_LINE:
      COORD leftColCurrRow = info.cursorPosition.copy();
      leftColCurrRow.x = 0;
      FillConsoleOutputCharacterW(console, ' ', info.size.x, leftColCurrRow, written);
      break;
    case ERASE_LINE_TO_BEGINING:
      COORD leftColCurrRow2 = info.cursorPosition.copy();
      leftColCurrRow2.x = 0;
      FillConsoleOutputCharacterW(console, ' ', info.cursorPosition.x, leftColCurrRow2, written);
      break;
    case ERASE_LINE_TO_END:
      int lengthToLastCol = info.size.x - info.cursorPosition.x;
View Full Code Here

    _values[0] = this.center = center;
    _values[1] = this.angle = angle;
  }
 
  public PolarTheta(double x, double y, double angle) {
    this(new Position(x, y), new Wrapping(angle, -1, 1));
  }
View Full Code Here

    this(new Position(x, y), new Wrapping(angle, -1, 1));
  }
 
  public PolarTheta(Seed s) {
    super(2, 0);
    _values[0] = this.center = new Position(s);
    _values[1] = this.angle = new Wrapping(s, -1, 1);
  }
View Full Code Here

    _values[0] = this.p0 = p0;
    _values[1] = this.p1 = p1;
  }

  public LinearGradient1(double x0, double y0, double x1, double y1) {
    this(new Position(x0, y0), new Position(x1, y1));
  }
View Full Code Here

  public LinearGradient1(double x0, double y0, double x1, double y1) {
    this(new Position(x0, y0), new Position(x1, y1));
  }

  public LinearGradient1(Seed s) {
    this(new Position(s), new Position(s));
  }
View Full Code Here

    _values[1] = this.f1 = f1;
    _values[2] = this.size = size;
  }
 
  public Ellipse(double x0, double y0, double x1, double y1, double size) {
    this(new Position(x0, y0), new Position(x1, y1), new Bounded(size, MIN_SIZE, MAX_SIZE));
  }
View Full Code Here

  public Ellipse(double x0, double y0, double x1, double y1, double size) {
    this(new Position(x0, y0), new Position(x1, y1), new Bounded(size, MIN_SIZE, MAX_SIZE));
  }
 
  public Ellipse(Seed s) {
    this(new Position(s), new Position(s), new Bounded(s, MIN_SIZE, MAX_SIZE));
  }
View Full Code Here

    _values[2] = this.height = h;
    _values[3] = this.angle = angle;
  }
 
  public RadialGradient(double x, double y, double w, double h, double angle) {
    this(new Position(x, y),
        new Bounded(w, MIN_SIZE, MAX_SIZE),
        new Bounded(h, MIN_SIZE, MAX_SIZE),
        new Wrapping(angle, MIN_ANGLE, MAX_ANGLE));
  }
View Full Code Here

        new Bounded(h, MIN_SIZE, MAX_SIZE),
        new Wrapping(angle, MIN_ANGLE, MAX_ANGLE));
  }
 
  public RadialGradient(Seed s) {
    this(new Position(s),
        new Bounded(s, MIN_SIZE, MAX_SIZE),
        new Bounded(s, MIN_SIZE, MAX_SIZE),
        new Wrapping(s, MIN_ANGLE, MAX_ANGLE));
  }
View Full Code Here

TOP

Related Classes of vash.value.Position$Coord

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.