Package edu.wpi.first.cscore
Class VideoProperty
- java.lang.Object
-
- edu.wpi.first.cscore.VideoProperty
-
public class VideoProperty extends Object
A source or sink property.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VideoProperty.Kind
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
get()
String[]
getChoices()
int
getDefault()
VideoProperty.Kind
getKind()
static VideoProperty.Kind
getKindFromInt(int kind)
Convert from the numerical representation of kind to an enum type.int
getMax()
int
getMin()
String
getName()
int
getStep()
String
getString()
boolean
isBoolean()
boolean
isEnum()
boolean
isInteger()
boolean
isString()
boolean
isValid()
void
set(int value)
void
setString(String value)
-
-
-
Method Detail
-
getKindFromInt
public static VideoProperty.Kind getKindFromInt(int kind)
Convert from the numerical representation of kind to an enum type.- Parameters:
kind
- The numerical representation of kind- Returns:
- The kind
-
getKind
public VideoProperty.Kind getKind()
-
isValid
public boolean isValid()
-
isBoolean
public boolean isBoolean()
-
isInteger
public boolean isInteger()
-
isString
public boolean isString()
-
isEnum
public boolean isEnum()
-
get
public int get()
-
set
public void set(int value)
-
getMin
public int getMin()
-
getMax
public int getMax()
-
getStep
public int getStep()
-
getDefault
public int getDefault()
-
getChoices
public String[] getChoices()
-
-