com.levigo.util.swing
Class BubbleBorder

java.lang.Object
  extended by 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)
           
 
Method Summary
 Insets getBorderInsets(Component c)
           
 boolean isBorderOpaque()
           
protected  void makeGapForTail(int radius, int tailSize, EffectLayout.Edge tailEdge)
           
 void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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.