Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 40283 Details for
Bug 140056
org.eclipse.draw2d.geometry.Rectangle.Rectangle(Point,Point)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
Short main() routine showing strange behavior of Rectangles
RectangleSnippet.java (text/x-java), 1.21 KB, created by
Holger Oehm
on 2006-05-03 15:26:40 EDT
(
hide
)
Description:
Short main() routine showing strange behavior of Rectangles
Filename:
MIME Type:
Creator:
Holger Oehm
Created:
2006-05-03 15:26:40 EDT
Size:
1.21 KB
patch
obsolete
>/* > * Created on May 2, 2006 > * > * Copyright (C) 2006 Holger Oehm > * > * This program is free software; you can redistribute it and/or > * modify it under the terms of the GNU General Public License > * as published by the Free Software Foundation; either version 2 > * of the License, or any later version. > * > * This program is distributed in the hope that it will be useful, > * but WITHOUT ANY WARRANTY; without even the implied warranty of > * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > * GNU General Public License for more details. > * > */ >package org.eclipse.draw2d.bug; > >import org.eclipse.draw2d.geometry.Point; >import org.eclipse.draw2d.geometry.Rectangle; > >public class RectangleSnippet { > /** > * @param args > */ > public static void main(String[] args) { > final Point topLeft = new Point(0, 0); > final Point topRight = new Point(10, 0); > final Point bottomLeft = new Point(0, 10); > final Point bottomRight = new Point(10, 10); > final Rectangle rect1 = new Rectangle(topLeft, bottomRight); > final Rectangle rect2 = new Rectangle(topRight, bottomLeft); > System.out.println("rect1: " + rect1); > System.out.println("rect2: " + rect2); > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 140056
: 40283 |
40982
|
41136