com.levigo.util.swing
Class Paths

java.lang.Object
  extended by com.levigo.util.swing.Paths

public class Paths
extends Object

A collection of utility methods related to Path2Ds and GeneralPaths.


Method Summary
static void appendRoundedRectangleCCW(GeneralPath p, float x, float y, float w, float h, float radius)
          Append a rounded rectangle at the given bounds using the given corner radius to the given path.
static void appendRoundedRectangleCW(GeneralPath p, float x, float y, float w, float h, float radius)
          Append a rounded rectangle at the given bounds using the given corner radius to the given path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

appendRoundedRectangleCW

public static void appendRoundedRectangleCW(GeneralPath p,
                                            float x,
                                            float y,
                                            float w,
                                            float h,
                                            float radius)
Append a rounded rectangle at the given bounds using the given corner radius to the given path. The path is constructed in clockwise direction.

Parameters:
p -
x -
y -
w -
h -
radius -

appendRoundedRectangleCCW

public static void appendRoundedRectangleCCW(GeneralPath p,
                                             float x,
                                             float y,
                                             float w,
                                             float h,
                                             float radius)
Append a rounded rectangle at the given bounds using the given corner radius to the given path. The path is constructed in counter-clockwise direction.

Parameters:
p -
x -
y -
w -
h -
radius -


Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.