Package edu.wpi.cscore
Class VideoProperty
- java.lang.Object
-
- edu.wpi.cscore.VideoProperty
-
public class VideoProperty extends Object
A source or sink property.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVideoProperty.Kind
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intget()String[]getChoices()intgetDefault()VideoProperty.KindgetKind()static VideoProperty.KindgetKindFromInt(int kind)Convert from the numerical representation of kind to an enum type.intgetMax()intgetMin()StringgetName()intgetStep()StringgetString()booleanisBoolean()booleanisEnum()booleanisInteger()booleanisString()booleanisValid()voidset(int value)voidsetString(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
-
getName
public String getName()
-
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()
-
getString
public String getString()
-
setString
public void setString(String value)
-
getChoices
public String[] getChoices()
-
-