org.universAAL.ui.gui.swing.bluesteelLAF.support.collapsable
Class RoundedPolygon

Package class diagram package RoundedPolygon
java.lang.Object
  extended by org.universAAL.ui.gui.swing.bluesteelLAF.support.collapsable.RoundedPolygon

public class RoundedPolygon
extends Object

Snippet taken from http://samindaw.wordpress.com/2012/07/21/java-swing-2d-create-a-rounded-corner-polygon/

Author:
amedrano

Constructor Summary
RoundedPolygon()
           
 
Method Summary
static Point calculatePoint(Point p1, Point p2, float arcSize)
           
static GeneralPath getRoundedGeneralPath(Polygon polygon, float arcSize)
           
static GeneralPath getRoundedGeneralPathFromPoints(List<Point> l, float arcSize)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoundedPolygon

public RoundedPolygon()
Method Detail

getRoundedGeneralPath

public static GeneralPath getRoundedGeneralPath(Polygon polygon,
                                                float arcSize)

getRoundedGeneralPathFromPoints

public static GeneralPath getRoundedGeneralPathFromPoints(List<Point> l,
                                                          float arcSize)

calculatePoint

public static Point calculatePoint(Point p1,
                                   Point p2,
                                   float arcSize)


Copyright © 2014 universAAL Consortium. All Rights Reserved.