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 SummaryFields Modifier and Type Field Description protected Function<T,Float>aspectRatioFunctionstatic floatDEFAULT_ASPECT_RATIOstatic intDEFAULT_SIZEprotected ShapeFactory<T>factoryprotected Function<T,Integer>sizeFunction
 - 
Constructor SummaryConstructors Constructor Description AbstractShapeFunction()AbstractShapeFunction(Function<T,Integer> sizeFunction, Function<T,Float> aspectRatioFunction)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetAspectRatioFunction(Function<T,Float> aspectRatioFunction)voidsetSizeFunction(Function<T,Integer> sizeFunction)
 
- 
- 
- 
Field Detail- 
factoryprotected ShapeFactory<T> factory 
 - 
DEFAULT_SIZEpublic static final int DEFAULT_SIZE - See Also:
- Constant Field Values
 
 - 
DEFAULT_ASPECT_RATIOpublic static final float DEFAULT_ASPECT_RATIO - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
setSizeFunctionpublic void setSizeFunction(Function<T,Integer> sizeFunction) - Specified by:
- setSizeFunctionin interface- SettableShapeFunction<T>
 
 - 
setAspectRatioFunctionpublic void setAspectRatioFunction(Function<T,Float> aspectRatioFunction) - Specified by:
- setAspectRatioFunctionin interface- SettableShapeFunction<T>
 
 
- 
 
-