public class ShapeStateAttributeHandler<V extends ShapeView> extends Object implements ShapeStateHandler
| Modifier and Type | Class and Description |
|---|---|
static class |
ShapeStateAttributeHandler.ShapeStateAttribute |
static class |
ShapeStateAttributeHandler.ShapeStateAttributes |
| Constructor and Description |
|---|
ShapeStateAttributeHandler() |
ShapeStateAttributeHandler(BiConsumer<V,ShapeStateAttributeHandler.ShapeStateAttributes> stateAttributesApplier) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyState(ShapeState shapeState) |
ShapeState |
getShapeState() |
V |
getShapeView() |
static <V extends ShapeView> |
newDefaultStateApplier() |
ShapeState |
reset() |
ShapeStateAttributeHandler<V> |
setView(Supplier<V> viewSupplier) |
ShapeStateAttributeHandler<V> |
shapeAttributesChanged() |
ShapeStateAttributeHandler<V> |
useAttributes(Function<ShapeState,ShapeStateAttributeHandler.ShapeStateAttributes> stateAttributesProvider) |
public ShapeStateAttributeHandler()
public ShapeStateAttributeHandler(BiConsumer<V,ShapeStateAttributeHandler.ShapeStateAttributes> stateAttributesApplier)
public static <V extends ShapeView> BiConsumer<V,ShapeStateAttributeHandler.ShapeStateAttributes> newDefaultStateApplier()
public ShapeStateAttributeHandler<V> useAttributes(Function<ShapeState,ShapeStateAttributeHandler.ShapeStateAttributes> stateAttributesProvider)
public ShapeStateAttributeHandler<V> setView(Supplier<V> viewSupplier)
public ShapeStateAttributeHandler<V> shapeAttributesChanged()
shapeAttributesChanged in interface ShapeStateHandlerpublic void applyState(ShapeState shapeState)
applyState in interface HasShapeStatepublic ShapeState reset()
reset in interface ShapeStateHandlerpublic ShapeState getShapeState()
getShapeState in interface ShapeStateHandlerpublic V getShapeView()
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.