Tabnine Logo
ScreenDockProperty.getWidth
Code IndexAdd Tabnine to your IDE (free)

How to use
getWidth
method
in
bibliothek.gui.dock.station.screen.ScreenDockProperty

Best Java code snippets using bibliothek.gui.dock.station.screen.ScreenDockProperty.getWidth (Showing top 7 results out of 315)

origin: xyz.cofe/docking-frames-core

public void move( Dockable dockable, DockableProperty property ) {
  DockUtilities.checkLayoutLocked();
  if( property instanceof ScreenDockProperty ){
    ScreenDockWindow window = getWindow( dockable );
    if( window == null )
      throw new IllegalArgumentException( "dockable not child of this station" );
    
    ScreenDockProperty bounds = (ScreenDockProperty)property;
    
    window.setWindowBounds( new Rectangle( bounds.getX(), bounds.getY(), bounds.getWidth(), bounds.getHeight() ) );
  }
}
origin: xyz.cofe/docking-frames-common

/**
 * Creates a new location by creating the child location of <code>location</code> using
 * <code>property</code> for that step.
 * @param location the location to expand
 * @param property the property that is the source of the next location
 * @return the new location or <code>null</code> if no conversion is possible
 */
protected CLocation expand( CLocation location, ScreenDockProperty property ){
  if( property.isFullscreen() ){
    return new CMaximalExternalizedLocation( location, property.getX(), property.getY(), property.getWidth(), property.getHeight() );
  }
  else{
    return new CExternalizedLocation( location, property.getX(), property.getY(), property.getWidth(), property.getHeight() );
  }
}

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

/**
 * Creates a new location by creating the child location of <code>location</code> using
 * <code>property</code> for that step.
 * @param location the location to expand
 * @param property the property that is the source of the next location
 * @return the new location or <code>null</code> if no conversion is possible
 */
protected CLocation expand( CLocation location, ScreenDockProperty property ){
  if( property.isFullscreen() ){
    return new CMaximalExternalizedLocation( location, property.getX(), property.getY(), property.getWidth(), property.getHeight() );
  }
  else{
    return new CExternalizedLocation( location, property.getX(), property.getY(), property.getWidth(), property.getHeight() );
  }
}

origin: xyz.cofe/docking-frames-common

private CLocation expand( DockableProperty property ){
  if( property instanceof ScreenDockProperty ){
    ScreenDockProperty screen = (ScreenDockProperty)property;
    
    CLocation result;
    if( screen.isFullscreen() ){
      result = new CMaximalExternalizedLocation( screen.getX(), screen.getY(), screen.getWidth(), screen.getHeight() );
    }
    else{
      result = new CExternalizedLocation( screen.getX(), screen.getY(), screen.getWidth(), screen.getHeight() );
    }
    
    if( property.getSuccessor() != null ){
      return result.expandProperty( station.getStation().getController(), property.getSuccessor() );
    }
    else{
      return result;
    }
  }
  return null;
}

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

private CLocation expand( DockableProperty property ){
  if( property instanceof ScreenDockProperty ){
    ScreenDockProperty screen = (ScreenDockProperty)property;
    
    CLocation result;
    if( screen.isFullscreen() ){
      result = new CMaximalExternalizedLocation( screen.getX(), screen.getY(), screen.getWidth(), screen.getHeight() );
    }
    else{
      result = new CExternalizedLocation( screen.getX(), screen.getY(), screen.getWidth(), screen.getHeight() );
    }
    
    if( property.getSuccessor() != null ){
      return result.expandProperty( station.getStation().getController(), property.getSuccessor() );
    }
    else{
      return result;
    }
  }
  return null;
}
 
origin: xyz.cofe/docking-frames-core

int width = property.getWidth();
int height = property.getHeight();
origin: xyz.cofe/docking-frames-core

boolean accept = accept( dockable ) && dockable.accept( this ) && (acceptance == null || acceptance.accept( this, dockable ));
if( accept ){
  addDockable( dockable, new Rectangle( property.getX(), property.getY(), property.getWidth(), property.getHeight() ), property.getPlaceholder(), args.isBoundsIncludeWindow() );
  done = true;
bibliothek.gui.dock.station.screenScreenDockPropertygetWidth

Javadoc

Gets the width of the dialog.

Popular methods of ScreenDockProperty

  • <init>
    Constructs a new property
  • getHeight
    Gets the height 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

  • Making http post requests using okhttp
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • putExtra (Intent)
  • getContentResolver (Context)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Top Sublime Text plugins
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