public class ShapeStateStrokeHandler<V extends ShapeView<?>,S extends Shape<V>> extends Object implements ShapeStateHandler<V,S>
| Modifier and Type | Class and Description |
|---|---|
static class |
ShapeStateStrokeHandler.ShapeStrokeState |
| Constructor and Description |
|---|
ShapeStateStrokeHandler() |
ShapeStateStrokeHandler(BiConsumer<S,ShapeStateStrokeHandler.ShapeStrokeState> strokeShapeStateHandler) |
ShapeStateStrokeHandler(BiConsumer<S,ShapeStateStrokeHandler.ShapeStrokeState> strokeShapeStateHandler,
Function<ShapeState,String> stateColorProvider) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyState(ShapeState shapeState) |
ShapeStateHandler<V,S> |
forShape(S shape) |
protected S |
getShape() |
ShapeState |
getShapeState() |
ShapeState |
reset() |
void |
setStrokeWidthForActiveState(double activeStrokeWidth) |
ShapeStateHandler<V,S> |
shapeUpdated() |
public ShapeStateStrokeHandler()
public ShapeStateStrokeHandler(BiConsumer<S,ShapeStateStrokeHandler.ShapeStrokeState> strokeShapeStateHandler)
public ShapeStateStrokeHandler(BiConsumer<S,ShapeStateStrokeHandler.ShapeStrokeState> strokeShapeStateHandler, Function<ShapeState,String> stateColorProvider)
public void setStrokeWidthForActiveState(double activeStrokeWidth)
public ShapeStateHandler<V,S> forShape(S shape)
public ShapeStateHandler<V,S> shapeUpdated()
shapeUpdated in interface ShapeStateHandler<V extends ShapeView<?>,S extends Shape<V>>public void applyState(ShapeState shapeState)
applyState in interface ShapeStateHandler<V extends ShapeView<?>,S extends Shape<V>>public ShapeState reset()
public ShapeState getShapeState()
getShapeState in interface ShapeStateHandler<V extends ShapeView<?>,S extends Shape<V>>protected S getShape()
Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.