Java Doc for RectangleInsets.java in  » Graphic-Library » jcommon-components » org » jfree » ui » 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 » Graphic Library » jcommon components » org.jfree.ui 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jfree.ui.RectangleInsets

RectangleInsets
public class RectangleInsets implements Serializable(Code)
Represents the insets for a rectangle, specified in absolute or relative terms. This class is immutable.
author:
   David Gilbert


Field Summary
final public static  RectangleInsetsZERO_INSETS
     A useful constant representing zero insets.

Constructor Summary
public  RectangleInsets()
     Creates a new instance with all insets initialised to 1.0.
public  RectangleInsets(double top, double left, double bottom, double right)
     Creates a new instance with the specified insets (as 'absolute' units).
public  RectangleInsets(UnitType unitType, double top, double left, double bottom, double right)
     Creates a new instance.

Method Summary
public  doublecalculateBottomInset(double height)
     Returns the bottom margin.
Parameters:
  height - the height of the base rectangle.
public  doublecalculateBottomOutset(double height)
     Returns the bottom margin.
Parameters:
  height - the height of the base rectangle.
public  doublecalculateLeftInset(double width)
     Returns the left margin.
Parameters:
  width - the width of the base rectangle.
public  doublecalculateLeftOutset(double width)
     Returns the left margin.
Parameters:
  width - the width of the base rectangle.
public  doublecalculateRightInset(double width)
     Returns the right margin.
Parameters:
  width - the width of the base rectangle.
public  doublecalculateRightOutset(double width)
     Returns the right margin.
Parameters:
  width - the width of the base rectangle.
public  doublecalculateTopInset(double height)
     Returns the top margin.
Parameters:
  height - the height of the base rectangle.
public  doublecalculateTopOutset(double height)
     Returns the top margin.
Parameters:
  height - the height of the base rectangle.
public  Rectangle2DcreateAdjustedRectangle(Rectangle2D base, LengthAdjustmentType horizontal, LengthAdjustmentType vertical)
     Creates an adjusted rectangle using the supplied rectangle, the insets specified by this instance, and the horizontal and vertical adjustment types.
Parameters:
  base - the base rectangle (null not permitted).
Parameters:
  horizontal - the horizontal adjustment type (null notpermitted).
Parameters:
  vertical - the vertical adjustment type (null not permitted).
public  Rectangle2DcreateInsetRectangle(Rectangle2D base)
     Creates an 'inset' rectangle.
Parameters:
  base - the base rectangle (null not permitted).
public  Rectangle2DcreateInsetRectangle(Rectangle2D base, boolean horizontal, boolean vertical)
     Creates an 'inset' rectangle.
public  Rectangle2DcreateOutsetRectangle(Rectangle2D base)
     Creates an outset rectangle.
Parameters:
  base - the base rectangle (null not permitted).
public  Rectangle2DcreateOutsetRectangle(Rectangle2D base, boolean horizontal, boolean vertical)
     Creates an outset rectangle.
public  booleanequals(Object obj)
     Tests this instance for equality with an arbitrary object.
Parameters:
  obj - the object (null permitted).
public  doubleextendHeight(double height)
     Extends the given height to allow for the insets.
Parameters:
  height - the height.
public  doubleextendWidth(double width)
     Extends the given width to allow for the insets.
Parameters:
  width - the width.
public  doublegetBottom()
     Returns the bottom insets.
public  doublegetLeft()
     Returns the left insets.
public  doublegetRight()
     Returns the right insets.
public  doublegetTop()
     Returns the top insets.
public  UnitTypegetUnitType()
     Returns the unit type (absolute or relative).
public  inthashCode()
     Returns a hash code for the object.
public  StringtoString()
     Returns a textual representation of this instance, useful for debugging purposes.
public  voidtrim(Rectangle2D area)
     Shrinks the given rectangle by the amount of these insets.
public  doubletrimHeight(double height)
     Trims the given height to allow for the insets.
Parameters:
  height - the height.
public  doubletrimWidth(double width)
     Trims the given width to allow for the insets.
Parameters:
  width - the width.

Field Detail
ZERO_INSETS
final public static RectangleInsets ZERO_INSETS(Code)
A useful constant representing zero insets.




Constructor Detail
RectangleInsets
public RectangleInsets()(Code)
Creates a new instance with all insets initialised to 1.0.
since:
   1.0.9



RectangleInsets
public RectangleInsets(double top, double left, double bottom, double right)(Code)
Creates a new instance with the specified insets (as 'absolute' units).
Parameters:
  top - the top insets.
Parameters:
  left - the left insets.
Parameters:
  bottom - the bottom insets.
Parameters:
  right - the right insets.



RectangleInsets
public RectangleInsets(UnitType unitType, double top, double left, double bottom, double right)(Code)
Creates a new instance.
Parameters:
  unitType - absolute or relative units (null not permitted).
