Java Doc for Rectangle.java in  » Report » datavision-1.1.0 » jimm » datavision » field » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Report » datavision 1.1.0 » jimm.datavision.field 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.util.Observable
      jimm.datavision.field.Rectangle

Rectangle
public class Rectangle extends Observable implements Writeable(Code)
A rectangle with double coordinates.
author:
   Jim Menard, jimm@io.com


Field Summary
public  doubleheight
     Warning: only read the height.
public  doublewidth
     Warning: only read the width.
public  doublex
     Warning: only read the x coordinate.
public  doubley
     Warning: only read the y coordinate.

Constructor Summary
public  Rectangle()
     Constructor.
public  Rectangle(java.awt.Rectangle r)
     Constructor.
public  Rectangle(Rectangle r)
     Constructor.
public  Rectangle(double x, double y, double width, double height)
     Constructor.

Method Summary
public  doublegetHeight()
     Returns the height.
public  doublegetWidth()
     Returns the width.
public  doublegetX()
     Returns the x coordinate.
public  doublegetY()
     Returns the y coordinate.
public  voidsetBounds(double newX, double newY, double newWidth, double newHeight)
     Sets everything at once.
public  voidsetBounds(jimm.datavision.field.Rectangle r)
     Sets everything at once.
public  voidsetBounds(java.awt.Rectangle r)
     Sets everything at once.
public  voidsetHeight(double newHeight)
     Sets the height.
public  voidsetWidth(double newWidth)
     Sets the width.
public  voidsetX(double newX)
     Sets the x coordinate.
public  voidsetY(double newY)
     Sets the y coordinate.
public  StringtoString()
     Returns a string representation of this rectangle.
public  voidwriteXML(XMLWriter out)
     Writes this rectangle as an XML tag.

Field Detail
height
public double height(Code)
Warning: only read the height. When writing, make sure to use setter method so observers are notified.



width
public double width(Code)
Warning: only read the width. When writing, make sure to use setter method so observers are notified.



x
public double x(Code)
Warning: only read the x coordinate. When writing, make sure to use setter method so observers are notified.



y
public double y(Code)
Warning: only read the y coordinate. When writing, make sure to use setter method so observers are notified.




Constructor Detail
Rectangle
public Rectangle()(Code)
Constructor.



Rectangle
public Rectangle(java.awt.Rectangle r)(Code)
Constructor.
Parameters:
  r - the other kind of rectangle



Rectangle
public Rectangle(Rectangle r)(Code)
Constructor.
Parameters:
  r - another rectangle



Rectangle
public Rectangle(double x, double y, double width, double height)(Code)
Constructor.
Parameters:
  x - a double
Parameters:
  y - a double
Parameters:
  width - a double
Parameters:
  height - a double




Method Detail
getHeight
public double getHeight()(Code)
Returns the height. the doubleing-point height



getWidth
public double getWidth()(Code)
Returns the width. the doubleing-point width



getX
public double getX()(Code)
Returns the x coordinate. the doubleing-point x coordinate



getY
public double getY()(Code)
Returns the y coordinate. the doubleing-point y coordinate



setBounds
public void setBounds(double newX, double newY, double newWidth, double newHeight)(Code)
Sets everything at once.
Parameters:
  newX - the new x coordinate
Parameters:
  newY - the new y coordinate
Parameters:
  newWidth - the new width
Parameters:
  newHeight - the new height



setBounds
public void setBounds(jimm.datavision.field.Rectangle r)(Code)
Sets everything at once.
Parameters:
  r - a jimm.datavision.Rectangle



setBounds
public void setBounds(java.awt.Rectangle r)(Code)
Sets everything at once.
Parameters:
  r - a java.awt.Rectangle



setHeight
public void setHeight(double newHeight)(Code)
Sets the height.
Parameters:
  newHeight - the new height



setWidth
public void setWidth(double newWidth)(Code)
Sets the width.
Parameters:
  newWidth - the new width



setX
public void setX(double newX)(Code)
Sets the x coordinate.
Parameters:
  newX - the new x coordinate



setY
public void setY(double newY)(Code)
Sets the y coordinate.
Parameters:
  newY - the new y coordinate



toString
public String toString()(Code)
Returns a string representation of this rectangle. a string representing this rectangle



writeXML
public void writeXML(XMLWriter out)(Code)
Writes this rectangle as an XML tag.
Parameters:
  out - a writer that knows how to write XML



Methods inherited from java.util.Observable
public synchronized void addObserver(Observer o)(Code)(Java Doc)
protected synchronized void clearChanged()(Code)(Java Doc)
public synchronized int countObservers()(Code)(Java Doc)
public synchronized void deleteObserver(Observer o)(Code)(Java Doc)
public synchronized void deleteObservers()(Code)(Java Doc)
public synchronized boolean hasChanged()(Code)(Java Doc)
public void notifyObservers()(Code)(Java Doc)
public void notifyObservers(Object arg)(Code)(Java Doc)
protected synchronized void setChanged()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.