Class NoPaint

java.lang.Object
com.github.tadukoo.view.paint.NoPaint
All Implemented Interfaces:
SizablePaint
Direct Known Subclasses:
NoPaintUIResource

public class NoPaint extends Object implements SizablePaint
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 Details

    • NoPaint

      public NoPaint()
  • Method Details

    • getPaint

      public Paint getPaint(Dimension size)
      Creates a Paint 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 interface SizablePaint
      Parameters:
      size - The Dimensions of the object to be painted
      Returns:
      A Paint
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object