Class ScrollingImageSegmenter.WritableImageSegment

java.lang.Object
javafx.scene.image.Image
javafx.scene.image.WritableImage
dataPlotsFX.clickPlotFX.ScrollingImageSegmenter.WritableImageSegment
All Implemented Interfaces:
Comparable<ScrollingImageSegmenter.WritableImageSegment>
Enclosing class:
ScrollingImageSegmenter

public class ScrollingImageSegmenter.WritableImageSegment extends javafx.scene.image.WritableImage implements Comparable<ScrollingImageSegmenter.WritableImageSegment>
A single segmenting of writable image. Contains a list of data that have already been painted on the image.
Author:
Jamie Macaulay
  • Property Summary

    Properties inherited from class javafx.scene.image.Image

    error, exception, height, progress, width
  • Constructor Summary

    Constructors
    Constructor
    Description
    WritableImageSegment(int xpixels, int ypixels, int pixelstart)
    Create a writable image segment.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    addDrawnUnit(long uidval)
    Add a unit to the array reuse set...this will result in the data unit not being drawn again until the buffer is reset.
    int
     
    Get the extra info
    long
    Convenience function the start time in milliseconds.
    long
    Convenience function the start time in milliseconds.
    int
    Get the start time in pixels.
     
    boolean
    searchArrayReuseSet(long uidval)
    Check whether the UID value has been painted.
    void
    setExtraInfo(Number extraInfo)
    Set the extra info.
    void
    setPixelStart(int pixelstart)
    Set the pixel start time of the image.

    Methods inherited from class javafx.scene.image.WritableImage

    getPixelWriter

    Methods inherited from class javafx.scene.image.Image

    cancel, errorProperty, exceptionProperty, getException, getHeight, getPixelReader, getProgress, getRequestedHeight, getRequestedWidth, getUrl, getWidth, heightProperty, isBackgroundLoading, isError, isPreserveRatio, isSmooth, progressProperty, widthProperty

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • WritableImageSegment

      public WritableImageSegment(int xpixels, int ypixels, int pixelstart)
      Create a writable image segment.
      Parameters:
      xpixels - - the xpixels
      ypixels - - the y pixels
      timestart - - the start time of the image in pixels from the first image in the whole segment list.
  • Method Details

    • setPixelStart

      public void setPixelStart(int pixelstart)
      Set the pixel start time of the image. This is the pixel start from the very first image.
      Parameters:
      pixelstart - - the pixel start.
    • getPixelStart

      public int getPixelStart()
      Get the start time in pixels.
    • getMillisStart

      public long getMillisStart()
      Convenience function the start time in milliseconds.
      Returns:
      the start time of the image in millis
    • getMillisEnd

      public long getMillisEnd()
      Convenience function the start time in milliseconds.
      Returns:
      the end time of the image in millis
    • compareTo

      public int compareTo(ScrollingImageSegmenter.WritableImageSegment writableImage)
      Specified by:
      compareTo in interface Comparable<ScrollingImageSegmenter.WritableImageSegment>
    • searchArrayReuseSet

      public boolean searchArrayReuseSet(long uidval)
      Check whether the UID value has been painted.
    • addDrawnUnit

      public boolean addDrawnUnit(long uidval)
      Add a unit to the array reuse set...this will result in the data unit not being drawn again until the buffer is reset.
      Parameters:
      uidval - - the UID value
      Returns:
      true if the set did not already contain the UID value
    • getScrollingPLot2DSegmenter

      public ScrollingImageSegmenter getScrollingPLot2DSegmenter()
    • getExtraInfo

      public Number getExtraInfo()
      Get the extra info
      Returns:
      - the extra info
    • setExtraInfo

      public void setExtraInfo(Number extraInfo)
      Set the extra info.
      Parameters:
      extraInfo - - the extra info to send.