Package ej.mwt.style.outline.border
Class RoundedBorder
- java.lang.Object
-
- ej.mwt.style.outline.border.RoundedBorder
-
- All Implemented Interfaces:
Outline
public class RoundedBorder extends java.lang.Object implements Outline
Draws a uniform border with round corners.May be associated with
RoundedBackgroundor used on its own.The corner radius and thickness are stored as a
charfor heap optimization and therefore cannot exceed65535.
-
-
Constructor Summary
Constructors Constructor Description RoundedBorder(int color, int cornerRadius, int thickness)Creates a rounded border specifying its attributes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(ej.microui.display.GraphicsContext g, Size size)Applies the outline on a graphics context.voidapply(Outlineable outlineable)Removes the thickness of this outline from the given object.booleanequals(java.lang.Object obj)intgetColor()Gets the color.intgetCornerRadius()Gets the corner radius.intgetThickness()Gets the thickness.inthashCode()
-
-
-
Constructor Detail
-
RoundedBorder
public RoundedBorder(int color, int cornerRadius, int thickness)Creates a rounded border specifying its attributes.The given corner radius and thickness are clamped between
0andCharacter.MAX_VALUE.- Parameters:
color- the color.cornerRadius- the corner radius.thickness- the border thickness.
-
-
Method Detail
-
getColor
public int getColor()
Gets the color.- Returns:
- the color.
-
getCornerRadius
public int getCornerRadius()
Gets the corner radius.- Returns:
- the corner radius.
-
getThickness
public int getThickness()
Gets the thickness.- Returns:
- the thickness.
-
apply
public void apply(Outlineable outlineable)
Description copied from interface:OutlineRemoves the thickness of this outline from the given object.
-
apply
public void apply(ej.microui.display.GraphicsContext g, Size size)Description copied from interface:OutlineApplies the outline on a graphics context.
-
equals
public boolean equals(@Nullable java.lang.Object obj)
-
-