Public Member Functions | |
TaskViewBorder (Color fillColor, Color strokeColor) | |
Constructs a TaskViewBorder with the given fill and stroke colors. | |
TaskViewBorder (Color fillColor, Color strokeColor, boolean isDropTarget) | |
Constructs a TaskViewBorder with the given color and state. | |
void | paintBorder (Component c, Graphics graphics, int x, int y, int width, int height) |
Paints this border. | |
Insets | getBorderInsets (Component c) |
Returns the insets of this border for the given component. | |
Private Member Functions | |
TaskViewBorder () | |
Private superclass constructor. | |
Private Attributes | |
Color | fillColor |
The color we will use to fill the background. | |
Color | strokeColor |
The color we will use for the border's stroke. | |
boolean | isDropTarget |
Whether this border should be drawn to indicate that its view is a drop target. | |
Static Private Attributes | |
static final int | CORNER_RADIUS = 8 |
The radius of the rounded corners of the border. |
edu.cmu.hcii.calo.view.task.TaskViewBorder.TaskViewBorder | ( | Color | fillColor, | |
Color | strokeColor | |||
) |
Constructs a TaskViewBorder with the given fill and stroke colors.
fillColor | the fill color to use | |
strokeColor | the stroke color to use |
edu.cmu.hcii.calo.view.task.TaskViewBorder.TaskViewBorder | ( | ) | [private] |
Private superclass constructor.
Do not use.
edu.cmu.hcii.calo.view.task.TaskViewBorder.TaskViewBorder | ( | Color | fillColor, | |
Color | strokeColor, | |||
boolean | isDropTarget | |||
) |
Constructs a TaskViewBorder with the given color and state.
fillColor | the fill color of the border | |
strokeColor | the stroke color of the border | |
isDropTarget | if true , the border will be drawn to indicate its associated view is a drop target |
void edu.cmu.hcii.calo.view.task.TaskViewBorder.paintBorder | ( | Component | c, | |
Graphics | graphics, | |||
int | x, | |||
int | y, | |||
int | width, | |||
int | height | |||
) |
Paints this border.
c | the component this border is attached to | |
graphics | the graphics context into which to paint this border | |
x | the x-coordinate of this border's top left corner | |
y | the y-coordinate of this border's top left corner | |
width | the width of this border's paint region | |
height | the height of this border's paint region |
Insets edu.cmu.hcii.calo.view.task.TaskViewBorder.getBorderInsets | ( | Component | c | ) |
Returns the insets of this border for the given component.
c | the component to return insets for |
final int edu.cmu.hcii.calo.view.task.TaskViewBorder.CORNER_RADIUS = 8 [static, private] |
The radius of the rounded corners of the border.
Color edu.cmu.hcii.calo.view.task.TaskViewBorder.fillColor [private] |
The color we will use to fill the background.
Color edu.cmu.hcii.calo.view.task.TaskViewBorder.strokeColor [private] |
The color we will use for the border's stroke.
boolean edu.cmu.hcii.calo.view.task.TaskViewBorder.isDropTarget [private] |
Whether this border should be drawn to indicate that its view is a drop target.