Codota Logo
FormLayout$ComponentSizeCache
Code IndexAdd Codota to your IDE (free)

How to use
FormLayout$ComponentSizeCache
in
com.jgoodies.forms.layout

Best Java code snippets using com.jgoodies.forms.layout.FormLayout$ComponentSizeCache (Showing top 20 results out of 315)

  • Common ways to obtain FormLayout$ComponentSizeCache
private void myMethod () {
FormLayout$ComponentSizeCache f =
  • Codota Iconnew ComponentSizeCache(int1)
  • Smart code suggestions by Codota
}
origin: com.jgoodies/forms

/**
 * Constructs a FormLayout using the given column and row specifications.
 *
 * @param colSpecs    an array of column specifications.
 * @param rowSpecs    an array of row specifications.
 * @throws NullPointerException if colSpecs or rowSpecs is {@code null}
 */
public FormLayout(ColumnSpec[] colSpecs, RowSpec[] rowSpecs) {
  if (colSpecs == null)
    throw new NullPointerException("The column specifications must not be null.");
  if (rowSpecs == null)
    throw new NullPointerException("The row specifications must not be null.");
  this.colSpecs  = new ArrayList(Arrays.asList(colSpecs));
  this.rowSpecs  = new ArrayList(Arrays.asList(rowSpecs));
  colGroupIndices = new int[][]{};
  rowGroupIndices = new int[][]{};
  int initialCapacity = colSpecs.length * rowSpecs.length / 4;
  constraintMap       = new HashMap(initialCapacity);
  componentSizeCache  = new ComponentSizeCache(initialCapacity);
  minimumWidthMeasure    = new MinimumWidthMeasure(componentSizeCache);
  minimumHeightMeasure   = new MinimumHeightMeasure(componentSizeCache);
  preferredWidthMeasure  = new PreferredWidthMeasure(componentSizeCache);
  preferredHeightMeasure = new PreferredHeightMeasure(componentSizeCache);
}
origin: net.java.abeille/abeille

/**
 * Removes the constraints for the specified component in this layout.
 * 
 * @param component
 *            the component to be modified
 */
private void removeConstraints(Component component) {
  constraintMap.remove(component);
  componentSizeCache.removeEntry(component);
}
origin: com.jgoodies/jgoodiesforms

/**
 * Invalidates the component size caches.
 */
private void invalidateCaches() {
  componentSizeCache.invalidate();
}
origin: net.java.abeille/abeille

/**
 * Invalidates the component size caches.
 */
private void invalidateCaches() {
  componentSizeCache.invalidate();
}
origin: com.jgoodies/forms

  public int sizeOf(Component c) {
    return cache.getPreferredSize(c).height;
  }
}
origin: com.jgoodies/forms

/**
 * Invalidates the component size caches.
 */
private void invalidateCaches() {
  componentSizeCache.invalidate();
}
origin: com.jgoodies/jgoodiesforms

/**
 * Removes the constraints for the specified component in this layout.
 *
 * @param component  the component to be modified
 */
private void removeConstraints(Component component) {
  constraintMap.remove(component);
  componentSizeCache.removeEntry(component);
}
origin: net.java.abeille/abeille

  public int sizeOf(Component c) {
    return cache.getPreferredSize(c).width;
  }
}
origin: net.java.abeille/abeille

  public int sizeOf(Component c) {
    return cache.getMinimumSize(c).width;
  }
}
origin: com.jgoodies/forms

  public int sizeOf(Component c) {
    return cache.getMinimumSize(c).height;
  }
}
origin: com.jgoodies/forms

  public int sizeOf(Component c) {
    return cache.getMinimumSize(c).width;
  }
}
origin: com.jgoodies/forms

/**
 * Removes the constraints for the specified component in this layout.
 *
 * @param component  the component to be modified
 */
private void removeConstraints(Component component) {
  constraintMap.remove(component);
  componentSizeCache.removeEntry(component);
}
origin: net.java.abeille/abeille

  public int sizeOf(Component c) {
    return cache.getMinimumSize(c).height;
  }
}
origin: com.jgoodies/jgoodiesforms

  @Override
  public int sizeOf(Component c) {
    return cache.getMinimumSize(c).width;
  }
}
origin: net.java.abeille/abeille

  public int sizeOf(Component c) {
    return cache.getPreferredSize(c).height;
  }
}
origin: com.jgoodies/forms

  public int sizeOf(Component c) {
    return cache.getPreferredSize(c).width;
  }
}
origin: com.jgoodies/jgoodiesforms

  @Override
  public int sizeOf(Component c) {
    return cache.getPreferredSize(c).height;
  }
}
origin: com.jgoodies/jgoodiesforms

