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

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

Best Java code snippets using bibliothek.gui.dock.station.screen.ScreenDockProperty.getX (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 x = property.getX();
int y = property.getY();
int width = property.getWidth();
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.screenScreenDockPropertygetX

Javadoc

Gets the x-coordinate of the dialog.

Popular methods of ScreenDockProperty

  • <init>
    Constructs a new property
  • getHeight
    Gets the height of the dialog.
  • getWidth
    Gets the width 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
  • scheduleAtFixedRate (Timer)
  • onRequestPermissionsResult (Fragment)
  • getSupportFragmentManager (FragmentActivity)
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top plugins for WebStorm
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