Tabnine Logo
ScreenDockProperty.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
bibliothek.gui.dock.station.screen.ScreenDockProperty
constructor

Best Java code snippets using bibliothek.gui.dock.station.screen.ScreenDockProperty.<init> (Showing top 20 results out of 315)

origin: org.opentcs.thirdparty.dockingframes/docking-frames-common

@Override
public DockableProperty findProperty( DockableProperty successor ) {
  if( successor == null ){
    return new ScreenDockProperty( 20, 20, 400, 400 );
  }
  return successor;
}
origin: xyz.cofe/docking-frames-common

@Override
public DockableProperty findProperty( DockableProperty successor ) {
  if( successor == null ){
    return new ScreenDockProperty( 20, 20, 400, 400 );
  }
  return successor;
}
origin: xyz.cofe/docking-frames-core

  public DockableProperty createProperty() {
    return new ScreenDockProperty();
  }
}
origin: xyz.cofe/docking-frames-core

public ScreenDockProperty copy() {
  ScreenDockProperty copy = new ScreenDockProperty( x, y, width, height, placeholder, fullscreen );
  copy( copy );
  return copy;
}
origin: org.opentcs.thirdparty.dockingframes/docking-frames-common

@Override
public DockableProperty findProperty( DockableProperty successor ){
  ScreenDockProperty screen = new ScreenDockProperty( x, y, width, height );
  screen.setSuccessor( successor );
  if( parent != null ){
    return parent.findProperty( screen );
  }
  return screen;
}

origin: xyz.cofe/docking-frames-common

@Override
public DockableProperty findProperty( DockableProperty successor ){
  ScreenDockProperty screen = new ScreenDockProperty( x, y, width, height );
  screen.setSuccessor( successor );
  if( parent != null ){
    return parent.findProperty( screen );
  }
  return screen;
}

origin: xyz.cofe/docking-frames-core

  private void drop() {
    if( combine != null ){
      combine( dropInfo, combiner, null );
    }
    else{
      Dimension size = dropSizeStrategy.getValue().getDropSize( ScreenDockStation.this, dockable );
      ScreenDockProperty property = new ScreenDockProperty( titleX, titleY, size.width, size.height );
      ScreenDockStation.this.drop( dockable, property, false );
    }
  }
}
origin: xyz.cofe/docking-frames-core

public void drop( Dockable dockable ) {
  Window owner = getOwner();
  
  int x = 30;
  int y = 30;
  
  if( owner != null ){
    x += owner.getX();
    y += owner.getY();
  }
  
  Dimension preferred = dropSizeStrategy.getValue().getAddSize( this, dockable );
  int width = Math.max( preferred.width, 100 );
  int height = Math.max( preferred.height, 100 );
  
  if( !drop( dockable, new ScreenDockProperty( x, y, width, height ) ) ){
    addDockable( dockable, new Rectangle( x, y, width, height ) );
  }
}
origin: xyz.cofe/docking-frames-common

return new ScreenDockProperty( corner.x, corner.y, size.width, size.height, null, false );
origin: org.opentcs.thirdparty.dockingframes/docking-frames-common

return new ScreenDockProperty( corner.x, corner.y, size.width, size.height, null, false );
origin: xyz.cofe/docking-frames-core

