Interface BrushHistory
public interface BrushHistory
-
Method Summary
Modifier and TypeMethodDescriptionprevious()Get and remove the head of the history.default voidpush(Pair<SchematicSet, Schematic> pair) Push a new entry into the registry.voidpush(SchematicSet set, Schematic schematic) Push a new entry into the registry.
-
Method Details
-
previous
Optional<Pair<SchematicSet,Schematic>> previous()Get and remove the head of the history.- Returns:
- current head of the history if present
-
push
Push a new entry into the registry. The element will become the new head of the history if it is not the head already.- Parameters:
set- setschematic- schematic
-
push
Push a new entry into the registry. The element will become the new head of the history if it is not the head already.- Parameters:
pair- set and schematic pair
-