Interface KanbanCardRenderer
- All Known Implementing Classes:
DefaultKanbanCardRenderer
public interface KanbanCardRenderer
Paints the cards of a
KanbanBoard, and says how tall each is.-
Method Summary
Modifier and TypeMethodDescriptionintgetCardHeight(KanbanBoard board, KanbanCard card, int width) The height of a card that iswidthpixels wide, without the component aKanbanCardFactoryadds under it.voidpaintCard(Graphics g, KanbanBoard board, KanbanCard card, int x, int y, int w, int h, boolean selected, float lift) Paints a card into a rectangle.
-
Method Details
-
getCardHeight
The height of a card that iswidthpixels wide, without the component aKanbanCardFactoryadds under it. -
paintCard
void paintCard(Graphics g, KanbanBoard board, KanbanCard card, int x, int y, int w, int h, boolean selected, float lift) Paints a card into a rectangle.
Parameters
g: the graphics, with the colour and alpha the renderer may changeboard: the componentcard: the cardx,y,w,h: the card on screen; the bottomboard.getCardComponentHeight(card)pixels belong to its componentselected: true for the selected cardlift: how far the card is off the board, from 0 to 1, while it is dragged
-