Class JxnRealArrayCurve
- java.lang.Object
-
- JxnAbstractPainter
-
- JxnRealArrayCurve
-
- All Implemented Interfaces:
KmgXYPainter
public class JxnRealArrayCurve extends JxnAbstractPainter
Curve representation ofJxnRealArrayAlgebra
instance(s) (used internally).
ThelineType
parameter controls the display of a curve as follows:lineType
display 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 (-) form
intervals followed by a gap (.) ofn
data points (n+1
intervals)
examples: -1002 :-...-...-...-
-3000 :---.---.---
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description KmgDoubleBounds
getKmgDoubleBounds()
Returns the bounds of the graphical object (called internally).void
paint(KmgGraphicsScaler sk)
Paints the graphical object (called internally).static boolean
setLimiter(boolean limit)
Controls if to exclude outliers from automatic scaling.static int
setSize(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:KmgXYPainter
Returns the bounds of the graphical object (called internally).- Specified by:
getKmgDoubleBounds
in interfaceKmgXYPainter
- Overrides:
getKmgDoubleBounds
in classJxnAbstractPainter
-
paint
public void paint(KmgGraphicsScaler sk)
Description copied from interface:KmgXYPainter
Paints the graphical object (called internally).
-
-