public boolean isMouseOverTitle(){ return info.getPut() == PutInfo.Put.TITLE; } }
public boolean isMouseOverTitle(){ return info.getPut() == PutInfo.Put.TITLE; } }
int gap = getWizardSpanStrategy().getGap(); if( putInfo.getPut() == PutInfo.Put.LEFT ) { bounds.x -= gap; bounds.width = gap; bounds.x = Math.max( 0, bounds.x ); else if( putInfo.getPut() == PutInfo.Put.RIGHT ) { bounds.x += bounds.width; bounds.width = gap; bounds.x = Math.min( bounds.x, getWidth()-gap-1 ); else if( putInfo.getPut() == PutInfo.Put.TOP ) { bounds.y -= gap; bounds.height = gap; bounds.y = Math.max( 0, bounds.y ); else if( putInfo.getPut() == PutInfo.Put.BOTTOM ) { bounds.y += bounds.height; bounds.height = gap;
Put put = info.getPut(); if( put != Put.LEFT && put != Put.RIGHT && put != Put.TOP && put != Put.BOTTOM ){ info = null; if( info.getPut() == lastPut.getPut() && info.getNode() == lastPut.getNode()){ return; Span[] spans = getSpans( lastPut ); if( spans != null ){ spans[ putToPosition( lastPut.getPut() )].mutate( SpanMode.OFF ); Put put = info.getPut(); Span[] spans = getSpans( info ); if( spans != null ){
Put put = info.getPut(); if( put != Put.LEFT && put != Put.RIGHT && put != Put.TOP && put != Put.BOTTOM ){ info = null; if( info.getPut() == lastPut.getPut() && info.getNode() == lastPut.getNode()){ return; Span[] spans = getSpans( lastPut ); if( spans != null ){ spans[ putToPosition( lastPut.getPut() )].mutate( SpanMode.OFF ); Put put = info.getPut(); Span[] spans = getSpans( info ); if( spans != null ){
Node originParent = (Node)origin.getParent(); if( (putInfo.getPut() == PutInfo.Put.LEFT || putInfo.getPut() == PutInfo.Put.RIGHT) && originParent.getOrientation() == Orientation.HORIZONTAL ){ size = oldSize.width; else if( (putInfo.getPut() == PutInfo.Put.TOP || putInfo.getPut() == PutInfo.Put.BOTTOM) && originParent.getOrientation() == Orientation.VERTICAL){ size = oldSize.height; int dividerSize = station.getDividerSize(); if( putInfo.getPut() == PutInfo.Put.TOP ){ if( size != 0 ) divider = (size + dividerSize/2.0) / nodeSize.height; else if( putInfo.getPut() == PutInfo.Put.BOTTOM ){ if( size != 0 ) divider = 1.0 - (size + dividerSize/2.0) / nodeSize.height; else if( putInfo.getPut() == PutInfo.Put.LEFT ){ if( size != 0 ) divider = (size + dividerSize/2.0) / nodeSize.width; else if( putInfo.getPut() == PutInfo.Put.RIGHT ){ if( size != 0 ) divider = 1.0 - (size + dividerSize/2.0) / nodeSize.width;
if( info.getPut() == PutInfo.Put.LEFT ){ setPut( column.getIndex(), -1 ); else if( info.getPut() == PutInfo.Put.RIGHT ){ setPut( column.getIndex()+1, -1 ); else if( info.getPut() == PutInfo.Put.TOP ){ Cell cell = column.getLeftmostCell( node ); setPut( column.getIndex(), cell.getIndex() ); else if( info.getPut() == PutInfo.Put.BOTTOM ){ Cell cell = column.getRightmostCell( node ); setPut( column.getIndex(), cell.getIndex()+1 ); if( info.getPut() == PutInfo.Put.LEFT ){ Cell cell = column.getLeftmostCell( node ); setPut( column.getIndex(), cell.getIndex() ); else if( info.getPut() == PutInfo.Put.RIGHT ){ Cell cell = column.getRightmostCell( node ); setPut( column.getIndex(), cell.getIndex()+1 ); else if( info.getPut() == PutInfo.Put.TOP ){ setPut( column.getIndex(), -1 ); else if( info.getPut() == PutInfo.Put.BOTTOM ){ setPut( column.getIndex()+1, -1 );
if( putInfo.getPut() == PutInfo.Put.LEFT ) { bounds.width = (int) (bounds.width * putInfo.getDivider() + 0.5); else if( putInfo.getPut() == PutInfo.Put.RIGHT ) { int width = bounds.width; bounds.width = (int) (bounds.width * (1 - putInfo.getDivider()) + 0.5); bounds.x += width - bounds.width; else if( putInfo.getPut() == PutInfo.Put.TOP ) { bounds.height = (int) (bounds.height * putInfo.getDivider() + 0.5); else if( putInfo.getPut() == PutInfo.Put.BOTTOM ) { int height = bounds.height; bounds.height = (int) (bounds.height * (1 - putInfo.getDivider()) + 0.5);
if( putInfo.getPut() == PutInfo.Put.LEFT ) { bounds.width = (int) (bounds.width * putInfo.getDivider() + 0.5); else if( putInfo.getPut() == PutInfo.Put.RIGHT ) { int width = bounds.width; bounds.width = (int) (bounds.width * (1 - putInfo.getDivider()) + 0.5); bounds.x += width - bounds.width; else if( putInfo.getPut() == PutInfo.Put.TOP ) { bounds.height = (int) (bounds.height * putInfo.getDivider() + 0.5); else if( putInfo.getPut() == PutInfo.Put.BOTTOM ) { int height = bounds.height; bounds.height = (int) (bounds.height * (1 - putInfo.getDivider()) + 0.5);
public PutInfo validatePutInfo( SplitDockStation station, PutInfo putInfo ){ if( putInfo != null ){ if( !station.accept( putInfo.getDockable() )) return null; if( putInfo.getNode() != null && (putInfo.getPut() == PutInfo.Put.CENTER || putInfo.getPut() == PutInfo.Put.TITLE )){ if( !putInfo.getDockable().accept( station, ((Leaf)putInfo.getNode()).getDockable() ) || !((Leaf)putInfo.getNode()).getDockable().accept( station, putInfo.getDockable() ) || !station.getController().getAcceptance().accept( station, ((Leaf)putInfo.getNode()).getDockable(), putInfo.getDockable() )){ return null; } } else{ if( !putInfo.getDockable().accept( station ) || !station.getController().getAcceptance().accept( station, putInfo.getDockable() )){ return null; } } } return putInfo; }
public PutInfo validatePutInfo( SplitDockStation station, PutInfo putInfo ){ if( putInfo != null ){ if( !station.accept( putInfo.getDockable() )) return null; if( putInfo.getNode() != null && (putInfo.getPut() == PutInfo.Put.CENTER || putInfo.getPut() == PutInfo.Put.TITLE )){ if( !putInfo.getDockable().accept( station, ((Leaf)putInfo.getNode()).getDockable() ) || !((Leaf)putInfo.getNode()).getDockable().accept( station, putInfo.getDockable() ) || !station.getController().getAcceptance().accept( station, ((Leaf)putInfo.getNode()).getDockable(), putInfo.getDockable() )){ return null; } } else{ if( !putInfo.getDockable().accept( station ) || !station.getController().getAcceptance().accept( station, putInfo.getDockable() )){ return null; } } } return putInfo; }
Node node = (Node)station.getRoot().getChild(); if( node.getLeft().isVisible() && node.getRight().isVisible() ){ if( info.getPut() == PutInfo.Put.TOP && node.getOrientation() == Orientation.VERTICAL && node.getLeft() == leaf ) return null; if( info.getPut() == PutInfo.Put.BOTTOM && node.getOrientation() == Orientation.VERTICAL && node.getRight() == leaf ) return null; if( info.getPut() == PutInfo.Put.LEFT && node.getOrientation() == Orientation.HORIZONTAL && node.getLeft() == leaf ) return null; if( info.getPut() == PutInfo.Put.RIGHT && node.getOrientation() == Orientation.HORIZONTAL && node.getRight() == leaf ) return null;
Node node = (Node)station.getRoot().getChild(); if( node.getLeft().isVisible() && node.getRight().isVisible() ){ if( info.getPut() == PutInfo.Put.TOP && node.getOrientation() == Orientation.VERTICAL && node.getLeft() == leaf ) return null; if( info.getPut() == PutInfo.Put.BOTTOM && node.getOrientation() == Orientation.VERTICAL && node.getRight() == leaf ) return null; if( info.getPut() == PutInfo.Put.LEFT && node.getOrientation() == Orientation.HORIZONTAL && node.getLeft() == leaf ) return null; if( info.getPut() == PutInfo.Put.RIGHT && node.getOrientation() == Orientation.HORIZONTAL && node.getRight() == leaf ) return null;
if( putInfo.getPut() == Put.CENTER ) { leaf.placehold(false);
if( putInfo.getPut() == Put.CENTER ) { leaf.placehold(false);
updateBounds(); layoutManager.getValue().calculateDivider( SplitDockStation.this, putInfo, root().getLeaf(putInfo.getDockable()), item ); dropAside( putInfo.getNode(), putInfo.getPut(), putInfo.getDockable(), putInfo.getLeaf(), putInfo.getDivider(), token );
updateBounds(); layoutManager.getValue().calculateDivider( SplitDockStation.this, putInfo, root().getLeaf(putInfo.getDockable()), item ); dropAside( putInfo.getNode(), putInfo.getPut(), putInfo.getDockable(), putInfo.getLeaf(), putInfo.getDivider(), token );