Java Doc for RoundRectangle2D.java in  » 6.0-JDK-Core » AWT » java » awt » geom » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Home
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
26.ERP CRM Financial
27.ESB
28.Forum
29.Game
30.GIS
31.Graphic 3D
32.Graphic Library
33.Groupware
34.HTML Parser
35.IDE
36.IDE Eclipse
37.IDE Netbeans
38.Installer
39.Internationalization Localization
40.Inversion of Control
41.Issue Tracking
42.J2EE
43.J2ME
44.JBoss
45.JMS
46.JMX
47.Library
48.Mail Clients
49.Music
50.Net
51.Parser
52.PDF
53.Portal
54.Profiler
55.Project Management
56.Report
57.RSS RDF
58.Rule Engine
59.Science
60.Scripting
61.Search Engine
62.Security
63.Sevlet Container
64.Source Control
65.Swing Library
66.Template Engine
67.Test Coverage
68.Testing
69.UML
70.Web Crawler
71.Web Framework
72.Web Mail
73.Web Server
74.Web Services
75.Web Services apache cxf 2.2.6
76.Web Services AXIS2
77.Wiki Engine
78.Workflow Engines
79.XML
80.XML UI
Java Source Code / Java Documentation » 6.0 JDK Core » AWT » java.awt.geom 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.awt.geom.RectangularShape
      java.awt.geom.RoundRectangle2D

RoundRectangle2D
abstract public class RoundRectangle2D extends RectangularShape (Code)
The RoundRectangle2D class defines a rectangle with rounded corners defined by a location (x,y) , a dimension (w x h) , and the width and height of an arc with which to round the corners.

This class is the abstract superclass for all objects that store a 2D rounded rectangle. The actual storage representation of the coordinates is left to the subclass.
version:
   1.29, 05/05/07
author:
   Jim Graham
since:
   1.2


Inner Class :public static class Float extends RoundRectangle2D implements Serializable
Inner Class :public static class Double extends RoundRectangle2D implements Serializable


Constructor Summary
protected  RoundRectangle2D()
     This is an abstract class that cannot be instantiated directly.

Method Summary
public  booleancontains(double x, double y)
    
public  booleancontains(double x, double y, double w, double h)
    
public  booleanequals(Object obj)
     Determines whether or not the specified Object is equal to this RoundRectangle2D.
abstract public  doublegetArcHeight()
     Gets the height of the arc that rounds off the corners. the height of the arc that rounds off the cornersof this RoundRectangle2D.
abstract public  doublegetArcWidth()
     Gets the width of the arc that rounds off the corners.
public  PathIteratorgetPathIterator(AffineTransform at)
     Returns an iteration object that defines the boundary of this RoundRectangle2D.
public  inthashCode()
     Returns the hashcode for this RoundRectangle2D.
public  booleanintersects(double x, double y, double w, double h)
    
public  voidsetFrame(double x, double y, double w, double h)
    
abstract public  voidsetRoundRect(double x, double y, double w, double h, double arcWidth, double arcHeight)
     Sets the location, size, and corner radii of this RoundRectangle2D to the specified double values.
public  voidsetRoundRect(RoundRectangle2D rr)
     Sets this RoundRectangle2D to be the same as the specified RoundRectangle2D.


Constructor Detail
RoundRectangle2D
protected RoundRectangle2D()(Code)
This is an abstract class that cannot be instantiated directly. Type-specific implementation subclasses are available for instantiation and provide a number of formats for storing the information necessary to satisfy the various accessor methods below.
See Also:   java.awt.geom.RoundRectangle2D.Float
See Also:   java.awt.geom.RoundRectangle2D.Double
since:
   1.2




Method Detail
contains
public boolean contains(double x, double y)(Code)

since:
   1.2



contains
public boolean contains(double x, double y, double w, double h)(Code)

since:
   1.2



equals
public boolean equals(Object obj)(Code)
Determines whether or not the specified Object is equal to this RoundRectangle2D. The specified Object is equal to this RoundRectangle2D if it is an instance of RoundRectangle2D and if its location, size, and corner arc dimensions are the same as this RoundRectangle2D.
Parameters:
  obj - an Object to be compared with thisRoundRectangle2D. true if obj is an instanceof RoundRectangle2D and has the same values;false otherwise.
