Java Rectangle formatRect(Rectangle rc)

Here you can find the source of formatRect(Rectangle rc)

Description

format Rect

License

Open Source License

Declaration

public static String formatRect(Rectangle rc) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.awt.Rectangle;

public class Main {
    public static String formatRect(Rectangle rc) {
        return Integer.toString(rc.x) + "," + Integer.toString(rc.y) + "," + Integer.toString(rc.width) + ","
                + Integer.toString(rc.height);
    }/*from   w w  w  .  java2  s. c  o  m*/
}

Related

  1. expand(final Rectangle rect, final int expansion)
  2. expand(Rectangle rect, int amount)
  3. expand(Rectangle rectangle, int expansion)
  4. firstSmallerThanSecond(java.awt.Rectangle first, java.awt.Rectangle second)
  5. flip(Dimension view, Rectangle rect, int direction)
  6. formatRectangle(Rectangle rect)
  7. getAbsoluteRectangle(Rectangle rect)
  8. getFrameOrientations(Rectangle parent)
  9. getMaximalRectangle(Rectangle r1, Rectangle r2)