com.levigo.util.swing
Class BubbleBorder
java.lang.Object
com.levigo.util.swing.BubbleBorder
- All Implemented Interfaces:
- Border
public class BubbleBorder
- extends Object
- implements Border
A border looking somewhat like a text bubble from a comic strip. Its main text area is
rectangular with rounded edges, not elliptical, though.
Constructor Summary |
BubbleBorder(int radius,
Insets inner,
Color strokeColor,
Color fillColor,
int tailSize,
EffectLayout.Edge tailEdge,
int tailOffset)
|
BubbleBorder(int radius,
int inner,
Color strokeColor,
Color fillColor,
int tailSize,
EffectLayout.Edge tailEdge,
int tailOffset)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BubbleBorder
public BubbleBorder(int radius,
int inner,
Color strokeColor,
Color fillColor,
int tailSize,
EffectLayout.Edge tailEdge,
int tailOffset)
BubbleBorder
public BubbleBorder(int radius,
Insets inner,
Color strokeColor,
Color fillColor,
int tailSize,
EffectLayout.Edge tailEdge,
int tailOffset)
makeGapForTail
protected void makeGapForTail(int radius,
int tailSize,
EffectLayout.Edge tailEdge)
- Parameters:
radius
- tailSize
- tailEdge
-
getBorderInsets
public Insets getBorderInsets(Component c)
- Specified by:
getBorderInsets
in interface Border
isBorderOpaque
public boolean isBorderOpaque()
- Specified by:
isBorderOpaque
in interface Border
paintBorder
public void paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height)
- Specified by:
paintBorder
in interface Border
Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.