
Public Member Functions | |
| PointCollector () | |
| PointCollector (int capacity) | |
| void | finalize () |
| Point | newPoint () |
| Point | newPoint (double x, double y) |
| void | recyclePoint (Point point) |
| void | setCapacity (int capacity) |
Private Attributes | |
| java.lang.ref.ReferenceQueue | queue = new java.lang.ref.ReferenceQueue() |
| Point | first = null |
| Point | last = null |
| int | recycled = 0 |
| int | created = 0 |
| int | size = 0 |
| int | capacity = 10 |
Insert the type's description here. Creation date: (31.03.2001 23:35:40)
| com::cosylab::gui::components::r2::chart::PointCollector::PointCollector | ( | ) | [inline] |
PointCollector constructor with no arguments.
| com::cosylab::gui::components::r2::chart::PointCollector::PointCollector | ( | int | capacity | ) | [inline] |
PointCollector constructor with no arguments.
| void com::cosylab::gui::components::r2::chart::PointCollector::finalize | ( | ) | [inline] |
| Point com::cosylab::gui::components::r2::chart::PointCollector::newPoint | ( | double | x, | |
| double | y | |||
| ) | [inline] |
Insert the method's description here. Creation date: (31.03.2001 23:38:04)
References newPoint(), com::cosylab::gui::components::r2::chart::Point::x, and com::cosylab::gui::components::r2::chart::Point::y.
| Point com::cosylab::gui::components::r2::chart::PointCollector::newPoint | ( | ) | [inline] |
Insert the method's description here. Creation date: (31.03.2001 23:38:04)
References created, first, com::cosylab::gui::components::r2::chart::Point::next, queue, recycled, and size.
Referenced by com::cosylab::gui::components::r2::chart::HistoryTrendPointService::addPoint(), newPoint(), and com::cosylab::gui::components::r2::chart::AutoscaleDataService::prepare().
| void com::cosylab::gui::components::r2::chart::PointCollector::recyclePoint | ( | Point | point | ) | [inline] |
Insert the method's description here. Creation date: (31.03.2001 23:46:49)
| point | si.ijs.kgb.chart.Point |
References capacity, first, last, com::cosylab::gui::components::r2::chart::Point::next, and size.
Referenced by com::cosylab::gui::components::r2::chart::AutoscaleDataService::prepare().
| void com::cosylab::gui::components::r2::chart::PointCollector::setCapacity | ( | int | capacity | ) | [inline] |
Sets capacity of catch. If catch contains more point than new capacity, they will not be released until recycled.
int com::cosylab::gui::components::r2::chart::PointCollector::capacity = 10 [private] |
Referenced by recyclePoint().
int com::cosylab::gui::components::r2::chart::PointCollector::created = 0 [private] |
Referenced by finalize(), and newPoint().
Point com::cosylab::gui::components::r2::chart::PointCollector::first = null [private] |
Referenced by newPoint(), and recyclePoint().
Point com::cosylab::gui::components::r2::chart::PointCollector::last = null [private] |
Referenced by recyclePoint().
java.lang.ref.ReferenceQueue com::cosylab::gui::components::r2::chart::PointCollector::queue = new java.lang.ref.ReferenceQueue() [private] |
Referenced by newPoint().
int com::cosylab::gui::components::r2::chart::PointCollector::recycled = 0 [private] |
Referenced by finalize(), and newPoint().
int com::cosylab::gui::components::r2::chart::PointCollector::size = 0 [private] |
Referenced by newPoint(), and recyclePoint().
1.6.2