public class BasicRoundRectRep extends BasicShapeRep
ShapeRep.InvalidationType
Modifier and Type | Field and Description |
---|---|
private static float[] |
TMP_ARR |
Constructor and Description |
---|
BasicRoundRectRep() |
Modifier and Type | Method and Description |
---|---|
void |
draw(Graphics g,
Shape shape,
BaseBounds bounds) |
static void |
drawRoundRect(Graphics g,
RoundRectangle2D r) |
void |
fill(Graphics g,
Shape shape,
BaseBounds bounds) |
static void |
fillRoundRect(Graphics g,
RoundRectangle2D r) |
protected static boolean |
isAARequiredForFill(Graphics g,
RoundRectangle2D rrect) |
private static boolean |
notIntEnough(float f) |
private static boolean |
notOnIntGrid(float x1,
float y1,
float x2,
float y2) |
dispose, invalidate, is3DCapable
public void fill(Graphics g, Shape shape, BaseBounds bounds)
fill
in interface ShapeRep
fill
in class BasicShapeRep
public static void fillRoundRect(Graphics g, RoundRectangle2D r)
public void draw(Graphics g, Shape shape, BaseBounds bounds)
draw
in interface ShapeRep
draw
in class BasicShapeRep
public static void drawRoundRect(Graphics g, RoundRectangle2D r)
private static boolean notIntEnough(float f)
private static boolean notOnIntGrid(float x1, float y1, float x2, float y2)
protected static boolean isAARequiredForFill(Graphics g, RoundRectangle2D rrect)