Packages

class Patch extends View

This is a rectangular patch of pixels belonging to a image.

Linear Supertypes
View, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Patch
  2. View
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Patch(image: ImageProcessor, x: Int, y: Int, width: Int, height: Int)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  9. def getCornerX(): Int

    returns the image x coordinate of the upper left corner of the view

    returns the image x coordinate of the upper left corner of the view

    Definition Classes
    View
  10. def getCornerY(): Int

    returns the image y coordinate of the upper left corner of the view

    returns the image y coordinate of the upper left corner of the view

    Definition Classes
    View
  11. def getHeight(): Int
  12. def getImage(): ImageProcessor

    This returns the image that this is a view of.

    This returns the image that this is a view of.

    Definition Classes
    View
  13. def getSample(x: Int, y: Int, out: Array[Int]): Array[Int]

    Bounds checks the input to make sure it is part of the patch and then gets the sample from the view.

    Bounds checks the input to make sure it is part of the patch and then gets the sample from the view.

    Definition Classes
    PatchView
    Annotations
    @Override()
  14. def getWidth(): Int
  15. def getXOffset(): Int
  16. def getYOffset(): Int
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. def imageX(x: Int): Int
    Attributes
    protected[quilting]
    Definition Classes
    View
  19. def imageY(y: Int): Int
    Attributes
    protected[quilting]
    Definition Classes
    View
  20. def isAtLeftEdge(): Boolean

    returns true iff getCornerX() == 0

    returns true iff getCornerX() == 0

    Definition Classes
    View
  21. def isAtTopEdge(): Boolean

    returns true iff getCornerY() == 0

    returns true iff getCornerY() == 0

    Definition Classes
    View
  22. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. def nextColumn(overlap: Int): Boolean

    This moves the patch to the right in this row of patches if able.

    This moves the patch to the right in this row of patches if able. The amount moved will be width-overlap. This returns false on failure.

  25. def nextPixelRow(): Boolean

    This moves the patch one pixel down and all the way to the left.

    This moves the patch one pixel down and all the way to the left. If the move fails (because it puts part of the patch out of bounds) then this returns false.

  26. def nextRow(overlap: Int): Boolean

    This moves the patch to the left side of the image and down by height-overlap.

    This moves the patch to the left side of the image and down by height-overlap. If the move fails, this returns false.

  27. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  28. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  29. def putSample(x: Int, y: Int, values: Array[Int]): Unit

    Bounds checks the input to make sure it is part of the patch and then puts the sample into the view.

    Bounds checks the input to make sure it is part of the patch and then puts the sample into the view.

    Definition Classes
    PatchView
    Annotations
    @Override()
  30. def rightOnePixel(): Boolean

    This moves the patch one pixel to the right if able.

    This moves the patch one pixel to the right if able. If the move fails (because it puts part of the patch out of bounds) then this returns false.

  31. def setCorner(x: Int, y: Int): Unit

    This moves the patch to have the upper left corner at (x,y) in image coordinates.

    This moves the patch to have the upper left corner at (x,y) in image coordinates.

    Definition Classes
    PatchView
    Annotations
    @Override()
  32. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  33. def toString(): String

    returns a string with the corner, width, and height listed

    returns a string with the corner, width, and height listed

    Definition Classes
    Patch → AnyRef → Any
    Annotations
    @Override()
  34. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  35. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  36. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from View

Inherited from AnyRef

Inherited from Any

Ungrouped