/**
 * Constructs a FormLayout using the given column and row specifications.
 *
 * @param colSpecs    an array of column specifications.
 * @param rowSpecs    an array of row specifications.
 * @throws NullPointerException if {@code colSpecs} or {@code rowSpecs}
 *     is {@code null}
 */
public FormLayout(ColumnSpec[] colSpecs, RowSpec[] rowSpecs) {
  checkNotNull(colSpecs, "The column specifications must not be null.");
  checkNotNull(rowSpecs, "The row specifications must not be null.");
  this.colSpecs  = new ArrayList<ColumnSpec>(Arrays.asList(colSpecs));
  this.rowSpecs  = new ArrayList<RowSpec>(Arrays.asList(rowSpecs));
  colGroupIndices = new int[][]{};
  rowGroupIndices = new int[][]{};
  int initialCapacity = colSpecs.length * rowSpecs.length / 4;
  constraintMap       = new HashMap<Component, CellConstraints>(initialCapacity);
  componentSizeCache  = new ComponentSizeCache(initialCapacity);
  minimumWidthMeasure    = new MinimumWidthMeasure(componentSizeCache);
  minimumHeightMeasure   = new MinimumHeightMeasure(componentSizeCache);
  preferredWidthMeasure  = new PreferredWidthMeasure(componentSizeCache);
  preferredHeightMeasure = new PreferredHeightMeasure(componentSizeCache);
}
origin: com.jgoodies/jgoodiesforms

  @Override
  public int sizeOf(Component c) {
    return cache.getMinimumSize(c).height;
  }
}
origin: net.java.abeille/abeille

/**
 * Constructs an instance of <code>FormLayout</code> using the given
 * column and row specifications.
 * 
 * @param colSpecs
 *            an array of column specifications.
 * @param rowSpecs
 *            an array of row specifications.
 * @throws NullPointerException
 *             if colSpecs or rowSpecs is null
 */
public FormLayout(ColumnSpec[] colSpecs, RowSpec[] rowSpecs) {
  if (colSpecs == null)
    throw new NullPointerException("The column specifications must not be null.");
  if (rowSpecs == null)
    throw new NullPointerException("The row specifications must not be null.");
  this.colSpecs = new ArrayList(Arrays.asList(colSpecs));
  this.rowSpecs = new ArrayList(Arrays.asList(rowSpecs));
  colGroupIndices = new int[][] {};
  rowGroupIndices = new int[][] {};
  int initialCapacity = colSpecs.length * rowSpecs.length / 4;
  constraintMap = new HashMap(initialCapacity);
  componentSizeCache = new ComponentSizeCache(initialCapacity);
  minimumWidthMeasure = new MinimumWidthMeasure(componentSizeCache);
  minimumHeightMeasure = new MinimumHeightMeasure(componentSizeCache);
  preferredWidthMeasure = new PreferredWidthMeasure(componentSizeCache);
  preferredHeightMeasure = new PreferredHeightMeasure(componentSizeCache);
}
com.jgoodies.forms.layoutFormLayout$ComponentSizeCache

Javadoc

A cache for component minimum and preferred sizes. Used to reduce the requests to determine a component's size.

Most used methods

  • <init>
  • getMinimumSize
    Returns the minimum size for the given component. Tries to look up the value from the cache; lazily
  • getPreferredSize
    Returns the preferred size for the given component. Tries to look up the value from the cache; lazil
  • invalidate
    Invalidates the cache. Clears all stored size information.
  • removeEntry

Popular in Java

  • Updating database using SQL prepared statement
  • getSharedPreferences (Context)
  • getApplicationContext (Context)
  • getExternalFilesDir (Context)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • TreeMap (java.util)
    A Red-Black tree based NavigableMap implementation. The map is sorted according to the Comparable of
  • Vector (java.util)
    The Vector class implements a growable array of objects. Like an array, it contains components that
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now