Package ej.mwt.style.outline
Class FlexibleOutline
- java.lang.Object
-
- ej.mwt.style.outline.FlexibleOutline
-
- All Implemented Interfaces:
Outline
- Direct Known Subclasses:
FlexibleRectangularBorder,FlexibleRectangularMulticoloredBorder
public class FlexibleOutline extends java.lang.Object implements Outline
Flexible outline that has a different thickness for each edge.The thicknesses are stored as a
charfor heap optimization and therefore cannot exceed65535.
-
-
Constructor Summary
Constructors Constructor Description FlexibleOutline(int top, int right, int bottom, int left)Creates a flexible outline specifying its thickness for each edge.
-
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)intgetBottom()Gets the bottom thickness.intgetLeft()Gets the left thickness.intgetRight()Gets the right thickness.intgetTop()Gets the top thickness.inthashCode()
-
-
-
Constructor Detail
-
FlexibleOutline
public FlexibleOutline(int top, int right, int bottom, int left)Creates a flexible outline specifying its thickness for each edge.The given thickness values are clamped between
0andCharacter.MAX_VALUE.- Parameters:
top- the top thickness.right- the right thickness.bottom- the bottom thickness.left- the left thickness.
-
-
Method Detail
-
getTop
public int getTop()
Gets the top thickness.- Returns:
- the top thickness.
-
getBottom
public int getBottom()
Gets the bottom thickness.- Returns:
- the bottom thickness.
-
getLeft
public int getLeft()
Gets the left thickness.- Returns:
- the left thickness.
-
getRight
public int getRight()
Gets the right thickness.- Returns:
- the right 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)
-
-