since:
   1.6



getArcHeight
abstract public double getArcHeight()(Code)
Gets the height of the arc that rounds off the corners. the height of the arc that rounds off the cornersof this RoundRectangle2D.
since:
   1.2



getArcWidth
abstract public double getArcWidth()(Code)
Gets the width of the arc that rounds off the corners. the width of the arc that rounds off the cornersof this RoundRectangle2D.
since:
   1.2



getPathIterator
public PathIterator getPathIterator(AffineTransform at)(Code)
Returns an iteration object that defines the boundary of this RoundRectangle2D. The iterator for this class is multi-threaded safe, which means that this RoundRectangle2D class guarantees that modifications to the geometry of this RoundRectangle2D object do not affect any iterations of that geometry that are already in process.
Parameters:
  at - an optional AffineTransform to be applied tothe coordinates as they are returned in the iteration, ornull if untransformed coordinates are desired the PathIterator object that returns thegeometry of the outline of thisRoundRectangle2D, one segment at a time.
since:
   1.2



hashCode
public int hashCode()(Code)
Returns the hashcode for this RoundRectangle2D. the hashcode for this RoundRectangle2D.
since:
   1.6



intersects
public boolean intersects(double x, double y, double w, double h)(Code)

since:
   1.2



setFrame
public void setFrame(double x, double y, double w, double h)(Code)

since:
   1.2



setRoundRect
abstract public void setRoundRect(double x, double y, double w, double h, double arcWidth, double arcHeight)(Code)
Sets the location, size, and corner radii of this RoundRectangle2D to the specified double values.
Parameters:
  x - the X coordinate to which to set thelocation of this RoundRectangle2D
Parameters:
  y - the Y coordinate to which to set thelocation of this RoundRectangle2D
Parameters:
  w - the width to which to set thisRoundRectangle2D
Parameters:
  h - the height to which to set thisRoundRectangle2D
Parameters:
  arcWidth - the width to which to set the arc of thisRoundRectangle2D
Parameters:
  arcHeight - the height to which to set the arc of thisRoundRectangle2D
since:
   1.2



setRoundRect
public void setRoundRect(RoundRectangle2D rr)(Code)
Sets this RoundRectangle2D to be the same as the specified RoundRectangle2D.
Parameters:
  rr - the specified RoundRectangle2D
since:
   1.2



Methods inherited from java.awt.geom.RectangularShape
public Object clone()(Code)(Java Doc)
public boolean contains(Point2D p)(Code)(Java Doc)
public boolean contains(Rectangle2D r)(Code)(Java Doc)
public Rectangle getBounds()(Code)(Java Doc)
public double getCenterX()(Code)(Java Doc)
public double getCenterY()(Code)(Java Doc)
public Rectangle2D getFrame()(Code)(Java Doc)
abstract public double getHeight()(Code)(Java Doc)
public double getMaxX()(Code)(Java Doc)
public double getMaxY()(Code)(Java Doc)
public double getMinX()(Code)(Java Doc)
public double getMinY()(Code)(Java Doc)
public PathIterator getPathIterator(AffineTransform at, double flatness)(Code)(Java Doc)
abstract public double getWidth()(Code)(Java Doc)
abstract public double getX()(Code)(Java Doc)
abstract public double getY()(Code)(Java Doc)
public boolean intersects(Rectangle2D r)(Code)(Java Doc)
abstract public boolean isEmpty()(Code)(Java Doc)
abstract public void setFrame(double x, double y, double w, double h)(Code)(Java Doc)
public void setFrame(Point2D loc, Dimension2D size)(Code)(Java Doc)
public void setFrame(Rectangle2D r)(Code)(Java Doc)
public void setFrameFromCenter(double centerX, double centerY, double cornerX, double cornerY)(Code)(Java Doc)
public void setFrameFromCenter(Point2D center, Point2D corner)(Code)(Java Doc)
public void setFrameFromDiagonal(double x1, double y1, double x2, double y2)(Code)(Java Doc)
public void setFrameFromDiagonal(Point2D p1, Point2D p2)(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.