net.quies.math.plot
Class TerminatorFactory
java.lang.Object
net.quies.math.plot.TerminatorFactory
public class TerminatorFactory
- extends Object
The factory produces shapes used to indicate a gap in the function line, i.e. mark nonexistence.
This default implementation uses circles.
- Since:
- 1.0
- Author:
- Pascal S. de Kloe
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TerminatorFactory
public TerminatorFactory()
- Since:
- 1.0
TerminatorFactory
public TerminatorFactory(float radius)
- Exists for backwards compatibility. Use
TerminatorFactory(double) instead.
- Parameters:
radius - the radius of the terminator shape.- Since:
- 1.0
TerminatorFactory
public TerminatorFactory(double radius)
- Parameters:
radius - the radius of the terminator shape.- Since:
- 1.5
getTerminator
protected Shape getTerminator(BigDecimal argument,
BigDecimal value,
BigDecimal xScalar,
BigDecimal yScalar)
- Produces a terminator.
- Parameters:
argument - the x-coordinate.value - the y-coordinate.xScalar - transforms horizontal graphical positions to x-coordinates.yScalar - transforms vertical graphical positions to y-coordinates.
- Returns:
- a terminator on position (
argument / xScalar, value / yScalar). - Since:
- 1.0