Java Rectangle Create Parse rectangleToString(Rectangle r)

Here you can find the source of rectangleToString(Rectangle r)

Description

rectangle To String

License

Open Source License

Declaration

public static String rectangleToString(Rectangle r) 

Method Source Code

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

import java.awt.*;

public class Main {

    public static String rectangleToString(Rectangle r) {
        StringBuilder buf = new StringBuilder();
        buf.append(String.valueOf(r.x));
        buf.append(",");
        buf.append(String.valueOf(r.y));
        buf.append(",");
        buf.append(String.valueOf(r.width));
        buf.append(",");
        buf.append(String.valueOf(r.height));
        return buf.toString();
    }/*w ww .  ja  va  2 s.co  m*/
}

Related

  1. getRectangle(Map bounds)
  2. getRectangle(Preferences prefs, String sName, int iDefaultWidth, int iDefaultHeight)
  3. getRectangle(Properties prop, final String key, final Rectangle def)
  4. getRectangle(String rectStr)
  5. newRectangle(int x1, int y1, int x2, int y2)
  6. rectangleToString(Rectangle r)
  7. rectangleToString(Rectangle rectangle)
  8. storeBounds(String name, Window window)
  9. stringToBounds(String str, Rectangle defaultRect)