Demos and Usage of java.awt.Dimension.Dimension(Dimension d)


   1:     public Dimension getDrawingSize() {
   2:     return new Dimension(((size.width - horOnPhase)/horFullPhase) * horFullPhase + horOnPhase, 
   3:                  ((size.height - verOnPhase)/verFullPhase) * verFullPhase + verOnPhase);
   4:     }

View Full Code Here
   1: 
   2:     totalSize = new Dimension((boxWidth * noBoxes) + (padX * 2),
   3:         boxHeight + (padY * 2));
   4:   }

View Full Code Here
   1:       setOpaque(true);
   2:       viewportDim = new Dimension((20 + columnWidth) * numColumnsPerView, height);
   3:       columns = new ArrayList<JColumn<E, A>>();
   4:       pane = new JScrollPane(JScrollPane.VERTICAL_SCROLLBAR_NEVER, 
   5:             JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);

View Full Code Here
   1: 
   2:             windowSize = new Dimension(((Integer) dim.elementAt(0)).intValue(),
   3:                     ((Integer) dim.elementAt(1)).intValue());
   4:         } catch (SmartFrogException sfex) {
   5:             sfex.put(SmartFrogCoreKeys.SF_DEPLOY_FAILURE, this.sfContext);

View Full Code Here
   1:         public Dimension getSize() {
   2:             return new Dimension((_x2 - _x1) + 1, getLineWidth());
   3:         }
   4: 
   5:         public Dimension getMinimumSize() {

View Full Code Here
   1:     final JPanel panel = new JPanel();
   2:     panel.setPreferredSize(new Dimension(((int)Math.round(root)) * 220, ((int)root) * 220));
   3:     frame.getContentPane().setLayout(new BorderLayout());
   4:     frame.getContentPane().add(new JScrollPane(panel), BorderLayout.CENTER);

View Full Code Here
   1: 
   2:         return new Dimension(((int) (Math.ceil(a)) * 2),
   3:                  ((int) (Math.ceil(b)) * 2));
   4:     }

View Full Code Here
   1: 
   2:     return new Dimension((cols * charWidth) + (2 * borderHeight),
   3:                  (rows * charHeight) + (2 * borderWidth));
   4:     }

View Full Code Here
   1:             }
   2:             return new Dimension(contentwidth + (horizontal ? 4 : (tabsize + 3)),
   3:                 contentheight + (horizontal ? (tabsize + 3) : 4));
   4:         ...
   5:         FontMetrics fm = getFontMetrics((currentfont != null) ? currentfont : font);
   6:         return new Dimension(((columns > 0) ?
   7:             (columns * fm.charWidth('e')) : 76) + 4,
   8:     }

View Full Code Here
   1:             FontMetrics fm = getFontMetrics((currentfont != null) ? currentfont : font);
   2:             return new Dimension(((columns > 0) ? (columns * fm.charWidth('e') + 2) : 76) + 2 + block,
   3:                     ((rows > 0) ? (rows * fm.getHeight() - fm.getLeading() + 2) : 76) + 2 + block);
   4:         ...
   5:             }
   6:             return new Dimension(contentwidth + (horizontal ? 4 : (tabsize + 3)), contentheight
   7:                     + (horizontal ? (tabsize + 3) : 4));
   8:         ...
   9:         FontMetrics fm = getFontMetrics((currentfont != null) ? currentfont : font);
  10:         return new Dimension(((columns > 0) ? (columns * fm.charWidth('e')) : 76) + 4, fm.getAscent() + fm.getDescent()
  11:     }

View Full Code Here