|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.GridBagConstraints
edu.columbia.cs.coms4701.util.GBC
public class GBC
GBC: A GUI convenience class to make GridBagLayout easier to deal with
Field Summary |
---|
Fields inherited from class java.awt.GridBagConstraints |
---|
anchor, BOTH, CENTER, EAST, fill, FIRST_LINE_END, FIRST_LINE_START, gridheight, gridwidth, gridx, gridy, HORIZONTAL, insets, ipadx, ipady, LAST_LINE_END, LAST_LINE_START, LINE_END, LINE_START, NONE, NORTH, NORTHEAST, NORTHWEST, PAGE_END, PAGE_START, RELATIVE, REMAINDER, SOUTH, SOUTHEAST, SOUTHWEST, VERTICAL, weightx, weighty, WEST |
Constructor Summary | |
---|---|
GBC(int gridx,
int gridy)
Constructs GBC with given gridx, gridy, with all other values set to default. |
|
GBC(int gridx,
int gridy,
int gridwidth,
int gridheight)
Constructs GBC with given gridx, gridy, gridwith, gridheight, with all other values set to default. |
Method Summary | |
---|---|
GBC |
setAnchor(int anchor)
Sets the anchor |
GBC |
setFill(int fill)
Sets the fill direction |
GBC |
setInsets(int distance)
Sets the insets of this cell |
GBC |
setInsets(int top,
int left,
int bottom,
int right)
Sets the insets of this cell, customized |
GBC |
setIpad(int ipadx,
int ipady)
Sets the internal padding |
GBC |
setWeight(double weightx,
double weighty)
Sets the cell weights. |
Methods inherited from class java.awt.GridBagConstraints |
---|
clone |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GBC(int gridx, int gridy)
public GBC(int gridx, int gridy, int gridwidth, int gridheight)
Method Detail |
---|
public GBC setAnchor(int anchor)
anchor
- the anchor value
public GBC setFill(int fill)
fill
- the fill direction
public GBC setWeight(double weightx, double weighty)
weightx
- the cell weight in x-directionweighty
- the cell weight in y-direction
public GBC setInsets(int distance)
distance
- the spacing in all directions
public GBC setInsets(int top, int left, int bottom, int right)
top
- spacing on topleft
- spacing on leftbottom
- spacing on bottomright
- spacing on right
public GBC setIpad(int ipadx, int ipady)
ipadx
- internal padding in x-directionipady
- internal padding in y-direction
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |