Package org.jdesktop.swingx.painter

Examples of org.jdesktop.swingx.painter.BusyPainter


  public static ComponentUI createUI(JComponent c) {
    return new BasicBusyLabelUI((JXBusyLabel)c);
  }

    public BusyPainter getBusyPainter(final Dimension dim) {
        BusyPainter p = new BusyPainter() {
            @Override
            protected void init(Shape point, Shape trajectory, Color b, Color h) {
                super.init(dim == null ? UIManagerExt.getShape("JXBusyLabel.pointShape") : getScaledDefaultPoint(dim.height),
                        dim == null ? UIManagerExt.getShape("JXBusyLabel.trajectoryShape") : getScaledDefaultTrajectory(dim.height),
                        UIManagerExt.getSafeColor("JXBusyLabel.baseColor", Color.LIGHT_GRAY),
View Full Code Here


     *
     * @see #getBusyPainter()
     * @see #setBusyPainter(BusyPainter)
     */
    protected void initPainter(Dimension dim) {
        BusyPainter busyPainter = getBusyPainter();

        // headw01
        // TODO: Should we force the busyPainter to NOT be cached?
        //       I think we probably should, otherwise the UI will never
        //       be updated after the first paint.
        if (null != busyPainter) {
            busyPainter.setCacheable(false);
        }

        PainterIcon icon = new PainterIcon(dim);
        icon.setPainter(busyPainter);
        this.setIcon(icon);
View Full Code Here

     * @param dim Painter size.
     *
     * @see #getUI()
     */
    protected BusyPainter createBusyPainter(Dimension dim) {
        BusyPainter busyPainter = null;
       
        BusyLabelUI ui = (BusyLabelUI)getUI();
        if (ui != null) {
            busyPainter = ui.getBusyPainter(dim);
           
View Full Code Here

    private Resource image;

    public DataEditorSplash()
    {
        BusyPainter painter = new BusyPainter(
        new RoundRectangle2D.Float(0, 0,28.0f,8.6f,10.0f,10.0f),
        new Ellipse2D.Float(15.0f,15.0f,70.0f,70.0f));
        painter.setTrailLength(4);
        painter.setPoints(8);
        painter.setFrame(7);
        painter.setHighlightColor(new Color(30,42,102));
        busyLabel.setPreferredSize(new Dimension(100,100));
        busyLabel.setIcon(new EmptyIcon(100,100));
        busyLabel.setBusyPainter(painter);
        busyLabel.setDelay(75);
View Full Code Here

    initComponents();
  }

  public void initComponents() {
    this.painter = new BusyPainter(new RoundRectangle2D.Float(0, 0,7.5000005f,7.5f,10.0f,10.0f)new Ellipse2D.Float(6.0f,6.0f,29.0f,29.0f));
    painter.setTrailLength(4);
    painter.setPoints(7);
    painter.setFrame(4);
    painter.setAntialiasing(true);
View Full Code Here

    add( label, BorderLayout.CENTER );
  }


  protected BusyPainter createBusyPainter() {
    BusyPainter painter = new BusyPainter(
      new RoundRectangle2D.Float( 0, 0, 2.0f, 4.5f, 10.0f, 10.0f ),
      new Ellipse2D.Float( 3.0f, 3.0f, 14.0f, 14.0f ) );
    painter.setTrailLength( 4 );
    painter.setPoints( 8 );
    painter.setFrame( 4 );
    painter.setHighlightColor( new Color( 0, 112, 192 ) );
    return painter;
  }
View Full Code Here

TOP

Related Classes of org.jdesktop.swingx.painter.BusyPainter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.