Lines Matching defs:poolPlotter
203 PoolPlotter poolPlotter = new PoolPlotter(objectName, name, isHeap);
204 proxyClient.addWeakPropertyChangeListener(poolPlotter);
206 poolPlotter.createSequence(usedKey, Messages.USED, usedColor, true);
207 poolPlotter.createSequence(committedKey, Messages.COMMITTED, committedColor, false);
208 poolPlotter.createSequence(maxKey, Messages.MAX, maxColor, false);
209 poolPlotter.createSequence(thresholdKey, Messages.THRESHOLD, thresholdColor, false);
210 poolPlotter.setUseDashedTransitions(thresholdKey, true);
213 plotterList.add(poolPlotter);
216 nonHeapPlotters.add(poolPlotter);
221 for (PoolPlotter poolPlotter : nonHeapPlotters) {
222 plotterList.add(poolPlotter);
286 PoolPlotter poolPlotter = (PoolPlotter)plotter;
287 ObjectName objectName = poolPlotter.objectName;
497 public void setValue(int poolIndex, PoolPlotter poolPlotter,
499 poolPlotter.value = value;
500 poolPlotter.threshold = threshold;
501 poolPlotter.max = max;
504 poolPlotters.add(poolPlotter);
505 if (poolPlotter.isHeap) {
506 poolPlotter.barX = nHeapPools * (barWidth + barGap);
511 poolPlotter.barX = nonHeapRect.x - leftMargin + nNonHeapPools * (barWidth + barGap);
516 poolPlotters.set(poolIndex, poolPlotter);
521 private void paintPoolBar(Graphics g, PoolPlotter poolPlotter) {
522 Rectangle barRect = getBarRect(poolPlotter);
526 long value = poolPlotter.value;
527 long max = poolPlotter.max;
536 long threshold = poolPlotter.threshold;
591 for (PoolPlotter poolPlotter : poolPlotters) {
592 paintPoolBar(g, poolPlotter);
603 for (PoolPlotter poolPlotter : poolPlotters) {
604 if (poolPlotter.threshold > 0L && poolPlotter.value > poolPlotter.threshold) {
605 if (poolPlotter.isHeap) {
657 private Rectangle getBarRect(PoolPlotter poolPlotter) {
658 return new Rectangle(leftMargin + poolPlotter.barX,
693 for (PoolPlotter poolPlotter : poolPlotters) {
694 if (getBarRect(poolPlotter).contains(p)) {
695 plotter = poolPlotter;
721 for (PoolPlotter poolPlotter : poolPlotters) {
722 String value = (poolPlotter.value * 100 / poolPlotter.max) + "%";
726 poolPlotter.toString(), value);
727 if (poolPlotter.threshold > 0L) {
729 (poolPlotter.threshold * 100 / poolPlotter.max) + "%";
730 if (poolPlotter.value > poolPlotter.threshold) {