forked from KNEMC/KLALB
制作图形界面
This commit is contained in:
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
package org.knemcl.uitool;
|
||||
|
||||
import javax.swing.*;
|
||||
import javax.swing.plaf.*;
|
||||
import javax.swing.plaf.basic.*;
|
||||
import java.awt.*;
|
||||
|
||||
/**
|
||||
* The Metal implementation of ProgressBarUI.
|
||||
* <p>
|
||||
* <strong>Warning:</strong>
|
||||
* Serialized objects of this class will not be compatible with
|
||||
* future Swing releases. The current serialization support is
|
||||
* appropriate for short term storage or RMI between applications running
|
||||
* the same version of Swing. As of 1.4, support for long term storage
|
||||
* of all JavaBeans™
|
||||
* has been added to the <code>java.beans</code> package.
|
||||
* Please see {@link java.beans.XMLEncoder}.
|
||||
*
|
||||
* @author Michael C. Albers
|
||||
*/
|
||||
public class KNEProgressBarUI extends BasicProgressBarUI {
|
||||
|
||||
// private Rectangle innards;
|
||||
// private Rectangle box;
|
||||
|
||||
public static ComponentUI createUI(JComponent c) {
|
||||
return new KNEProgressBarUI();
|
||||
}
|
||||
|
||||
/**
|
||||
* Draws a bit of special highlighting on the progress bar.
|
||||
* The core painting is deferred to the BasicProgressBar's
|
||||
* <code>paintDeterminate</code> method.
|
||||
* @since 1.4
|
||||
*/
|
||||
public void paintDeterminate(Graphics g, JComponent c) {
|
||||
super.paintDeterminate(g,c);
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Draws a bit of special highlighting on the progress bar
|
||||
* and bouncing box.
|
||||
* The core painting is deferred to the BasicProgressBar's
|
||||
* <code>paintIndeterminate</code> method.
|
||||
* @since 1.4
|
||||
*/
|
||||
public void paintIndeterminate(Graphics g, JComponent c) {
|
||||
super.paintIndeterminate(g, c);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user