public class CalendarBorderProperties extends Object
~12345 1XXXXX 2XoXoX 3XXXXX 4XoXoX 5XXXXXFor example: Row 1 of the border coordinate system contains the topmost border in the calendar panel. (The horizontal border above the weekday labels. This border is invisible by default.) Column 5 contains the rightmost possible border, which is the vertical border to the right of the calendar dates. Note that the border labels at "corner" or "intersection" coordinates can be visually very small, as small as 1x1 pixel. Also note that there is no border label at the following four border label coordinates: ((2,2) (4,2) (2,4) (4,4)). Including these coordinates in your specified range is acceptable and normal, but will have no effect on the empty spaces. Technical note: The border label coordinates do not refer to date labels, (or layout cells, or screen coordinates). They refer only to the array indexes of the JLabel elements, in the two-dimensional "borderLabels" array inside the CalendarPanel class.
Modifier and Type | Field and Description |
---|---|
Color |
backgroundColor
backgroundColor, This can specify a color for the borders, or null if you don't want to
change the color.
|
Point |
lowerRight
lowerRight, This is the lower right point (in the border coordinate system), of the "square"
of border coordinates that you would like to modify.
|
Integer |
thicknessInPixels
thicknessInPixels, This can specify a thickness for the borders (in pixels), or null if you
don't want to change the thickness.
|
Point |
upperLeft
upperLeft, This is the upper left point (in the border coordinate system), of the "square" of
border coordinates that you would like to modify.
|
Constructor and Description |
---|
CalendarBorderProperties()
Constructor, default.
|
CalendarBorderProperties(Point upperLeft,
Point lowerRight,
Color backgroundColor,
Integer thicknessInPixels)
Constructor, with properties.
|
Modifier and Type | Method and Description |
---|---|
CalendarBorderProperties |
clone()
clone, This function creates and returns a deep copy of this CalendarBorderProperties
instance.
|
public Point upperLeft
public Point lowerRight
public Color backgroundColor
public Integer thicknessInPixels
public CalendarBorderProperties clone()
Copyright © 2017. All rights reserved.