Java Doc for Area.java in  » Chart » Chart2D_1.9.6k » net » sourceforge » chart2d » 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 » Chart » Chart2D_1.9.6k » net.sourceforge.chart2d 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   net.sourceforge.chart2d.Area

All known Subclasses:   net.sourceforge.chart2d.GraphArea,  net.sourceforge.chart2d.FontArea,  net.sourceforge.chart2d.PieArea,
Area
class Area (Code)
An Advanced Bordered Area. Allows auto and manual resizing and auto and manual positioning. Contains many public static variables for use when extending this class.

Basic Sizing and Colors:
The typical bordered area class will simply paint a border of a specified thickness within an area, where the inner edges of the area touch the outer edges of the border. This class can do much more. Each border can be set to a different thickness and color. This introduces the problem of handling the corners of the borders. If the left border has color green, and the top border has color red, which color is the top left corner? Each corner can be associated with any adjacent border.

Inner Space And Gaps:
Sometimes, some space between the thing bordered and the border is desired. That is, if bordering some text, then having some space between the text and the border may be desirable. The thickness of the gap between the the left, right, top, and bottom borders may each be individually set. The location and size of this inner space may be obtained directly.

Resizing And Growing Borders And Gaps:
The borders and gaps can automatically grow when the size is changed. In order to maintain the look of zooming in on something, the borders and gaps can grow with the resizing of the area. For example, if the area grows in the horizontal direction, then the left and right borders and gaps will grow respective of the amount of change in the area width, depending on this classes settings. If keeping any of the borders equal to any of the others is desireable, such as a "grow only when all grow" policy, then any border may be associated with any other border. The sizes of the associated borders will be equal to the least of them.

More Basics:
This area can have a background color, or no background at all. And each border and gap can be set to not exist, individually.

