Class AbstractShapeFunction<T>
- java.lang.Object
-
- org.jungrapht.visualization.decorators.AbstractShapeFunction<T>
-
- All Implemented Interfaces:
Function<T,Shape>,SettableShapeFunction<T>
- Direct Known Subclasses:
EllipseShapeFunction
public abstract class AbstractShapeFunction<T> extends Object implements SettableShapeFunction<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected Function<T,Float>aspectRatioFunctionstatic floatDEFAULT_ASPECT_RATIOstatic intDEFAULT_SIZEprotected ShapeFactory<T>factoryprotected Function<T,Integer>sizeFunction
-
Constructor Summary
Constructors Constructor Description AbstractShapeFunction()AbstractShapeFunction(Function<T,Integer> sizeFunction, Function<T,Float> aspectRatioFunction)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetAspectRatioFunction(Function<T,Float> aspectRatioFunction)voidsetSizeFunction(Function<T,Integer> sizeFunction)
-
-
-
Field Detail
-
factory
protected ShapeFactory<T> factory
-
DEFAULT_SIZE
public static final int DEFAULT_SIZE
- See Also:
- Constant Field Values
-
DEFAULT_ASPECT_RATIO
public static final float DEFAULT_ASPECT_RATIO
- See Also:
- Constant Field Values
-
-
Method Detail
-
setSizeFunction
public void setSizeFunction(Function<T,Integer> sizeFunction)
- Specified by:
setSizeFunctionin interfaceSettableShapeFunction<T>
-
setAspectRatioFunction
public void setAspectRatioFunction(Function<T,Float> aspectRatioFunction)
- Specified by:
setAspectRatioFunctionin interfaceSettableShapeFunction<T>
-
-