Package grp25.captcha.tag
Interface Tag
-
- All Known Implementing Classes:
Binary
public interface TagThe interface for different tags of patches.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javafx.scene.paint.ColorgetColor()Get the color representing this tag.intgetSize()Get the number of different tags (e.g.Tagnext()Get the next tag.
-
-
-
Method Detail
-
getSize
int getSize()
Get the number of different tags (e.g. 2 for binary tag).- Returns:
- The number of different tags
-
next
Tag next()
Get the next tag. It should be circular: get the exact tag beck after calling this function several times.- Returns:
- The next tag.
-
getColor
javafx.scene.paint.Color getColor()
Get the color representing this tag.- Returns:
- The color representing this tag.
-
-