Package org.hkmi2.aagbl
Class CRect
- java.lang.Object
-
- org.hkmi2.aagbl.CRect
-
public class CRect extends java.lang.ObjectComponent rectangle, that corresponds to a rectangle that was drawn on the supplied Ascii art drawing. Used internally by theGridBagLayoutBuilderand theLayoutParserwhen computing eachGridBagConstraints. Some fine-tuning can be achieved by changing the rect before the constraints get generated. This is usually done by methods in theAsciiArtGridBagLayoutclass, not directly on the CRect class.
-
-
Field Summary
Fields Modifier and Type Field Description intflagsflagsinthwidth ant heightinthalignhorizontal alignment : 1 left 2 centered 3 rightjava.awt.Insetsinsetsthe insets, default : Insets(5, 5, 5, 5)intipadxipad of x (0 by default)intipadyipad of y (0 by default)intlineOfNameline that contains the namejava.lang.Stringnamename of CRect (can be null if no name given)intvalignvertical alignment : 1 top 2 centered 3 bottomintwwidth ant heightdoubleweightxweight of x : if >= 0 will be used to force weightxdoubleweightyweight of y : if >= 0 will be used to force weightyintxx and y coordinatesintyx and y coordinates
-
Constructor Summary
Constructors Constructor Description CRect()Default constructor with no arguments
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringtoString()convert this CRect to String
-
-
-
Field Detail
-
name
public java.lang.String name
name of CRect (can be null if no name given)
-
x
public int x
x and y coordinates
-
y
public int y
x and y coordinates
-
w
public int w
width ant height
-
h
public int h
width ant height
-
flags
public int flags
flags
-
lineOfName
public int lineOfName
line that contains the name
-
halign
public int halign
horizontal alignment : 1 left 2 centered 3 right
-
valign
public int valign
vertical alignment : 1 top 2 centered 3 bottom
-
weightx
public double weightx
weight of x : if >= 0 will be used to force weightx
-
weighty
public double weighty
weight of y : if >= 0 will be used to force weighty
-
ipadx
public int ipadx
ipad of x (0 by default)
-
ipady
public int ipady
ipad of y (0 by default)
-
insets
public java.awt.Insets insets
the insets, default : Insets(5, 5, 5, 5)
-
-