- java.lang.Object
-
- java.lang.Enum<GlcdBufferSize>
-
- com.ibasco.ucgdisplay.drivers.glcd.enums.GlcdBufferSize
-
- All Implemented Interfaces:
GlcdOptionValue<java.lang.Integer>
,java.io.Serializable
,java.lang.Comparable<GlcdBufferSize>
public enum GlcdBufferSize extends java.lang.Enum<GlcdBufferSize> implements GlcdOptionValue<java.lang.Integer>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FULL_FRAME_BUFFER
Keep a copy of the full display frame buffer in the microcontroller RAM.PAGE_BUFFER_1
Only one page of the display memory is stored in the microcontroller RAM.PAGE_BUFFER_2
Same as 1, but maintains two pages in the microcontroller RAM.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
java.lang.Class<java.lang.Integer>
getType()
java.lang.String
toString()
java.lang.Integer
toValue()
static GlcdBufferSize
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static GlcdBufferSize[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PAGE_BUFFER_1
public static final GlcdBufferSize PAGE_BUFFER_1
Only one page of the display memory is stored in the microcontroller RAM.Use a firstPage()/nextPage() loop for drawing on the display.
-
PAGE_BUFFER_2
public static final GlcdBufferSize PAGE_BUFFER_2
Same as 1, but maintains two pages in the microcontroller RAM. This will be up to two times faster than 1.
-
FULL_FRAME_BUFFER
public static final GlcdBufferSize FULL_FRAME_BUFFER
Keep a copy of the full display frame buffer in the microcontroller RAM. Use clearBuffer() to clear the RAM and sendBuffer() to transfer the microcontroller RAM to the display.
-
-
Method Detail
-
values
public static GlcdBufferSize[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (GlcdBufferSize c : GlcdBufferSize.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GlcdBufferSize valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getName
public java.lang.String getName()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<GlcdBufferSize>
-
toValue
public java.lang.Integer toValue()
- Specified by:
toValue
in interfaceGlcdOptionValue<java.lang.Integer>
-
getType
public java.lang.Class<java.lang.Integer> getType()
- Specified by:
getType
in interfaceGlcdOptionValue<java.lang.Integer>
-
-