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>
aspectRatioFunction
static float
DEFAULT_ASPECT_RATIO
static int
DEFAULT_SIZE
protected ShapeFactory<T>
factory
protected 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 void
setAspectRatioFunction(Function<T,Float> aspectRatioFunction)
void
setSizeFunction(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:
setSizeFunction
in interfaceSettableShapeFunction<T>
-
setAspectRatioFunction
public void setAspectRatioFunction(Function<T,Float> aspectRatioFunction)
- Specified by:
setAspectRatioFunction
in interfaceSettableShapeFunction<T>
-
-