You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
702 B
32 lines
702 B
package com.fr.design.mainframe.vcs.ui; |
|
|
|
|
|
import com.fr.design.gui.ilable.ActionLabel; |
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
import java.awt.Color; |
|
import java.awt.Graphics; |
|
|
|
/** |
|
* Created by XiaXiang on 2019/5/15. |
|
*/ |
|
public class VcsLabel extends ActionLabel { |
|
|
|
|
|
public VcsLabel(String text, Color color) { |
|
super(text); |
|
this.setForeground(color); |
|
} |
|
|
|
public void paintComponent(Graphics g) { |
|
if (ui != null) { |
|
Graphics scratchGraphics = (g == null) ? null : g.create(); |
|
try { |
|
ui.update(scratchGraphics, this); |
|
} |
|
finally { |
|
scratchGraphics.dispose(); |
|
} |
|
} |
|
} |
|
} |