Package dataPlotsFX.clickPlotFX
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
ConstructorsConstructorDescriptionWritableImageSegment(int xpixels, int ypixels, int pixelstart) Create a writable image segment. - 
Method Summary
Modifier and TypeMethodDescriptionbooleanaddDrawnUnit(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.intcompareTo(ScrollingImageSegmenter.WritableImageSegment writableImage) Get the extra infolongConvenience function the start time in milliseconds.longConvenience function the start time in milliseconds.intGet the start time in pixels.booleansearchArrayReuseSet(long uidval) Check whether the UID value has been painted.voidsetExtraInfo(Number extraInfo) Set the extra info.voidsetPixelStart(int pixelstart) Set the pixel start time of the image.Methods inherited from class javafx.scene.image.WritableImage
getPixelWriterMethods 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 
- 
Constructor Details
- 
WritableImageSegment
public WritableImageSegment(int xpixels, int ypixels, int pixelstart) Create a writable image segment.- Parameters:
 xpixels- - the xpixelsypixels- - the y pixelstimestart- - 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
- Specified by:
 compareToin interfaceComparable<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
 - 
getExtraInfo
Get the extra info- Returns:
 - - the extra info
 
 - 
setExtraInfo
Set the extra info.- Parameters:
 extraInfo- - the extra info to send.
 
 -