/** * Reduces the specified area by the amount of space consumed * by the margin. * * @param area the area (<code>null</code> not permitted). * * @return The trimmed area. */ protected Rectangle2D trimMargin(Rectangle2D area) { // defer argument checking... this.margin.trim(area); return area; }
/** * Reduces the specified area by the amount of space consumed * by the padding. * * @param area the area (<code>null</code> not permitted). * * @return The trimmed area. */ protected Rectangle2D trimPadding(Rectangle2D area) { // defer argument checking... this.padding.trim(area); return area; }
/** * Reduces the specified area by the amount of space consumed * by the border. * * @param area the area (<code>null</code> not permitted). * * @return The trimmed area. */ protected Rectangle2D trimBorder(Rectangle2D area) { // defer argument checking... this.frame.getInsets().trim(area); return area; }
/** * Draws the wafermap view. * * @param g2 the graphics device. * @param area the plot area. * @param anchor the anchor point (<code>null</code> permitted). * @param state the plot state. * @param info the plot rendering info. */ public void draw(Graphics2D g2, Rectangle2D area, Point2D anchor, PlotState state, PlotRenderingInfo info) { // if the plot area is too small, just return... boolean b1 = (area.getWidth() <= MINIMUM_WIDTH_TO_DRAW); boolean b2 = (area.getHeight() <= MINIMUM_HEIGHT_TO_DRAW); if (b1 || b2) { return; } // record the plot area... if (info != null) { info.setPlotArea(area); } // adjust the drawing area for the plot insets (if any)... RectangleInsets insets = getInsets(); insets.trim(area); drawChipGrid(g2, area); drawWaferEdge(g2, area); }
insets.trim(area);
insets.trim(area);
getFrame().getInsets().trim(target); target = trimPadding(target); double base = this.axis.getLowerBound();
this.padding.trim(nonTitleArea);
insets.trim(area);
insets.trim(area);
insets.trim(area);
insets.trim(area);
insets.trim(area);
insets.trim(area); drawBackground(g2, area); drawOutline(g2, area);
Rectangle2D innerArcBounds = new Rectangle2D.Double(); innerArcBounds.setRect(arcBounds); s.trim(innerArcBounds);
insets.trim(area);
border.getInsets().trim(target); BlockContainer container = this.wrapper; if (container == null) {
insets.trim(area);
insets.trim(area);
insets.trim(area); drawBackground(g2, area); drawOutline(g2, area);