public class COutlineHelper extends Object
Modifier and Type | Field and Description |
---|---|
static AffineTransform |
atRot90SclX |
static AffineTransform |
tRot90CCW |
static AffineTransform |
tRot90CW |
static AffineTransform |
tSclX |
static AffineTransform |
tSclY |
Constructor and Description |
---|
COutlineHelper() |
Modifier and Type | Method and Description |
---|---|
static Shape |
CreateSelectedTabShape(int cornerRadius,
int w,
int h,
boolean firstTab)
Creates the selected tab shape with round edge at left and curve at right side.
|
static Shape |
CreateUnselectedTabShape(int cornerRadius,
int w,
int h,
boolean firstTab,
boolean forClip,
boolean beforeSelected)
Creates the shape of an unselected tab for clipping and for border painting.
|
static Shape |
Modify4BottomSide(Shape src)
Modifies the shape for bottom side.
|
static Shape |
Modify4LeftSide(Shape src)
Modifies the shape for left side.
|
static Shape |
Modify4RightSide(Shape src)
Modifies the shape for right side.
|
static Shape |
TranslateShapeTo(int x,
int y,
Shape s)
Translates the specified shape.
|
public static AffineTransform tRot90CW
public static AffineTransform tRot90CCW
public static AffineTransform atRot90SclX
public static AffineTransform tSclY
public static AffineTransform tSclX
public static Shape CreateSelectedTabShape(int cornerRadius, int w, int h, boolean firstTab)
Creates the selected tab shape with round edge at left and curve at right side. _____________________________ / -_ | \_ | -_ | -_ | --__
cornerRadius
- w
- h
- firstTab
- Shape without the left edge and rounded corner (if true)public static Shape CreateUnselectedTabShape(int cornerRadius, int w, int h, boolean firstTab, boolean forClip, boolean beforeSelected)
Creates the shape of an unselected tab for clipping and for border painting. If the tab is left of the selected, it will have a rounded edge left. Otherwise right. If the shape is not for clipping, only the needed border path is created. before selected: _________________________________________ / | | | | | after selected: _________________________________________ \ | | | | |
w
- h
- firstTab
- forClip
- beforeSelected
- public static Shape TranslateShapeTo(int x, int y, Shape s)
x
- Distance on x-axis to translate.y
- Distance on y-axis to translate.s
- public static Shape Modify4LeftSide(Shape src)
src
- The top side shape.public static Shape Modify4RightSide(Shape src)
src
- The top side shape.