Java 8 RepaintManager - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 RepaintManager class.

This code example shows how to use the following methods:
    /** 
     * Temporary hack prior to setting up proper fest-swing tests. 
     */ 
    @BeforeClass 
    public static void setupOnce() { 
        RepaintManager rm = new RepaintManager();
        FailOnThreadViolationRepaintManager.setCurrentManager(rm);
    } 
     
     
    @Test
    public void testDnDList() { 
        if( isHeadless() ) return; 
 
        DnDList<String> list = new DnDList<String>();
        assertNotNull( list );
    } 
 
    @Test
    public void testDnDListDnDListModelOfT() { 
5
CodeRank
This code example shows how to use the following methods:removeInvalidComponent
    /** 
     * Just delegates. {@inheritDoc} 
     */ 
    @Override 
    public void removeInvalidComponent(JComponent component) {
	delegate.removeInvalidComponent(component);
    } 
 
    /** 
     * Just delegates. {@inheritDoc} 
     */ 
    @Override 
    public void setDoubleBufferingEnabled(boolean aFlag) {
	delegate.setDoubleBufferingEnabled(aFlag);
    } 
 
    /** 
     * Just delegates. {@inheritDoc} 
     */ 
    @Override 
3
CodeRank
This code example shows how to use the following methods:setDoubleBufferingEnabled
        RepaintManager.setCurrentManager(repaintManager);
    } 
 
    @Override 
    public void setDoubleBufferingEnabled(boolean b) {
        delegate.setDoubleBufferingEnabled(b);
    } 
 
    @Override 
    public void setDoubleBufferMaximumSize(Dimension dimension) {
        delegate.setDoubleBufferMaximumSize(dimension);
    } 
 
    @Override 
    public String toString() {
        return delegate.toString();
    } 
 
    @Override 
    public void validateInvalidComponents() { 
4
CodeRank
This code example shows how to use the following methods:setCurrentManager
		return statusBar;
	} 
 
	private void initializeRepaintManager(){ 
		if(repaintManager != null){
			RepaintManager.setCurrentManager(repaintManager);
		} 
	} 
	 
} 
4
CodeRank
This code example shows how to use the following methods:addDirtyRegion
		Point point = aComponent.getLocationOnScreen();
		SwingUtilities.convertPointFromScreen(point, layer);
		Rectangle transformPortRegion = ui.transform(new Rectangle(x
			+ point.x, y + point.y, w, h),
			(JXLayer<JComponent>) layer);
		manager.addDirtyRegion((JXLayer<?>) layer,
			transformPortRegion.x, transformPortRegion.y,
			transformPortRegion.width, transformPortRegion.height);
		return true; 
	    } 
	} 
	return false; 
    } 
 
    /** 
     * If {@link #hack} is {@code true}, the private fields {@code paintManager} 
     * and {@code bufferStrategyType} are copied via reflection from the source 
     * manager into the destination manager. 
     *  
     * @param sourceManager 
3
CodeRank
See Code Examples for Java 8 RepaintManager Methods: