C
- component typeD
- decoration typeI
- background typepublic class HotkeyLabelBackground<C extends WebHotkeyLabel,D extends IDecoration<C,D>,I extends HotkeyLabelBackground<C,D,I>> extends AbstractBackground<C,D,I>
WebHotkeyLabel
.WebHotkeyLabel
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected Color |
border
Border
Color . |
protected Color |
color
Background
Color . |
protected Integer |
round
Shape round.
|
protected Color |
spacing
Spacing
Color . |
id, opacity, overwrite
Constructor and Description |
---|
HotkeyLabelBackground() |
Modifier and Type | Method and Description |
---|---|
protected Color |
getBackgroundColor(C c,
D d)
Returns background
Color . |
protected Color |
getBorderColor(C c,
D d)
Returns border
Color . |
String |
getId() |
protected int |
getRound(C c,
D d)
Returns shape round.
|
protected Color |
getSpacingColor(C c,
D d)
Returns spacing
Color . |
void |
paint(Graphics2D g2d,
Rectangle bounds,
C c,
D d,
Shape shape)
Paints this element using the specified
Shape . |
activate, deactivate, getOpacity, isOverwrite
@NotNull public String getId()
getId
in interface Identifiable
getId
in class AbstractBackground<C extends WebHotkeyLabel,D extends IDecoration<C,D>,I extends HotkeyLabelBackground<C,D,I>>
protected int getRound(@NotNull C c, @NotNull D d)
c
- WebHotkeyLabel
that is being paintedd
- IDecoration
state@NotNull protected Color getBorderColor(@NotNull C c, @NotNull D d)
Color
.c
- WebHotkeyLabel
that is being paintedd
- IDecoration
stateColor
@NotNull protected Color getSpacingColor(@NotNull C c, @NotNull D d)
Color
.c
- WebHotkeyLabel
that is being paintedd
- IDecoration
stateColor
@NotNull protected Color getBackgroundColor(@NotNull C c, @NotNull D d)
Color
.c
- WebHotkeyLabel
that is being paintedd
- IDecoration
stateColor
public void paint(@NotNull Graphics2D g2d, @NotNull Rectangle bounds, @NotNull C c, @NotNull D d, @NotNull Shape shape)
IShapedElement
Shape
.g2d
- Graphics2D
bounds
- painting boundsc
- JComponent
that is being paintedd
- IDecoration
stateshape
- Shape
of the painted elementCopyright © 2020. All rights reserved.