Getbackgroundpaint(), Getedge(), Setedge(int) – MiG InfoCom MiG Calendar JavaBeans User Manual

Page 5: Setexpandtocorner(int), Getbackgroundpaint, Getedge, Setedge, Setexpandtocorner

Advertising
background image

setExpandToCorner

public void setExpandToCorner(int corner)

Property: What corner, if any, the header should expand into if (if it exist, or rather has any space). Values are:

CORNER_EXPAND_NONE

- The header will not expand into any corner.

1.

CORNER_EXPAND_BOTH

- The header will expand into both adjacent corners.

2.

CORNER_EXPAND_BOTTOM_OR_RIGHT

- The header will expand into the bottom corner if this is a vertical (standing)

header and to the right corner if it's a horizontal header.

3.

CORNER_EXPAND_TOP_OR_LEFT

- The header will expand into the top corner if this is a vertical (standing) header

and to the left corner if it's a horizontal header.

4.

This method will recreate the header if the value changes.

Parameters:

corner

- The new value.

getEdge

public int getEdge()

Property: The edge (top, left, bottom, right) that this header should be placed at.

SwingConstants.TOP

- The header will be above the date area.

1.

SwingConstants.LEFT

- The header will be to the left of the date area.

2.

SwingConstants.BOTTOM

- The header will be to the right of the date area.

3.

SwingConstants.RIGHT

- The header will be below the date area.

4.

Returns:

The current value.

SwingConstants.TOP

is default.

setEdge

public void setEdge(int edge)

Property: The edge (top, left, bottom, right) that this header should be placed at.

SwingConstants.TOP

- The header will be above the date area.

1.

SwingConstants.LEFT

- The header will be to the left of the date area.

2.

SwingConstants.BOTTOM

- The header will be to the right of the date area.

3.

SwingConstants.RIGHT

- The header will be below the date area.

4.

This method will recreate the header if the value changes.

Parameters:

edge

- The new edge.

getBackgroundPaint

public java.awt.Paint getBackgroundPaint()

(continued on next page)

Page 5 of 196

com.miginfocom.beans.AbstractHeaderBean

Advertising