Class JxnRealArrayCurve
- java.lang.Object
-
- JxnAbstractPainter
-
- JxnRealArrayCurve
-
- All Implemented Interfaces:
KmgXYPainter
public class JxnRealArrayCurve extends JxnAbstractPainter
Curve representation ofJxnRealArrayAlgebrainstance(s) (used internally).
ThelineTypeparameter controls the display of a curve as follows:lineTypedisplay of curve 0 solid line between data points (default) > 0 : symbols at data points 1 pixel at data point 2 ... 9 point of increasing size 10 step curve: data point at rear edge 11 ... 19 filled circle(11), square(12), rhomb(13), triangle(14...17), [x](18), [+](19) 20 step curve: data point at front edge 21 ... 29 outline of circle(21), square(22), rhomb(23), triangle(24...27), x(28), +(29) 30 vertical line 31 filled column 32 column (outline) > 32 character (e.g. @) for code (e.g. 64) given by lineType< 0 : broken line -1 ... -1000 solid line for | linetype| intervals followed by a gap of |linetype| intervals< -1000 lineType = -( 1000 * m + n )
solid line (-) formintervals followed by a gap (.) ofndata points (n+1intervals)
examples: -1002 :-...-...-...--3000 :---.---.---
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description KmgDoubleBoundsgetKmgDoubleBounds()Returns the bounds of the graphical object (called internally).voidpaint(KmgGraphicsScaler sk)Paints the graphical object (called internally).static booleansetLimiter(boolean limit)Controls if to exclude outliers from automatic scaling.static intsetSize(int newSize)Changes the default size for curve symbols.-
Methods inherited from class JxnAbstractPainter
applyStroke, applyStroke, lw, plot, plot90, setColor, setIgnoreBounds, setIgnoreBounds, setLineWidth, setLineWidthDefault, setStroke
-
-
-
-
Method Detail
-
setSize
public static int setSize(int newSize)
Changes the default size for curve symbols.- Returns:
- old size
-
setLimiter
public static boolean setLimiter(boolean limit)
Controls if to exclude outliers from automatic scaling. By default the automatic scaling determines the ends of the axes so that all values are shown in the diagram. UseJxnRealArrayCurve.setLimiter(true)to allow to exclude outliers from the scaling to avoid that isolated extreme values dominate.- Returns:
- old value
-
getKmgDoubleBounds
public KmgDoubleBounds getKmgDoubleBounds()
Description copied from interface:KmgXYPainterReturns the bounds of the graphical object (called internally).- Specified by:
getKmgDoubleBoundsin interfaceKmgXYPainter- Overrides:
getKmgDoubleBoundsin classJxnAbstractPainter
-
paint
public void paint(KmgGraphicsScaler sk)
Description copied from interface:KmgXYPainterPaints the graphical object (called internally).
-
-