Top Description Fields Constructors Methods
com.sun.glass.ui.gtk.screencast

pack-priv final Class TokenItem

extends Object
Class Inheritance
Imports
com.sun.javafx.geom.Dimension, .Rectangle, java.util.ArrayList, .Arrays, .List, java.util.stream.Collectors, .IntStream

Helper class used by TokenStorage as restore token record with its associated screen boundaries. It helps in serialization/deserialization of screen boundaries to/from string format. The screen boundary is represented as _x_y_width_height and can be repeated several times.

Field Summary

Modifier and TypeField and Description
pack-priv final List<Rectangle>
private static final int
private static final int
pack-priv final String

Constructor Summary

AccessConstructor and Description
public
TokenItem(String token, int[] allowedScreenBounds)

Method Summary

Modifier and TypeMethod and Description
public String
dump()

public boolean
public boolean
public boolean
public static TokenItem
parse(String token, Object input)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

allowedScreensBoundsback to summary
pack-priv final List<Rectangle> allowedScreensBounds
MAX_SIZEback to summary
private static final int MAX_SIZE
MIN_SIZEback to summary
private static final int MIN_SIZE
tokenback to summary
pack-priv final String token

Constructor Detail

TokenItemback to summary
public TokenItem(String token, int[] allowedScreenBounds)

Method Detail

dumpback to summary
public String dump()
hasAllScreensOfSameSizeback to summary
public boolean hasAllScreensOfSameSize(List<Dimension> screenSizes)
hasAllScreensWithExactMatchback to summary
public boolean hasAllScreensWithExactMatch(List<Rectangle> bounds)
hasValidBoundsback to summary
public boolean hasValidBounds()
parseback to summary
public static TokenItem parse(String token, Object input)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override