Locating: Automatically and Manually:
Sometimes the size of component to be bordered cannot be known until after the borders and gaps have been calculated (relevant when using growing borders and gaps). This class allows the available space, after subtracting borders and gaps, to obtained. The size of the component to be bordered can then be calculated, making sure it fits within this space. The size of the component can be passed to this class, this class will place the gaps and borderes around the component for a (near) perfect fit. This means that where to place this bordered area within the maximum area is an open question. This class allows options of automatic centering (both horizontally and vertically, justifying to the left, right, top, and/or bottom edges of the maximum area, and doing nothing such that the area can be manually set, and any combination thereof.

Examples:

  • No Growing And Border Encloses Maximum Area:
    setAutoSizes (true, true);
  • Growing And Border Encloses Maximum Area:
    setAutoSizes (false, true);
  • No Growing, Border Encloses Minimum Area, And Centered:
    setAutoSizes (true, false);
    setAutoJustifys (true, true);
    setJustifications (CENTER, CENTER);
  • Growing, Border Encloses Minimum Area, And Manually Located:
    setAutoSizes (false, false);
    setAutoJustifys (false, false);

Details Of Growing:
Growing is based on "model" sizes. By default, everything has a model size (the area, the borders, and the gaps). The defaults currently are the first maximum size setting for the area, 2 (for all borders), and 2 (for all gaps). Growing is accomplished by dividing the maximum area size by the model area size and applying this ratio the border and gap thicknesses. If growing in the horizontal direction, the width sizes are used. If growing in the vertical direction, the height sizes are used. If growing in both directions, then both are calculated and the lesser is used. However, all of these values can be changed. Ideally, one would set the model area size to your normal viewing size, and all of the inner components model sizes (borders and thicknesses) to the best sizes at this model area size. However, just setting the model area size to the normal viewing size of the area most likely will be sufficient. Generally, the initial size is the normal size, do set the model size to the initial size, use the resetAreaModel method before setting the maximum size. When you set the maximum size, the area model size will automatically reset itself to this size.

Notes:

  • This class assumes no null values. Pass zero based values intead. For example, new Point() instead of null.
  • Both Growing and shrinking are supported, and are the same. When is written, in these comments, gowing and shrinking is meant.


Field Summary
final static  intBETWEEN
     Indicates the betweem.
final static  intBOTTOM
     Indicates the bottom.
final static  intCENTER
     Indicates the center.
final static  intCENTERED
     Indicates the centered.
static  float[]CONTINUOUS
     Indicates the continuous.
static  float[]DASHED
     Indicates the dashed.
static  float[]DOTTED
     Indicates the dotted.
final static  intHEIGHT
     Indicates the height.
final static  intHORIZONTAL
     Indicates the horizontal.
final static  intLABELSBOTTOM
     Indicates the labels bottom.
final static  intLABELSLEFT
     Indicates the labels left.
final static  intLEFT
     Indicates the left.
final static  intLEFTBOTTOM
     Indicates the right bottom.
final static  intLEFTRIGHT
     Indicates the left right.
final static  intLEFTTOP
     Indicates the left top.
final static  intLESSER
     Indicates the lesser.
final static  intMAX
     Indicates the maximum.
final static  intMAXMODEL
     Indicates the model or maximum model.
final static  intMIN
     Indicates the minimum.
static  intNONE
     Indicates none.
final static  intRIGHT
     Indicates the right.
final static  intRIGHTBOTTOM
     Indicates the right bottom.
final static  intRIGHTTOP
     Indicates the right top.
final static  intTOP
     Indicates the top.
final static  intTOPBOTTOM
     Indicates the top bottom.
final static  intVERTICAL
     Indicates the vertical.
final static  intWIDTH
     Indicates the width.

Constructor Summary
 Area()
     Creates a new Area.

Method Summary
final  intapplyRatio(int model, float ratio)
     Applies the given ratio to the given integer.
Parameters:
  model - The integer.
Parameters:
  ratio - The ratio.
final  booleangetAreaNeedsUpdate()
     Indicates whether some property of this class has changed.
final  booleangetAutoSize(int which)
     Returns the auto sizing properties.
final  ColorgetBackgroundColor()
     Returns the color of the background.
final  booleangetBackgroundExistence()
     Returns whether there exists a background or not.
final  ColorgetBorderColor()
     Returns the color of the border (each border).
final  ColorgetBorderColor(int which)
     Returns the color of the border (specific border).
Parameters:
  which - Which border you want the color of (BOTTOM, TOP, LEFT, RIGHT).
final  booleangetBorderExistence()
     Gets whether there exists borders.
final  booleangetBorderExistence(int which)
    
final  intgetBorderThickness(int which)
     Returns the thickness of a border.
final  intgetBorderThickness()
     Returns the thickness of the border.
final  intgetBorderThicknessModel()
     Gets the thickness of the border model.
final  intgetBorderThicknessModel(int which)
     Gets the thickness of a border model.
final  booleangetGapExistence()
     Gets whether there exists gaps.
final  booleangetGapExistence(int which)
    
final  intgetGapThickness()
     Returns the thickness of one of the gaps.
final  intgetGapThickness(int which)
     Returns the thickness of one of the gaps.
final  intgetGapThicknessModel()
     Gets the thickness of the gap model.
final  intgetJustifications(int which)
     Returns the current justifications for the minimum area.
 intgetLightSource()
     Gets the source of light for gradient paint of the background.
final  intgetOffsetThickness()
     Returns the thickness of a border + the gap.
final  floatgetRatio(int which)
     Returns the specified ratio.
final  booleangetResetAreaModel()
     Returns whether the max model will be reset, in the next max sizing.
final  DimensiongetSize(int which)
     Returns the size of the area.
final  PointgetSizeLocation(int which)
     Returns the location of the area.
final  DimensiongetSpaceSize(int which)
     Returns the size of the space area.
final  PointgetSpaceSizeLocation(int which)
     Returns the space area location.
 voidpaintComponent(Graphics2D g2D)
     Paints this bordered area.
final  voidresetAreaModel(boolean reset)
     Resets the model for this class.
final  voidsetAutoJustifys(boolean horizontal, boolean vertical)
     Adjusts settings to enable/disable auto justification of a minimum area that is less than a maximum area.
final  voidsetAutoSizes(boolean maxModel, boolean min)
     Adjusts the settings that allow automatic (or default) sizing.
final  voidsetBackgroundColor(Color color)
     Adjusts the color of the background.
final  voidsetBackgroundExistence(boolean existence)
     Adjusts whether there exists a background or not.
final  voidsetBorderAssociations(boolean leftRight, boolean leftTop, boolean leftBottom, boolean rightTop, boolean rightBottom, boolean topBottom)
     Associates border thicknesses with other border thicknesses.
final  voidsetBorderColor(Color color)
     Sets the color of the border (each border).
final  voidsetBorderColors(Color left, Color right, Color top, Color bottom)
     Sets the color of each border, individually.
final  voidsetBorderCornerAssociations(int leftTop, int leftBottom, int rightTop, int rightBottom)
     Associates each corner with one border.
final  voidsetBorderExistence(boolean existences)
     Adjusts whether there exists borders.
final  voidsetBorderExistences(boolean left, boolean right, boolean top, boolean bottom)
     Adjusts whether there exists borders, each individually.
final  voidsetBorderThicknessModel(int thickness)
     Adjusts the thickness of the border models.
final  voidsetBorderThicknessModels(int left, int right, int top, int bottom)
     Adjusts the thickness of the border models.
final  voidsetCustomRatio(int which, boolean customize, float ratio)
     Specifies whether to customize a particular ratio, overriding the calculation of it.
final  voidsetGapAssociations(boolean leftRight, boolean leftTop, boolean leftBottom, boolean rightTop, boolean rightBottom, boolean topBottom)
     Associates gap thicknesses with other gap thicknesses.
final  voidsetGapExistence(boolean existence)
     Adjusts whether there exists gaps.
final  voidsetGapExistences(boolean left, boolean right, boolean top, boolean bottom)
     Adjusts whether there exists gaps, each individually.
final  voidsetGapThicknessModel(int thickness)
     Adjusts the thickness of the gap models.
final  voidsetGapThicknessModels(int left, int right, int top, int bottom)
     Adjusts the thickness of the gap models.
final  voidsetJustifications(int horizontal, int vertical)
     Adjusts the actual justifications of minimum areas that are less than maximum areas.
 voidsetLightSource(int source)
     Sets the source of light for gradient paint of the background.
final  voidsetLockRatios(boolean lock)
     Makes such that the widh and the heighh ratios are the same as the lesser ratio.
final  voidsetSize(int which, Dimension size)
     Sets the sizes of the areas.
final  voidsetSizeLocation(int which, Point location)
     Sets the location of a size/area.
Parameters:
  which - Which area to relocate.
final  voidsetSpaceSize(int which, Dimension size)
     Sets the size of the space; that is the area less the borders and gaps.
Parameters:
  which - Which space size to change.
final  voidsetSpaceSizeLocation(int which, Point location)
     Sets the location of an internal space area of a size area.
Parameters:
  which - Which space area to relocate.
final  voidupdateArea()
     Updates this area.

Field Detail
BETWEEN
final static int BETWEEN(Code)
Indicates the betweem.



BOTTOM
final static int BOTTOM(Code)
Indicates the bottom.



CENTER
final static int CENTER(Code)
Indicates the center.



CENTERED
final static int CENTERED(Code)
Indicates the centered.



CONTINUOUS
static float[] CONTINUOUS(Code)
Indicates the continuous.



DASHED
static float[] DASHED(Code)
Indicates the dashed.



DOTTED
static float[] DOTTED(Code)
Indicates the dotted.



HEIGHT
final static int HEIGHT(Code)
Indicates the height.



HORIZONTAL
final static int HORIZONTAL(Code)
Indicates the horizontal.



LABELSBOTTOM
final static int LABELSBOTTOM(Code)
Indicates the labels bottom.



LABELSLEFT
final static int LABELSLEFT(Code)
Indicates the labels left.



LEFT
final static int LEFT(Code)
Indicates the left.



LEFTBOTTOM
final static int LEFTBOTTOM(Code)
Indicates the right bottom.



LEFTRIGHT
final static int LEFTRIGHT(Code)
Indicates the left right.



LEFTTOP
final static int LEFTTOP(Code)
Indicates the left top.



LESSER
final static int LESSER(Code)
Indicates the lesser.



MAX
final static int MAX(Code)
Indicates the maximum.



MAXMODEL
final static int MAXMODEL(Code)
Indicates the model or maximum model.



MIN
final static int MIN(Code)
Indicates the minimum.



NONE
static int NONE(Code)
Indicates none.



RIGHT
final static int RIGHT(Code)
Indicates the right.



RIGHTBOTTOM
final static int RIGHTBOTTOM(Code)
Indicates the right bottom.



RIGHTTOP
final static int RIGHTTOP(Code)
Indicates the right top.



TOP
final static int TOP(Code)
Indicates the top.



TOPBOTTOM
final static int TOPBOTTOM(Code)
Indicates the top bottom.



VERTICAL
final static int VERTICAL(Code)
Indicates the vertical.



WIDTH
final static int WIDTH(Code)
Indicates the width.




Constructor Detail
Area
Area()(Code)
Creates a new Area.




Method Detail
applyRatio
final int applyRatio(int model, float ratio)(Code)
Applies the given ratio to the given integer.
Parameters:
  model - The integer.
Parameters:
  ratio - The ratio. The ratio multiplied by the integer.



getAreaNeedsUpdate
final boolean getAreaNeedsUpdate()(Code)
Indicates whether some property of this class has changed. True if some property has changed.



getAutoSize
final boolean getAutoSize(int which)(Code)
Returns the auto sizing properties. Both the max model area size and the min area size can be auto sized. Autosizing is based on the max area size. If autosizing, then the area is equal to the max area size.
Parameters:
  which - Which auto size property to return. Possible values areMAXMODEL and MIN. True, if this area is auto sizing.



getBackgroundColor
final Color getBackgroundColor()(Code)
Returns the color of the background. The color of the background.



getBackgroundExistence
final boolean getBackgroundExistence()(Code)
Returns whether there exists a background or not. If there is, then true.



getBorderColor
final Color getBorderColor()(Code)
Returns the color of the border (each border). The color of the border.



getBorderColor
final Color getBorderColor(int which)(Code)
Returns the color of the border (specific border).
Parameters:
  which - Which border you want the color of (BOTTOM, TOP, LEFT, RIGHT). The color of the chosen border.



getBorderExistence
final boolean getBorderExistence()(Code)
Gets whether there exists borders. All must exist for this to return true. If true, then the borders do not exist.



getBorderExistence
final boolean getBorderExistence(int which)(Code)



getBorderThickness
final int getBorderThickness(int which)(Code)
Returns the thickness of a border. The thickness of the particular border.



getBorderThickness
final int getBorderThickness()(Code)
Returns the thickness of the border. The thickness of the border.



getBorderThicknessModel
final int getBorderThicknessModel()(Code)
Gets the thickness of the border model. These values will be applied to a ratio to determine their final thicknesses. The ratio is the maximum size divided by the maximum model size. More information is in the introductory notes for this class. The model thickness for the border.



getBorderThicknessModel
final int getBorderThicknessModel(int which)(Code)
Gets the thickness of a border model. These values will be applied to a ratio to determine their final thicknesses. The ratio is the maximum size divided by the maximum model size. More information is in the introductory notes for this class. The model thickness for this border.



getGapExistence
final boolean getGapExistence()(Code)
Gets whether there exists gaps. All must exist for this to return true. If true, then the gaps do not exist.



getGapExistence
final boolean getGapExistence(int which)(Code)



getGapThickness
final int getGapThickness()(Code)
Returns the thickness of one of the gaps. Should be used only when all gaps have same thickness model. The thickness of the gap.



getGapThickness
final int getGapThickness(int which)(Code)
Returns the thickness of one of the gaps. Should be used only when all gaps have same thickness model.
Parameters:
  which - Which gap to return the thickness of. The thickness of the gap.



getGapThicknessModel
final int getGapThicknessModel()(Code)
Gets the thickness of the gap model. These values will be applied to a ratio to determine their final thicknesses. The ratio is the maximum size divided by the maximum model size. More information is in the introductory notes for this class. The model thickness for the gap.



getJustifications
final int getJustifications(int which)(Code)
Returns the current justifications for the minimum area. Justifications are used only when justifications are enabled. Justifications auto locate the minimum area within the maximum area. This is only used when auto minimum area sizing is disabled.
Parameters:
  which - Which justification to return. Possible values are HORIZONTALand VERTICAL. The justification. Possible values for a horizontaljustification are LEFT, RIGHT, and CENTER; values for a verticaljustification are TOP, BOTTOM, and CENTER.



getLightSource
int getLightSource()(Code)
Gets the source of light for gradient paint of the background. Possible values for the source parameter are: LEFT, RIGHT, TOP, BOTTOM, and NONE. Which side the light is coming from.



getOffsetThickness
final int getOffsetThickness()(Code)
Returns the thickness of a border + the gap. The thickness of the border + the gap.



getRatio
final float getRatio(int which)(Code)
Returns the specified ratio. Ratios area based on maximum area size divided by model area size. The width ratio uses the area widths. The height ratio uses the area heights. And the lesser ratio returns the lesser of these two. Updates everything before returning the value.
Parameters:
  which - Which ratio to return. Possible values are WIDTH, HEIGHT, andLESSER. The ratio; value is between 0 and 1.



getResetAreaModel
final boolean getResetAreaModel()(Code)
Returns whether the max model will be reset, in the next max sizing. True if the max model size needs to be reset.



getSize
final Dimension getSize(int which)(Code)
Returns the size of the area. The area size is the dimension enclosing the border. Updates everything before returning the value.
Parameters:
  which - Which size to return. Possible values are MAX, MAXMODEL, andMIN. The size of the area.



getSizeLocation
final Point getSizeLocation(int which)(Code)
Returns the location of the area. The location is the top left corner of the area enclosing the border. Updates everything before returning the value.
Parameters:
  which - Which size location to return. Possible values are MAX and MIN. The loation of the area.



getSpaceSize
final Dimension getSpaceSize(int which)(Code)
Returns the size of the space area. The size of the space area is the area size less the borders and gaps. Updates everything before returning the value.
Parameters:
  which - Which space area size to return. Possible values are MAX andMIN. The size of the space area.



getSpaceSizeLocation
final Point getSpaceSizeLocation(int which)(Code)
Returns the space area location. The space area is the area within the bordered area. It is the area (max or min) less borderss and gaps. Updates everything before returning the value.
Parameters:
  which - Which space area location to return. Posible values are MAXand MIN. The location of the space area.



paintComponent
void paintComponent(Graphics2D g2D)(Code)
Paints this bordered area. Paints borders and background if they exist. Updates everything before painting.
Parameters:
  g2D - The graphics context for calculations and painting.



resetAreaModel
final void resetAreaModel(boolean reset)(Code)
Resets the model for this class. The model is used for shrinking and growing of its components based on the maximum size of this class. If this method is called, then the next time the maximum size is set, this classes model maximum size will be made equal to the new maximum size. Effectively what this does is ensure that whenever this objects maximum size is equal to the one given, then all of the components will take on their default model sizes. Note: This is only useful when auto model max sizing is disabled.
Parameters:
  reset - True causes the max model size to be set upon the next maxsizing.



setAutoJustifys
final void setAutoJustifys(boolean horizontal, boolean vertical)(Code)
Adjusts settings to enable/disable auto justification of a minimum area that is less than a maximum area.
Parameters:
  horizontal - If true, then horizontal justification isenabled.
Parameters:
  vertical - If true, then vertical justification is enabled.



setAutoSizes
final void setAutoSizes(boolean maxModel, boolean min)(Code)
Adjusts the settings that allow automatic (or default) sizing. Both are on the maximum size which is required, and must be set to be useful.
Parameters:
  maxModel - If true, then the maximum model size will alwaysbe equal to the maximum size. This disables growing because it keeps theresizing ratios at 1. If false, then maximum model is constant; so if themaximum size changes then the ratios will adjust accordingly.
Parameters:
  min - If true, then the minimum size will be kept equal tothe maximum size. This means that the borders' outer edges will touchthe maximum size.



setBackgroundColor
final void setBackgroundColor(Color color)(Code)
Adjusts the color of the background. Doesn't change the background's existence.
Parameters:
  color - The color of the background.



setBackgroundExistence
final void setBackgroundExistence(boolean existence)(Code)
Adjusts whether there exists a background or not.
Parameters:
  existence - If true, then there is.



setBorderAssociations
final void setBorderAssociations(boolean leftRight, boolean leftTop, boolean leftBottom, boolean rightTop, boolean rightBottom, boolean topBottom)(Code)
Associates border thicknesses with other border thicknesses. Each possible association between the four borders can be represented by setting six booleans. When a border is associated with another border, then their thickness is equal to the lesser thickness between the two.
Parameters:
  leftRight - If true, then associates the left and rightborders.
Parameters:
  leftTop - If true, then associates the left and top borders.
Parameters:
  leftBottom - If true, then associates the left and bottomborders.
Parameters:
  rightTop - If true, then associates the right and top borders.
Parameters:
  rightBottom - If true, then associates the right and bottomborders.
Parameters:
  topBottom - If true, then associates the top and bottomborders.



setBorderColor
final void setBorderColor(Color color)(Code)
Sets the color of the border (each border).
Parameters:
  color - The color of the border.



setBorderColors
final void setBorderColors(Color left, Color right, Color top, Color bottom)(Code)
Sets the color of each border, individually.
Parameters:
  left - The color of the left border.
Parameters:
  right - The color of the right border.
Parameters:
  top - The color of the top border.
Parameters:
  bottom - The color of the bottom border.



setBorderCornerAssociations
final void setBorderCornerAssociations(int leftTop, int leftBottom, int rightTop, int rightBottom)(Code)
Associates each corner with one border. The corner will take on the same color as the border associated with it.
Parameters:
  leftTop - The border to associate with the leftTop corner.Possible values are LEFT and TOP.
Parameters:
  rightTop - The border to associate with the rightTop corner.Possible values are RIGHT and TOP.
Parameters:
  leftBottomThe - border to associate with the leftBottom corner.Possible values are LEFT and BOTTOM.
Parameters:
  rightBottom - The border to associate with the rightBottom corner.Possible values are RIGHT and BOTTOM.



setBorderExistence
final void setBorderExistence(boolean existences)(Code)
Adjusts whether there exists borders. If borders do not exist, then they are not used in calculations or in painting.
Parameters:
  existences - If true, then the borders do not exist.



setBorderExistences
final void setBorderExistences(boolean left, boolean right, boolean top, boolean bottom)(Code)
Adjusts whether there exists borders, each individually. If a border does not exist, then its is not used in calculations or in painting.
Parameters:
  left - If true, then the left border does exist.
Parameters:
  right - If true, then the right border does exist.
Parameters:
  top - If true, then the top border does exist.
Parameters:
  bottom - If true, then the bottom border does exist.



setBorderThicknessModel
final void setBorderThicknessModel(int thickness)(Code)
Adjusts the thickness of the border models. These values will be applied to a ratio to determine their final thicknesses. The ratio is the maximum size divided by the maximum model size. More information is in the introductory notes for this class.
Parameters:
  thickness - The model thickness for the border.



setBorderThicknessModels
final void setBorderThicknessModels(int left, int right, int top, int bottom)(Code)
Adjusts the thickness of the border models. These values will be applied to a ratio to determine their final thicknesses. The ratio is the maximum size divided by the maximum model size. More information is in the introductory notes for this class.
Parameters:
  left - The model thickness for the left border.
Parameters:
  right - The model thickness for the right border.
Parameters:
  top - The model thickness for the top border.
Parameters:
  bottom - The model thickness for the bottom border.



setCustomRatio
final void setCustomRatio(int which, boolean customize, float ratio)(Code)
Specifies whether to customize a particular ratio, overriding the calculation of it.
Parameters:
  which - Which ratio to customize.
Parameters:
  customize - Whether to customize the ratio.
Parameters:
  ratio - The custom ratio.



setGapAssociations
final void setGapAssociations(boolean leftRight, boolean leftTop, boolean leftBottom, boolean rightTop, boolean rightBottom, boolean topBottom)(Code)
Associates gap thicknesses with other gap thicknesses. Each possible association between the four gaps can be represented by setting six booleans. When a gap is associated with another gap, then their thickness is equal to the lesser thickness between the two.
Parameters:
  leftRight - If true, then associates the left and right gaps.
Parameters:
  leftTop - If true, then associates the left and top gaps.
Parameters:
  leftBottom - If true, then associates the left and bottomgaps.
Parameters:
  rightTop - If true, then associates the right and top gaps.
Parameters:
  rightBottom - If true, then associates the right and bottomgaps.
Parameters:
  topBottom - If true, then associates the top and bottom gaps.



setGapExistence
final void setGapExistence(boolean existence)(Code)
Adjusts whether there exists gaps. If a gap does not exist, then its is not used in calculations. This is equivalent to calling setGapExistences (boolean, boolean, boolean, boolean).
Parameters:
  existence - If true, then the gap exists.



setGapExistences
final void setGapExistences(boolean left, boolean right, boolean top, boolean bottom)(Code)
Adjusts whether there exists gaps, each individually. If a gap does not exist, then its is not used in calculations.
Parameters:
  left - If true, then the left gap does exist.
Parameters:
  right - If true, then the right gap does exist.
Parameters:
  top - If true, then the top gap does exist.
Parameters:
  bottom - If true, then the bottom gap does exist.



setGapThicknessModel
final void setGapThicknessModel(int thickness)(Code)
Adjusts the thickness of the gap models. These values will be applied to a ratio to determine their final thicknesses. The ratio is the maximum size divided by the maximum model size. More information is in the introductory notes for this class.
Parameters:
  thickness - The model thickness for the gap.



setGapThicknessModels
final void setGapThicknessModels(int left, int right, int top, int bottom)(Code)
Adjusts the thickness of the gap models. These values will be applied to a ratio to determine their final thicknesses. The ratio is the maximum size divided by the maximum model size. More information is in the introductory notes for this class.
Parameters:
  left - The model thickness for the left gap.
Parameters:
  right - The model thickness for the right gap.
Parameters:
  top - The model thickness for the top gap.
Parameters:
  bottom - The model thickness for the bottom gap.



setJustifications
final void setJustifications(int horizontal, int vertical)(Code)
Adjusts the actual justifications of minimum areas that are less than maximum areas. Justifications effect the locations of minimum areas. Either are only respected when their auto justification is enabled. For example, if horizontal justify is center, then the minimum area will be horizontally centered within the maximum area.
Parameters:
  horizontal - Sets the horizontal justification for the minimumarea. Possible values are LEFT, RIGHT and CENTER.
Parameters:
  vertical - Sets the vertical justification for the minimumarea. Possible values are LEFT, RIGHT and CENTER.



setLightSource
void setLightSource(int source)(Code)
Sets the source of light for gradient paint of the background. Possible values for the source parameter are: LEFT, RIGHT, TOP, BOTTOM, and NONE.
Parameters:
  source - Which side the light is coming from.



setLockRatios
final void setLockRatios(boolean lock)(Code)
Makes such that the widh and the heighh ratios are the same as the lesser ratio. If you want components to grow only if all of them grow, then lock ratios, true, will cause this.
Parameters:
  lock - True causes all the ratios to equal the lesser ratio.



setSize
final void setSize(int which, Dimension size)(Code)
Sets the sizes of the areas. If setting the maximum size and if resetAreaModel was called previously, then the maximum model size will be made equal to the maximum size; this ensures that all the default sizes of borders and gaps will be used at this maximum size; at this maximum size the resizing ratio will be 1.
Parameters:
  which - Which size to change. Possible values are MAX andMAXMODEL.
Parameters:
  size - The new size. Must not be null.



setSizeLocation
final void setSizeLocation(int which, Point location)(Code)
Sets the location of a size/area.
Parameters:
  which - Which area to relocate. MAX is the only possible acceptedvalue.
Parameters:
  location - The new point of the top left of the area. The outeredges of the left and top borders will touch this. Must not be null.



setSpaceSize
final void setSpaceSize(int which, Dimension size)(Code)
Sets the size of the space; that is the area less the borders and gaps.
Parameters:
  which - Which space size to change. Possible values are MIN.
Parameters:
  size - The new size. Must not be null.



setSpaceSizeLocation
final void setSpaceSizeLocation(int which, Point location)(Code)
Sets the location of an internal space area of a size area.
Parameters:
  which - Which space area to relocate. MIN is the only possiblevalue. If horizontal justification is true, then the x value will beignored. If vertical justification is true, then the y value will beignored.
Parameters:
  location - The new point of the top left of the space area. Theinner edges of the top and left gaps will touch this. Must not be null.



updateArea
final void updateArea()(Code)
Updates this area. This area maintains many variables. Calling this methods assures they are all updates with respect to eachother.



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.