public void estimateLocations( DockFrontendInternals frontend, DockSituation situation, DockLayoutComposition layout ){ if( situation instanceof PredefinedDockSituation ){ ((PredefinedDockSituation)situation).estimateLocations( layout ); } }
/** * Lists for all keys that can be found in <code>composition</code> its * estimated location.<br> * Note: This method will call {@link #estimateLocations(DockLayoutComposition)} * to get the most recent locations * @param composition some composition to search for keys and locations * @param location the location of <code>composition</code> itself * @param missingOnly if set, then only locations of keys for which * no {@link DockLayout} is set are reported. This are the keys which most * likely will be ignored when calling {@link #convert(DockLayoutComposition)} * @return the map of keys and positions, might be empty */ public Map<String, DockableProperty> listEstimatedLocations( DockLayoutComposition composition, DockableProperty location, boolean missingOnly ){ estimateLocations( composition, location ); Map<String, DockableProperty> map = new HashMap<String, DockableProperty>(); listEstimatedLocations( composition, missingOnly, map ); if( location != null ){ String key = getKey( composition, missingOnly ); if( key != null ){ map.put( key, location ); } } return map; }
/** * Lists for all keys that can be found in <code>composition</code> its * estimated location.<br> * Note: This method will call {@link #estimateLocations(DockLayoutComposition)} * to get the most recent locations * @param composition some composition to search for keys and locations * @param location the location of <code>composition</code> itself * @param missingOnly if set, then only locations of keys for which * no {@link DockLayout} is set are reported. This are the keys which most * likely will be ignored when calling {@link #convert(DockLayoutComposition)} * @return the map of keys and positions, might be empty */ public Map<String, DockableProperty> listEstimatedLocations( DockLayoutComposition composition, DockableProperty location, boolean missingOnly ){ estimateLocations( composition, location ); Map<String, DockableProperty> map = new HashMap<String, DockableProperty>(); listEstimatedLocations( composition, missingOnly, map ); if( location != null ){ String key = getKey( composition, missingOnly ); if( key != null ){ map.put( key, location ); } } return map; }