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.Rectangle;

public class Main {
    public static String rectangleToString(Rectangle r) {
        return r.x + "," + r.y + "," + r.width + "," + r.height;
    }//from w  ww  .  j  ava 2  s.  c o  m
}

Related

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