Class DefaultFigureFactory
- java.lang.Object
-
- com.bc.ceres.swing.figure.support.DefaultFigureFactory
-
- All Implemented Interfaces:
FigureFactory
public class DefaultFigureFactory extends Object implements FigureFactory
-
-
Constructor Summary
Constructors Constructor Description DefaultFigureFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ShapeFigure
createLineFigure(Shape geometry, FigureStyle style)
PointFigure
createPointFigure(Point2D geometry, FigureStyle style)
ShapeFigure
createPolygonFigure(Shape geometry, FigureStyle style)
FigureStyle
deriveSelectedStyle(FigureStyle style)
-
-
-
Method Detail
-
createPointFigure
public PointFigure createPointFigure(Point2D geometry, FigureStyle style)
- Specified by:
createPointFigure
in interfaceFigureFactory
-
createLineFigure
public ShapeFigure createLineFigure(Shape geometry, FigureStyle style)
- Specified by:
createLineFigure
in interfaceFigureFactory
-
createPolygonFigure
public ShapeFigure createPolygonFigure(Shape geometry, FigureStyle style)
- Specified by:
createPolygonFigure
in interfaceFigureFactory
-
deriveSelectedStyle
public FigureStyle deriveSelectedStyle(FigureStyle style)
-
-