T
- Any class derived from Shape, currently Snake or Outlinepublic abstract class ShapeHandler<T extends Shape<?>> extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
endFrame
Last frame of Outline.
|
protected int |
startFrame
First frame of Outline.
|
Modifier and Type | Method and Description |
---|---|
int |
getEndFrame()
Gets the end frame.
|
int |
getStartFrame()
Gets the start frame.
|
protected int startFrame
Start and End frame fields are filled on Snake/Outline creation in handler. If segmentation
is Successful the Snake
/Outline
is created from current frame to last one in
stack. Therefore Snake
/Outline
exist between startFrame and
endFrame.
If Snake
/Outline
is deleted SnakeHandler.deleteStoreAt(int)
the
fields startFrame and endFrame are not updated (user can delete middle
Snake breaking continuity). This is why SnakeHandler.isStoredAt(int)
should be used
to verify whether there is valid object on frame.
protected int endFrame
Copyright © 2002–2019 Department of Computer Science, Warwick University. All rights reserved.