Package com.github.tadukoo.view.paint
Class NoPaint
java.lang.Object
com.github.tadukoo.view.paint.NoPaint
- All Implemented Interfaces:
SizablePaint
- Direct Known Subclasses:
NoPaintUIResource
No Paint is to be used when you don't actually want a Paint object, but need to specify a non-null value.
- Version:
- Alpha v.0.3
- Author:
- Logan Ferree (Tadukoo)
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
NoPaint
public NoPaint()
-
-
Method Details
-
getPaint
Creates aPaint
to be used based on the size of the object to be painted. The size is given because of some cases where it matters, e.g. the case of Gradients, where it determines where the points are placed.- Specified by:
getPaint
in interfaceSizablePaint
- Parameters:
size
- The Dimensions of the object to be painted- Returns:
- A
Paint
-
equals
-