DockLayoutInfo info = children.getChild( retro.id( i ));
if( info != null ){
  ScreenDockProperty property = new ScreenDockProperty( retro.x( i ), retro.y( i ), retro.width( i ), retro.height( i ), null );
  info.setLocation( property );
  ScreenDockProperty property = new ScreenDockProperty( x, y, width, height, placeholder, fullscreen );
  children.getChild( id ).setLocation( property );
    info.setLocation( new ScreenDockProperty( x, y, width, height, info.getPlaceholder(), fullscreen ) );
origin: xyz.cofe/docking-frames-core

public DockableProperty getDockableProperty( PerspectiveDockable child, PerspectiveDockable target ){
  ScreenPerspectiveWindow window = getWindow( child );
  if( window == null ){
    throw new IllegalArgumentException( "child is not a child of this station" );
  }
  
  Path placeholder = null;
  if( target != null ){
    placeholder = target.getPlaceholder();
  }
  else{
    placeholder = child.getPlaceholder();
  }
  
  return new ScreenDockProperty( window.getX(), window.getY(), window.getWidth(), window.getHeight(), placeholder, window.isFullscreen() );
}

origin: org.opentcs.thirdparty.dockingframes/docking-frames-core

public DockableProperty getDockableProperty( PerspectiveDockable child, PerspectiveDockable target ){
  ScreenPerspectiveWindow window = getWindow( child );
  if( window == null ){
    throw new IllegalArgumentException( "child is not a child of this station" );
  }
  
  Path placeholder = null;
  if( target != null ){
    placeholder = target.getPlaceholder();
  }
  else{
    placeholder = child.getPlaceholder();
  }
  
  return new ScreenDockProperty( window.getX(), window.getY(), window.getWidth(), window.getHeight(), placeholder, window.isFullscreen() );
}

origin: xyz.cofe/docking-frames-common

@Override
public DockableProperty findProperty( DockableProperty successor ){
  ScreenDockProperty screen = new ScreenDockProperty( getX(), getY(), getWidth(), getHeight(), null, true );
  screen.setSuccessor( successor );
  
  CLocation parent = getParent();
  if( parent != null ){
    return parent.findProperty( screen );
  }
  
  return screen;
}

origin: org.opentcs.thirdparty.dockingframes/docking-frames-common

@Override
public DockableProperty findProperty( DockableProperty successor ){
  ScreenDockProperty screen = new ScreenDockProperty( getX(), getY(), getWidth(), getHeight(), null, true );
  screen.setSuccessor( successor );
  
  CLocation parent = getParent();
  if( parent != null ){
    return parent.findProperty( screen );
  }
  
  return screen;
}
 
origin: xyz.cofe/docking-frames-core

return new ScreenDockProperty( bounds.x, bounds.y, bounds.width, bounds.height, placeholder, fullscreen );
origin: xyz.cofe/docking-frames-core

  @Override
  public PlaceholderListItem<Dockable> convert( ConvertedPlaceholderListItem item ) {
    int id = item.getInt( "id" );
    
    int x = item.getInt( "x" );
    int y = item.getInt( "y" );
    int width = item.getInt( "width" );
    int height = item.getInt( "height" );
    boolean fullscreen = item.getBoolean( "fullscreen" );
    Path placeholder = null;
    if( item.contains( "placeholder" )){
      placeholder = new Path( item.getString( "placeholder" ) );
    }
    
    ScreenDockProperty property = new ScreenDockProperty( x, y, width, height, placeholder, fullscreen );
    children.getChild( id ).setLocation( property );
    
    for( int i = 0, n = children.getSubChildCount( id ); i<n; i++ ){
      DockLayoutInfo info = children.getSubChild( id, i );
      info.setLocation( new ScreenDockProperty( x, y, width, height, info.getPlaceholder(), fullscreen ) );
    }
    return null;
  }
});
origin: xyz.cofe/docking-frames-core

  public DockableProperty getLocationAt( Path placeholder ) {
    DockablePlaceholderList<ScreenDockWindowHandle>.Item item = dockables.getItem( placeholder );
    if( item == null ){
      return null;
    }
    
    ScreenDockWindowHandle handle = item.getDockable();
    if( handle != null ){
      Dockable dockable = handle.asDockable();
      ScreenDockProperty property = getLocation( dockable, dockable );
      property.setPlaceholder( placeholder );
      return property;
    }
    else if( item.contains( "x", "y", "width", "height" )){    				
      int x = item.getInt( "x" );
      int y = item.getInt( "y" );
      int width = item.getInt( "width" );
      int height = item.getInt( "height" );
      
      return new ScreenDockProperty( x, y, width, height, placeholder );
    }
    else{
      return null;
    }
  }
};
origin: xyz.cofe/docking-frames-ext-toolbar

/**
 * Called if the toolbar item defined by <code>source</code> has to be put
 * onto the {@link ScreenDockStation} defined by <code>source</code>.
 * 
 * @param source
 *            all the information about the operation
 * @param orientation
 *            the preferred orientation of the new window, might be
 *            <code>null</code>
 */
protected void execute( InserterSource source, Orientation orientation ){
  final ToolbarStrategy strategy = getStrategy();
  
  Dockable child = source.getItem().getDockable();
  final Dockable item = strategy.ensureToolbarLayer( source.getParent(), child );
  if( item != child ){
    item.setController( controller );
    item.asDockStation().drop( child );
    item.setController( null );
  }
  
  if( (orientation != null) && (item.asDockStation() instanceof OrientedDockStation) ) {
    ((OrientedDockStation) item).setOrientation( orientation );
  }
  final ScreenDockStation station = (ScreenDockStation) source.getParent();
  item.getComponent().validate();
  final Dimension size = item.getComponent().getPreferredSize();
  final ScreenDockProperty location = new ScreenDockProperty( source.getItem().getTitleX(), source.getItem().getTitleY(), size.width, size.height );
  station.drop( item, location, false );
}
origin: xyz.cofe/docking-frames-core

  height = meta.getInt( "height" );
ScreenDockProperty replacement = new ScreenDockProperty( x, y, width, height, placeholder, property.isFullscreen() );
replacement.setSuccessor( property.getSuccessor() );
args.setProperty( replacement );
bibliothek.gui.dock.station.screenScreenDockProperty<init>

Javadoc

Constructs a new property

Popular methods of ScreenDockProperty

  • getHeight
    Gets the height of the dialog.
  • getWidth
    Gets the width of the dialog.
  • getX
    Gets the x-coordinate of the dialog.
  • getY
    Gets the y-coordinate of the dialog
  • isFullscreen
    Tells whether this location describes an element that is in fullscreen mode.
  • setSuccessor
  • getSuccessor
  • setFullscreen
    Sets the fullscreen mode
  • copy
  • getPlaceholder
    Gets the name of this location.
  • setPlaceholder
    Sets the name of this location.
  • setPlaceholder

Popular in Java

  • Running tasks concurrently on multiple threads
  • putExtra (Intent)
  • addToBackStack (FragmentTransaction)
  • startActivity (Activity)
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • JComboBox (javax.swing)
  • JLabel (javax.swing)
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now