|
|
|
@ -1,22 +1,14 @@
|
|
|
|
|
package com.fr.design.mainframe.alphafine.component; |
|
|
|
|
|
|
|
|
|
import com.fr.design.DesignerEnvManager; |
|
|
|
|
import com.fr.design.constants.UIConstants; |
|
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
|
import com.fr.design.mainframe.alphafine.AlphaFineConstants; |
|
|
|
|
import com.fr.design.mainframe.alphafine.AlphaFineUtil; |
|
|
|
|
import com.fr.design.mainframe.alphafine.CellType; |
|
|
|
|
import com.fr.design.mainframe.alphafine.model.ProductNews; |
|
|
|
|
import com.fr.design.mainframe.alphafine.search.manager.impl.ProductNewsSearchManager; |
|
|
|
|
import com.fr.design.menu.SnapChatUtil; |
|
|
|
|
import java.awt.Color; |
|
|
|
|
import java.awt.Graphics; |
|
|
|
|
import java.awt.Graphics2D; |
|
|
|
|
import java.awt.Rectangle; |
|
|
|
|
import java.awt.RenderingHints; |
|
|
|
|
import java.awt.geom.Ellipse2D; |
|
|
|
|
import java.util.List; |
|
|
|
|
import java.util.Set; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @author hades |
|
|
|
@ -30,7 +22,6 @@ public class SelectedLabel extends UILabel {
|
|
|
|
|
private static final int GAP = 2; |
|
|
|
|
|
|
|
|
|
private boolean selected; |
|
|
|
|
private boolean hasRead; |
|
|
|
|
private CellType cellType; |
|
|
|
|
|
|
|
|
|
public SelectedLabel(String text, CellType cellType, boolean selected) { |
|
|
|
@ -53,11 +44,8 @@ public class SelectedLabel extends UILabel {
|
|
|
|
|
g2d.setColor(UIConstants.FLESH_BLUE); |
|
|
|
|
setForeground(UIConstants.FLESH_BLUE); |
|
|
|
|
g2d.drawLine(0, this.getHeight() - 1, this.getWidth(), this.getHeight() - 1); |
|
|
|
|
} else { |
|
|
|
|
setForeground(AlphaFineConstants.FOREGROUND_COLOR_8); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (cellType == CellType.PRODUCT_NEWS && AlphaFineUtil.unread()) { |
|
|
|
|
Color oldColor = g.getColor(); |
|
|
|
|
g2d.setColor(Color.RED); |
|
|
|
@ -77,14 +65,6 @@ public class SelectedLabel extends UILabel {
|
|
|
|
|
this.selected = selected; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public boolean isHasRead() { |
|
|
|
|
return hasRead; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void setHasRead(boolean hasRead) { |
|
|
|
|
this.hasRead = hasRead; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public CellType getCellType() { |
|
|
|
|
return cellType; |
|
|
|
|
} |
|
|
|
|