Package ej.mwt.style.outline.border
Class FlexibleRectangularBorder
- java.lang.Object
-
- ej.mwt.style.outline.FlexibleOutline
-
- ej.mwt.style.outline.border.FlexibleRectangularBorder
-
- All Implemented Interfaces:
Outline
public class FlexibleRectangularBorder extends FlexibleOutline
Represents and draw a rectangular colored border with one color.The thicknesses are stored as a
charfor heap optimization and therefore cannot exceed65535.
-
-
Constructor Summary
Constructors Constructor Description FlexibleRectangularBorder(int color, int top, int right, int bottom, int left)Creates a flexible rectangular border specifying its color and edges thickness.
-
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.booleanequals(java.lang.Object obj)intgetColor()Gets the color.inthashCode()
-
-
-
Constructor Detail
-
FlexibleRectangularBorder
public FlexibleRectangularBorder(int color, int top, int right, int bottom, int left)Creates a flexible rectangular border specifying its color and edges thickness.The given thickness values are clamped between
0andCharacter.MAX_VALUE.- Parameters:
color- the color.top- the top thickness.right- the right thickness.bottom- the bottom thickness.left- the left thickness.
-
-
Method Detail
-
getColor
public int getColor()
Gets the color.- Returns:
- the color.
-
apply
public void apply(ej.microui.display.GraphicsContext g, Size size)Description copied from interface:OutlineApplies the outline on a graphics context.- Specified by:
applyin interfaceOutline- Overrides:
applyin classFlexibleOutline- Parameters:
g- the graphics context.size- the size to apply on.
-
equals
public boolean equals(@Nullable java.lang.Object obj)- Specified by:
equalsin interfaceOutline- Overrides:
equalsin classFlexibleOutline
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceOutline- Overrides:
hashCodein classFlexibleOutline
-
-