sun.swing.BakedArrayList Java Examples
The following examples show how to use
sun.swing.BakedArrayList.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DefaultSynthStyleFactory.java From jdk1.8-source-analysis with Apache License 2.0 | 6 votes |
/** * Returns the style for the specified Component. * * @param c Component asking for * @param id ID of the Component */ public synchronized SynthStyle getStyle(JComponent c, Region id) { BakedArrayList matches = _tmpList; matches.clear(); getMatchingStyles(matches, c, id); if (matches.size() == 0) { return getDefaultStyle(); } // Use a cached Style if possible, otherwise create a new one. matches.cacheHashCode(); SynthStyle style = getCachedStyle(matches); if (style == null) { style = mergeStyles(matches); if (style != null) { cacheStyle(matches, style); } } return style; }
Example #2
Source File: DefaultSynthStyleFactory.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 6 votes |
/** * Returns the style for the specified Component. * * @param c Component asking for * @param id ID of the Component */ public synchronized SynthStyle getStyle(JComponent c, Region id) { BakedArrayList matches = _tmpList; matches.clear(); getMatchingStyles(matches, c, id); if (matches.size() == 0) { return getDefaultStyle(); } // Use a cached Style if possible, otherwise create a new one. matches.cacheHashCode(); SynthStyle style = getCachedStyle(matches); if (style == null) { style = mergeStyles(matches); if (style != null) { cacheStyle(matches, style); } } return style; }
Example #3
Source File: DefaultSynthStyleFactory.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
/** * Returns the style for the specified Component. * * @param c Component asking for * @param id ID of the Component */ public synchronized SynthStyle getStyle(JComponent c, Region id) { BakedArrayList matches = _tmpList; matches.clear(); getMatchingStyles(matches, c, id); if (matches.size() == 0) { return getDefaultStyle(); } // Use a cached Style if possible, otherwise create a new one. matches.cacheHashCode(); SynthStyle style = getCachedStyle(matches); if (style == null) { style = mergeStyles(matches); if (style != null) { cacheStyle(matches, style); } } return style; }
Example #4
Source File: DefaultSynthStyleFactory.java From jdk8u_jdk with GNU General Public License v2.0 | 6 votes |
/** * Returns the style for the specified Component. * * @param c Component asking for * @param id ID of the Component */ public synchronized SynthStyle getStyle(JComponent c, Region id) { BakedArrayList matches = _tmpList; matches.clear(); getMatchingStyles(matches, c, id); if (matches.size() == 0) { return getDefaultStyle(); } // Use a cached Style if possible, otherwise create a new one. matches.cacheHashCode(); SynthStyle style = getCachedStyle(matches); if (style == null) { style = mergeStyles(matches); if (style != null) { cacheStyle(matches, style); } } return style; }
Example #5
Source File: DefaultSynthStyleFactory.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
/** * Returns the style for the specified Component. * * @param c Component asking for * @param id ID of the Component */ public synchronized SynthStyle getStyle(JComponent c, Region id) { BakedArrayList matches = _tmpList; matches.clear(); getMatchingStyles(matches, c, id); if (matches.size() == 0) { return getDefaultStyle(); } // Use a cached Style if possible, otherwise create a new one. matches.cacheHashCode(); SynthStyle style = getCachedStyle(matches); if (style == null) { style = mergeStyles(matches); if (style != null) { cacheStyle(matches, style); } } return style; }
Example #6
Source File: DefaultSynthStyleFactory.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
/** * Returns the style for the specified Component. * * @param c Component asking for * @param id ID of the Component */ public synchronized SynthStyle getStyle(JComponent c, Region id) { BakedArrayList matches = _tmpList; matches.clear(); getMatchingStyles(matches, c, id); if (matches.size() == 0) { return getDefaultStyle(); } // Use a cached Style if possible, otherwise create a new one. matches.cacheHashCode(); SynthStyle style = getCachedStyle(matches); if (style == null) { style = mergeStyles(matches); if (style != null) { cacheStyle(matches, style); } } return style; }
Example #7
Source File: DefaultSynthStyleFactory.java From hottub with GNU General Public License v2.0 | 6 votes |
/** * Returns the style for the specified Component. * * @param c Component asking for * @param id ID of the Component */ public synchronized SynthStyle getStyle(JComponent c, Region id) { BakedArrayList matches = _tmpList; matches.clear(); getMatchingStyles(matches, c, id); if (matches.size() == 0) { return getDefaultStyle(); } // Use a cached Style if possible, otherwise create a new one. matches.cacheHashCode(); SynthStyle style = getCachedStyle(matches); if (style == null) { style = mergeStyles(matches); if (style != null) { cacheStyle(matches, style); } } return style; }
Example #8
Source File: DefaultSynthStyleFactory.java From Java8CN with Apache License 2.0 | 6 votes |
/** * Returns the style for the specified Component. * * @param c Component asking for * @param id ID of the Component */ public synchronized SynthStyle getStyle(JComponent c, Region id) { BakedArrayList matches = _tmpList; matches.clear(); getMatchingStyles(matches, c, id); if (matches.size() == 0) { return getDefaultStyle(); } // Use a cached Style if possible, otherwise create a new one. matches.cacheHashCode(); SynthStyle style = getCachedStyle(matches); if (style == null) { style = mergeStyles(matches); if (style != null) { cacheStyle(matches, style); } } return style; }
Example #9
Source File: DefaultSynthStyleFactory.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
/** * Returns the style for the specified Component. * * @param c Component asking for * @param id ID of the Component */ public synchronized SynthStyle getStyle(JComponent c, Region id) { BakedArrayList matches = _tmpList; matches.clear(); getMatchingStyles(matches, c, id); if (matches.size() == 0) { return getDefaultStyle(); } // Use a cached Style if possible, otherwise create a new one. matches.cacheHashCode(); SynthStyle style = getCachedStyle(matches); if (style == null) { style = mergeStyles(matches); if (style != null) { cacheStyle(matches, style); } } return style; }
Example #10
Source File: DefaultSynthStyleFactory.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
/** * Returns the style for the specified Component. * * @param c Component asking for * @param id ID of the Component */ public synchronized SynthStyle getStyle(JComponent c, Region id) { BakedArrayList<SynthStyle> matches = _tmpList; matches.clear(); getMatchingStyles(matches, c, id); if (matches.size() == 0) { return getDefaultStyle(); } // Use a cached Style if possible, otherwise create a new one. matches.cacheHashCode(); SynthStyle style = getCachedStyle(matches); if (style == null) { style = mergeStyles(matches); if (style != null) { cacheStyle(matches, style); } } return style; }
Example #11
Source File: DefaultSynthStyleFactory.java From Bytecoder with Apache License 2.0 | 6 votes |
/** * Returns the style for the specified Component. * * @param c Component asking for * @param id ID of the Component */ public synchronized SynthStyle getStyle(JComponent c, Region id) { BakedArrayList<SynthStyle> matches = _tmpList; matches.clear(); getMatchingStyles(matches, c, id); if (matches.size() == 0) { return getDefaultStyle(); } // Use a cached Style if possible, otherwise create a new one. matches.cacheHashCode(); SynthStyle style = getCachedStyle(matches); if (style == null) { style = mergeStyles(matches); if (style != null) { cacheStyle(matches, style); } } return style; }
Example #12
Source File: DefaultSynthStyleFactory.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
/** * Returns the style for the specified Component. * * @param c Component asking for * @param id ID of the Component */ public synchronized SynthStyle getStyle(JComponent c, Region id) { BakedArrayList matches = _tmpList; matches.clear(); getMatchingStyles(matches, c, id); if (matches.size() == 0) { return getDefaultStyle(); } // Use a cached Style if possible, otherwise create a new one. matches.cacheHashCode(); SynthStyle style = getCachedStyle(matches); if (style == null) { style = mergeStyles(matches); if (style != null) { cacheStyle(matches, style); } } return style; }
Example #13
Source File: DefaultSynthStyleFactory.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
/** * Returns the style for the specified Component. * * @param c Component asking for * @param id ID of the Component */ public synchronized SynthStyle getStyle(JComponent c, Region id) { BakedArrayList matches = _tmpList; matches.clear(); getMatchingStyles(matches, c, id); if (matches.size() == 0) { return getDefaultStyle(); } // Use a cached Style if possible, otherwise create a new one. matches.cacheHashCode(); SynthStyle style = getCachedStyle(matches); if (style == null) { style = mergeStyles(matches); if (style != null) { cacheStyle(matches, style); } } return style; }
Example #14
Source File: DefaultSynthStyleFactory.java From JDKSourceCode1.8 with MIT License | 6 votes |
/** * Returns the style for the specified Component. * * @param c Component asking for * @param id ID of the Component */ public synchronized SynthStyle getStyle(JComponent c, Region id) { BakedArrayList matches = _tmpList; matches.clear(); getMatchingStyles(matches, c, id); if (matches.size() == 0) { return getDefaultStyle(); } // Use a cached Style if possible, otherwise create a new one. matches.cacheHashCode(); SynthStyle style = getCachedStyle(matches); if (style == null) { style = mergeStyles(matches); if (style != null) { cacheStyle(matches, style); } } return style; }
Example #15
Source File: DefaultSynthStyleFactory.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
/** * Returns the style for the specified Component. * * @param c Component asking for * @param id ID of the Component */ public synchronized SynthStyle getStyle(JComponent c, Region id) { BakedArrayList matches = _tmpList; matches.clear(); getMatchingStyles(matches, c, id); if (matches.size() == 0) { return getDefaultStyle(); } // Use a cached Style if possible, otherwise create a new one. matches.cacheHashCode(); SynthStyle style = getCachedStyle(matches); if (style == null) { style = mergeStyles(matches); if (style != null) { cacheStyle(matches, style); } } return style; }
Example #16
Source File: DefaultSynthStyleFactory.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
/** * Returns the style for the specified Component. * * @param c Component asking for * @param id ID of the Component */ public synchronized SynthStyle getStyle(JComponent c, Region id) { BakedArrayList matches = _tmpList; matches.clear(); getMatchingStyles(matches, c, id); if (matches.size() == 0) { return getDefaultStyle(); } // Use a cached Style if possible, otherwise create a new one. matches.cacheHashCode(); SynthStyle style = getCachedStyle(matches); if (style == null) { style = mergeStyles(matches); if (style != null) { cacheStyle(matches, style); } } return style; }
Example #17
Source File: DefaultSynthStyleFactory.java From dragonwell8_jdk with GNU General Public License v2.0 | 6 votes |
/** * Returns the style for the specified Component. * * @param c Component asking for * @param id ID of the Component */ public synchronized SynthStyle getStyle(JComponent c, Region id) { BakedArrayList matches = _tmpList; matches.clear(); getMatchingStyles(matches, c, id); if (matches.size() == 0) { return getDefaultStyle(); } // Use a cached Style if possible, otherwise create a new one. matches.cacheHashCode(); SynthStyle style = getCachedStyle(matches); if (style == null) { style = mergeStyles(matches); if (style != null) { cacheStyle(matches, style); } } return style; }
Example #18
Source File: DefaultSynthStyleFactory.java From jdk8u_jdk with GNU General Public License v2.0 | 4 votes |
DefaultSynthStyleFactory() { _tmpList = new BakedArrayList(5); _styles = new ArrayList<StyleAssociation>(); _resolvedStyles = new HashMap<BakedArrayList, SynthStyle>(); }
Example #19
Source File: DefaultSynthStyleFactory.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
DefaultSynthStyleFactory() { _tmpList = new BakedArrayList(5); _styles = new ArrayList<StyleAssociation>(); _resolvedStyles = new HashMap<BakedArrayList, SynthStyle>(); }
Example #20
Source File: DefaultSynthStyleFactory.java From hottub with GNU General Public License v2.0 | 4 votes |
/** * Caches the specified style. */ private void cacheStyle(List styles, SynthStyle style) { BakedArrayList cachedStyles = new BakedArrayList(styles); _resolvedStyles.put(cachedStyles, style); }
Example #21
Source File: DefaultSynthStyleFactory.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
DefaultSynthStyleFactory() { _tmpList = new BakedArrayList(5); _styles = new ArrayList<StyleAssociation>(); _resolvedStyles = new HashMap<BakedArrayList, SynthStyle>(); }
Example #22
Source File: DefaultSynthStyleFactory.java From dragonwell8_jdk with GNU General Public License v2.0 | 4 votes |
/** * Caches the specified style. */ private void cacheStyle(List styles, SynthStyle style) { BakedArrayList cachedStyles = new BakedArrayList(styles); _resolvedStyles.put(cachedStyles, style); }
Example #23
Source File: DefaultSynthStyleFactory.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
/** * Caches the specified style. */ private void cacheStyle(List styles, SynthStyle style) { BakedArrayList cachedStyles = new BakedArrayList(styles); _resolvedStyles.put(cachedStyles, style); }
Example #24
Source File: DefaultSynthStyleFactory.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
DefaultSynthStyleFactory() { _tmpList = new BakedArrayList(5); _styles = new ArrayList<StyleAssociation>(); _resolvedStyles = new HashMap<BakedArrayList, SynthStyle>(); }
Example #25
Source File: DefaultSynthStyleFactory.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
/** * Caches the specified style. */ private void cacheStyle(List styles, SynthStyle style) { BakedArrayList cachedStyles = new BakedArrayList(styles); _resolvedStyles.put(cachedStyles, style); }
Example #26
Source File: DefaultSynthStyleFactory.java From Java8CN with Apache License 2.0 | 4 votes |
/** * Caches the specified style. */ private void cacheStyle(List styles, SynthStyle style) { BakedArrayList cachedStyles = new BakedArrayList(styles); _resolvedStyles.put(cachedStyles, style); }
Example #27
Source File: DefaultSynthStyleFactory.java From dragonwell8_jdk with GNU General Public License v2.0 | 4 votes |
DefaultSynthStyleFactory() { _tmpList = new BakedArrayList(5); _styles = new ArrayList<StyleAssociation>(); _resolvedStyles = new HashMap<BakedArrayList, SynthStyle>(); }
Example #28
Source File: DefaultSynthStyleFactory.java From jdk8u_jdk with GNU General Public License v2.0 | 4 votes |
/** * Caches the specified style. */ private void cacheStyle(List styles, SynthStyle style) { BakedArrayList cachedStyles = new BakedArrayList(styles); _resolvedStyles.put(cachedStyles, style); }
Example #29
Source File: DefaultSynthStyleFactory.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
DefaultSynthStyleFactory() { _tmpList = new BakedArrayList(5); _styles = new ArrayList<StyleAssociation>(); _resolvedStyles = new HashMap<BakedArrayList, SynthStyle>(); }
Example #30
Source File: DefaultSynthStyleFactory.java From jdk1.8-source-analysis with Apache License 2.0 | 4 votes |
/** * Caches the specified style. */ private void cacheStyle(List styles, SynthStyle style) { BakedArrayList cachedStyles = new BakedArrayList(styles); _resolvedStyles.put(cachedStyles, style); }