Examples of shrink()


Examples of org.eclipse.draw2d.geometry.Rectangle.shrink()

  }

  public void paintFigure(Graphics g)
  {
    Rectangle r = getBounds();
    r.shrink(1, 1);

    try
    {
      if(isResizable)
        g.setBackgroundColor(ColorConstants.cyan);
View Full Code Here

Examples of org.eclipse.draw2d.geometry.Rectangle.shrink()

    public IFigure createFigure() {
        RoundedRectangle figure = new RoundedRectangle() {
            public Rectangle getClientArea(Rectangle rect) {
                this.setBackgroundColor(ColorConstants.lightGray);
                Rectangle clientArea = super.getClientArea(rect);
                clientArea.shrink(ShapeConstants.CLIENT_AREA_INSETS);
                return clientArea;
            }
        };

        label = new Label();
View Full Code Here

Examples of org.eclipse.draw2d.geometry.Rectangle.shrink()

    public IFigure createFigure() {
        RoundedRectangle figure = new RoundedRectangle() {
            public Rectangle getClientArea(Rectangle rect) {
                this.setBackgroundColor(ColorConstants.red);
                Rectangle clientArea = super.getClientArea(rect);
                clientArea.shrink(ShapeConstants.CLIENT_AREA_INSETS);
                return clientArea;
            }
        };

        label = new Label();
View Full Code Here

Examples of org.eclipse.wb.draw2d.geometry.Dimension.shrink()

  }

  public Dimension getContainerSize() {
    Dimension size = m_panel.getModelBounds().getSize().getCopy();
    Insets insets = m_panel.getClientAreaInsets();
    return size.shrink(insets.getWidth(), insets.getHeight());
  }

  ////////////////////////////////////////////////////////////////////////////
  //
  // Commands
View Full Code Here

Examples of org.eclipse.wb.draw2d.geometry.Dimension.shrink()

  }

  public Dimension getContainerSize() {
    Dimension size = m_panel.getModelBounds().getSize().getCopy();
    Insets insets = m_panel.getClientAreaInsets();
    return size.shrink(insets.getWidth(), insets.getHeight());
  }

  ////////////////////////////////////////////////////////////////////////////
  //
  // Hint
View Full Code Here

Examples of org.eclipse.wb.draw2d.geometry.Rectangle.shrink()

    // prepare bounds
    Rectangle bounds;
    {
      Figure hostFigure = getHostFigure();
      bounds = request.getTransformedRectangle(hostFigure.getBounds());
      FigureUtils.translateFigureToAbsolute(hostFigure, bounds.shrink(-1, -1));
    }
    // update selection feedback
    m_resizeFeedback.setBounds(bounds);
    // update text feedback
    int newWidth = Math.max(bounds.width - 2, 0);
View Full Code Here

Examples of org.glassfish.grizzly.Buffer.shrink()

                encoder.transform(connection, input);

        if (!input.hasRemaining()) {
            input.tryDispose();
        } else {
            input.shrink();
        }

        try {
            switch (result.getStatus()) {
                case COMPLETE:
View Full Code Here

Examples of org.glassfish.grizzly.memory.CompositeBuffer.shrink()

        Buffer clone0(final MemoryManager memoryManager,
                final Buffer originalMessage) {
           
            if (originalMessage.isComposite()) {
                final CompositeBuffer compositeBuffer = (CompositeBuffer) originalMessage;
                compositeBuffer.shrink();

                if (!temporaryWriteBuffer.isDisposed()) {
                    if (compositeBuffer.remaining() == temporaryWriteBuffer.remaining()) {
                        compositeBuffer.allowInternalBuffersDispose(false);
                        compositeBuffer.tryDispose();
View Full Code Here

Examples of org.jfree.chart.axis.AxisSpace.shrink()

        RectangleInsets insets = getInsets();
        insets.trim(area);

        // calculate the data area...
        AxisSpace space = calculateAxisSpace(g2, area);
        Rectangle2D dataArea = space.shrink(area, null);
        this.axisOffset.trim(dataArea);
        dataArea = integerise(dataArea);
        if (dataArea.isEmpty()) {
            return;
        }
View Full Code Here

Examples of org.jfree.chart.axis.AxisSpace.shrink()

        RectangleInsets insets = getInsets();
        insets.trim(area);

        // calculate the data area...
        AxisSpace space = calculateAxisSpace(g2, area);
        Rectangle2D dataArea = space.shrink(area, null);

        // set the width and height of non-shared axis of all sub-plots
        setFixedDomainAxisSpaceForSubplots(space);

        // draw the shared axis
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.