Parameters:
  top - the top insets.
Parameters:
  left - the left insets.
Parameters:
  bottom - the bottom insets.
Parameters:
  right - the right insets.




Method Detail
calculateBottomInset
public double calculateBottomInset(double height)(Code)
Returns the bottom margin.
Parameters:
  height - the height of the base rectangle. The bottom margin (in Java2D units).



calculateBottomOutset
public double calculateBottomOutset(double height)(Code)
Returns the bottom margin.
Parameters:
  height - the height of the base rectangle. The bottom margin (in Java2D units).



calculateLeftInset
public double calculateLeftInset(double width)(Code)
Returns the left margin.
Parameters:
  width - the width of the base rectangle. The left margin (in Java2D units).



calculateLeftOutset
public double calculateLeftOutset(double width)(Code)
Returns the left margin.
Parameters:
  width - the width of the base rectangle. The left margin (in Java2D units).



calculateRightInset
public double calculateRightInset(double width)(Code)
Returns the right margin.
Parameters:
  width - the width of the base rectangle. The right margin (in Java2D units).



calculateRightOutset
public double calculateRightOutset(double width)(Code)
Returns the right margin.
Parameters:
  width - the width of the base rectangle. The right margin (in Java2D units).



calculateTopInset
public double calculateTopInset(double height)(Code)
Returns the top margin.
Parameters:
  height - the height of the base rectangle. The top margin (in Java2D units).



calculateTopOutset
public double calculateTopOutset(double height)(Code)
Returns the top margin.
Parameters:
  height - the height of the base rectangle. The top margin (in Java2D units).



createAdjustedRectangle
public Rectangle2D createAdjustedRectangle(Rectangle2D base, LengthAdjustmentType horizontal, LengthAdjustmentType vertical)(Code)
Creates an adjusted rectangle using the supplied rectangle, the insets specified by this instance, and the horizontal and vertical adjustment types.
Parameters:
  base - the base rectangle (null not permitted).
Parameters:
  horizontal - the horizontal adjustment type (null notpermitted).
Parameters:
  vertical - the vertical adjustment type (null not permitted). The inset rectangle.



createInsetRectangle
public Rectangle2D createInsetRectangle(Rectangle2D base)(Code)
Creates an 'inset' rectangle.
Parameters:
  base - the base rectangle (null not permitted). The inset rectangle.



createInsetRectangle
public Rectangle2D createInsetRectangle(Rectangle2D base, boolean horizontal, boolean vertical)(Code)
Creates an 'inset' rectangle.
Parameters:
  base - the base rectangle (null not permitted).
Parameters:
  horizontal - apply horizontal insets?
Parameters:
  vertical - apply vertical insets? The inset rectangle.



createOutsetRectangle
public Rectangle2D createOutsetRectangle(Rectangle2D base)(Code)
Creates an outset rectangle.
Parameters:
  base - the base rectangle (null not permitted). An outset rectangle.



createOutsetRectangle
public Rectangle2D createOutsetRectangle(Rectangle2D base, boolean horizontal, boolean vertical)(Code)
Creates an outset rectangle.
Parameters:
  base - the base rectangle (null not permitted).
Parameters:
  horizontal - apply horizontal insets?
Parameters:
  vertical - apply vertical insets? An outset rectangle.



equals
public boolean equals(Object obj)(Code)
Tests this instance for equality with an arbitrary object.
Parameters:
  obj - the object (null permitted). A boolean.



extendHeight
public double extendHeight(double height)(Code)
Extends the given height to allow for the insets.
Parameters:
  height - the height. The extended height.



extendWidth
public double extendWidth(double width)(Code)
Extends the given width to allow for the insets.
Parameters:
  width - the width. The extended width.



getBottom
public double getBottom()(Code)
Returns the bottom insets. The bottom insets.



getLeft
public double getLeft()(Code)
Returns the left insets. The left insets.



getRight
public double getRight()(Code)
Returns the right insets. The right insets.



getTop
public double getTop()(Code)
Returns the top insets. The top insets.



getUnitType
public UnitType getUnitType()(Code)
Returns the unit type (absolute or relative). This specifies whether the insets are measured as Java2D units or percentages. The unit type (never null).



hashCode
public int hashCode()(Code)
Returns a hash code for the object. A hash code.



toString
public String toString()(Code)
Returns a textual representation of this instance, useful for debugging purposes. A string representing this instance.



trim
public void trim(Rectangle2D area)(Code)
Shrinks the given rectangle by the amount of these insets.
Parameters:
  area - the area (null not permitted).



trimHeight
public double trimHeight(double height)(Code)
Trims the given height to allow for the insets.
Parameters:
  height - the height. The trimmed height.



trimWidth
public double trimWidth(double width)(Code)
Trims the given width to allow for the insets.
Parameters:
  width - the width. The trimmed width.



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.