Example usage for org.eclipse.jface.util Geometry getCoordinate

List of usage examples for org.eclipse.jface.util Geometry getCoordinate

Introduction

In this page you can find the example usage for org.eclipse.jface.util Geometry getCoordinate.

Prototype

public static int getCoordinate(Rectangle toMeasure, boolean width) 

Source Link

Document

Returns the x or y coordinates of the given rectangle.

Usage

From source file:org.eclipse.ui.presentations.StackPresentation.java

License:Open Source License

public int computePreferredSize(boolean width, int availableParallel, int availablePerpendicular,
        int preferredResult) {
    int minSize = Geometry.getCoordinate(computeMinimumSize(), width);

    if (getSite().getState() == IStackPresentationSite.STATE_MINIMIZED || preferredResult < minSize) {
        return minSize;
    }//from w  ww  . j  a  v a  2s .  co  m

    return preferredResult;
}