Lines 63-69
import java.util.List;
Link Here
|
63 |
import javax.swing.BorderFactory; |
63 |
import javax.swing.BorderFactory; |
64 |
import javax.swing.Icon; |
64 |
import javax.swing.Icon; |
65 |
import javax.swing.JPanel; |
65 |
import javax.swing.JPanel; |
66 |
|
66 |
import org.netbeans.swing.plaf.LFCustoms; |
67 |
|
67 |
|
68 |
/** |
68 |
/** |
69 |
* |
69 |
* |
Lines 102-108
public abstract class CsmPaintComponent extends JPanel {
Link Here
|
102 |
}; |
102 |
}; |
103 |
|
103 |
|
104 |
private static final Color KEYWORD_COLOR = Color.darkGray; |
104 |
private static final Color KEYWORD_COLOR = Color.darkGray; |
105 |
private static final Color TYPE_COLOR = Color.black; |
|
|
106 |
private static final Color POSTFIX_COLOR = Color.gray; |
105 |
private static final Color POSTFIX_COLOR = Color.gray; |
107 |
|
106 |
|
108 |
private Icon icon; |
107 |
private Icon icon; |
Lines 397-403
public abstract class CsmPaintComponent extends JPanel {
Link Here
|
397 |
|
396 |
|
398 |
private String pkgName; |
397 |
private String pkgName; |
399 |
private boolean displayFullNamespacePath; |
398 |
private boolean displayFullNamespacePath; |
400 |
private Color NAMESPACE_COLOR = Color.green.darker().darker().darker(); |
399 |
private Color NAMESPACE_COLOR = Color.green; |
401 |
|
400 |
|
402 |
public NamespacePaintComponent(){ |
401 |
public NamespacePaintComponent(){ |
403 |
super(); |
402 |
super(); |
Lines 434-440
public abstract class CsmPaintComponent extends JPanel {
Link Here
|
434 |
public static class NamespaceAliasPaintComponent extends CsmPaintComponent{ |
433 |
public static class NamespaceAliasPaintComponent extends CsmPaintComponent{ |
435 |
|
434 |
|
436 |
private String aliasName; |
435 |
private String aliasName; |
437 |
private Color NAMESPACE_COLOR = Color.green.darker().darker().darker(); |
436 |
private Color NAMESPACE_COLOR = Color.green; |
438 |
|
437 |
|
439 |
public NamespaceAliasPaintComponent(){ |
438 |
public NamespaceAliasPaintComponent(){ |
440 |
super(); |
439 |
super(); |
Lines 463-469
public abstract class CsmPaintComponent extends JPanel {
Link Here
|
463 |
public static class EnumPaintComponent extends CsmPaintComponent { |
462 |
public static class EnumPaintComponent extends CsmPaintComponent { |
464 |
|
463 |
|
465 |
String formatEnumName; |
464 |
String formatEnumName; |
466 |
private Color ENUM_COLOR = Color.red.darker().darker().darker().darker(); |
465 |
private Color ENUM_COLOR = Color.red; |
467 |
private boolean displayFQN; |
466 |
private boolean displayFQN; |
468 |
|
467 |
|
469 |
public void EnumPaintComponent(String formatEnumName){ |
468 |
public void EnumPaintComponent(String formatEnumName){ |
Lines 498-504
public abstract class CsmPaintComponent extends JPanel {
Link Here
|
498 |
public static class EnumeratorPaintComponent extends CsmPaintComponent { |
497 |
public static class EnumeratorPaintComponent extends CsmPaintComponent { |
499 |
|
498 |
|
500 |
String formatEnumeratorName; |
499 |
String formatEnumeratorName; |
501 |
private Color ENUMERATOR_COLOR = Color.blue.darker().darker().darker().darker(); |
500 |
private Color ENUMERATOR_COLOR = Color.blue; |
502 |
private boolean displayFQN; |
501 |
private boolean displayFQN; |
503 |
|
502 |
|
504 |
public void EnumeratorPaintComponent(String formatEnumeratorName){ |
503 |
public void EnumeratorPaintComponent(String formatEnumeratorName){ |
Lines 534-540
public abstract class CsmPaintComponent extends JPanel {
Link Here
|
534 |
public static class ClassPaintComponent extends CsmPaintComponent{ |
533 |
public static class ClassPaintComponent extends CsmPaintComponent{ |
535 |
|
534 |
|
536 |
String formatClassName; |
535 |
String formatClassName; |
537 |
private Color CLASS_COLOR = Color.red.darker().darker().darker(); |
536 |
private Color CLASS_COLOR = Color.red; |
538 |
private boolean displayFQN; |
537 |
private boolean displayFQN; |
539 |
|
538 |
|
540 |
public void setFormatClassName(String formatClassName){ |
539 |
public void setFormatClassName(String formatClassName){ |
Lines 597-603
public abstract class CsmPaintComponent extends JPanel {
Link Here
|
597 |
|
596 |
|
598 |
public static class StructPaintComponent extends ClassPaintComponent{ |
597 |
public static class StructPaintComponent extends ClassPaintComponent{ |
599 |
|
598 |
|
600 |
private Color STRUCT_COLOR = Color.red.darker().darker(); |
599 |
private Color STRUCT_COLOR = Color.red; |
601 |
|
600 |
|
602 |
@Override |
601 |
@Override |
603 |
protected Color getColor(){ |
602 |
protected Color getColor(){ |
Lines 611-617
public abstract class CsmPaintComponent extends JPanel {
Link Here
|
611 |
|
610 |
|
612 |
public static class UnionPaintComponent extends ClassPaintComponent{ |
611 |
public static class UnionPaintComponent extends ClassPaintComponent{ |
613 |
|
612 |
|
614 |
private Color UNION_COLOR = Color.red.darker(); |
613 |
private Color UNION_COLOR = Color.red; |
615 |
|
614 |
|
616 |
@Override |
615 |
@Override |
617 |
protected Color getColor(){ |
616 |
protected Color getColor(){ |
Lines 706-712
public abstract class CsmPaintComponent extends JPanel {
Link Here
|
706 |
} |
705 |
} |
707 |
|
706 |
|
708 |
public static class LocalVariablePaintComponent extends FieldPaintComponent { |
707 |
public static class LocalVariablePaintComponent extends FieldPaintComponent { |
709 |
private Color VARIABLE_COLOR = Color.red.darker().darker().darker(); |
708 |
private Color VARIABLE_COLOR = Color.red; |
710 |
|
709 |
|
711 |
public LocalVariablePaintComponent(){ |
710 |
public LocalVariablePaintComponent(){ |
712 |
super(); |
711 |
super(); |
Lines 725-731
public abstract class CsmPaintComponent extends JPanel {
Link Here
|
725 |
} |
724 |
} |
726 |
|
725 |
|
727 |
public static class FileLocalVariablePaintComponent extends FieldPaintComponent { |
726 |
public static class FileLocalVariablePaintComponent extends FieldPaintComponent { |
728 |
private Color VARIABLE_COLOR = Color.blue.darker().darker().darker(); |
727 |
private Color VARIABLE_COLOR = Color.blue; |
729 |
|
728 |
|
730 |
public FileLocalVariablePaintComponent(){ |
729 |
public FileLocalVariablePaintComponent(){ |
731 |
super(); |
730 |
super(); |
Lines 738-744
public abstract class CsmPaintComponent extends JPanel {
Link Here
|
738 |
} |
737 |
} |
739 |
|
738 |
|
740 |
public static class GlobalVariablePaintComponent extends FieldPaintComponent { |
739 |
public static class GlobalVariablePaintComponent extends FieldPaintComponent { |
741 |
private Color VARIABLE_COLOR = Color.blue.darker().darker().darker(); |
740 |
private Color VARIABLE_COLOR = Color.blue; |
742 |
|
741 |
|
743 |
public GlobalVariablePaintComponent(){ |
742 |
public GlobalVariablePaintComponent(){ |
744 |
super(); |
743 |
super(); |
Lines 832-838
public abstract class CsmPaintComponent extends JPanel {
Link Here
|
832 |
} |
831 |
} |
833 |
|
832 |
|
834 |
public static class TemplateParameterPaintComponent extends CsmPaintComponent{ |
833 |
public static class TemplateParameterPaintComponent extends CsmPaintComponent{ |
835 |
private Color PARAMETER_NAME_COLOR = Color.BLACK.darker().darker(); |
834 |
private Color PARAMETER_NAME_COLOR = LFCustoms.getTextFgColor(); |
836 |
private List params = null; |
835 |
private List params = null; |
837 |
private String name; |
836 |
private String name; |
838 |
|
837 |
|
Lines 879-885
public abstract class CsmPaintComponent extends JPanel {
Link Here
|
879 |
} |
878 |
} |
880 |
|
879 |
|
881 |
public static class LabelPaintComponent extends CsmPaintComponent { |
880 |
public static class LabelPaintComponent extends CsmPaintComponent { |
882 |
private Color LABEL_NAME_COLOR = Color.BLACK.darker().darker(); |
881 |
private Color LABEL_NAME_COLOR = LFCustoms.getTextFgColor(); |
883 |
private List params = null; |
882 |
private List params = null; |
884 |
private String name; |
883 |
private String name; |
885 |
|
884 |
|
Lines 927-933
public abstract class CsmPaintComponent extends JPanel {
Link Here
|
927 |
|
926 |
|
928 |
public static class ConstructorPaintComponent extends CsmPaintComponent{ |
927 |
public static class ConstructorPaintComponent extends CsmPaintComponent{ |
929 |
|
928 |
|
930 |
private Color CONSTRUCTOR_COLOR = Color.orange.darker().darker(); |
929 |
private Color CONSTRUCTOR_COLOR = Color.orange; |
931 |
private Color PARAMETER_NAME_COLOR = new Color(163, 102, 10);//Color.magenta.darker(); |
930 |
private Color PARAMETER_NAME_COLOR = new Color(163, 102, 10);//Color.magenta.darker(); |
932 |
private List params = new ArrayList(); |
931 |
private List params = new ArrayList(); |
933 |
private List excs = new ArrayList(); |
932 |
private List excs = new ArrayList(); |
Lines 1084-1090
public abstract class CsmPaintComponent extends JPanel {
Link Here
|
1084 |
public static class MethodPaintComponent extends ConstructorPaintComponent { |
1083 |
public static class MethodPaintComponent extends ConstructorPaintComponent { |
1085 |
|
1084 |
|
1086 |
//private Color PARAMETER_NAME_COLOR = Color.magenta.darker(); |
1085 |
//private Color PARAMETER_NAME_COLOR = Color.magenta.darker(); |
1087 |
private Color METHOD_COLOR = Color.black;//red.darker().darker(); |
1086 |
private Color METHOD_COLOR = LFCustoms.getTextFgColor(); |
1088 |
private String typeName; |
1087 |
private String typeName; |
1089 |
private Color typeColor; |
1088 |
private Color typeColor; |
1090 |
private boolean drawTypeAsPrefix = false; |
1089 |
private boolean drawTypeAsPrefix = false; |
Lines 1169-1175
public abstract class CsmPaintComponent extends JPanel {
Link Here
|
1169 |
} |
1168 |
} |
1170 |
|
1169 |
|
1171 |
public static class FileLocalFunctionPaintComponent extends MethodPaintComponent { |
1170 |
public static class FileLocalFunctionPaintComponent extends MethodPaintComponent { |
1172 |
private Color FUN_COLOR = Color.black;//red.darker().darker(); |
1171 |
private Color FUN_COLOR = LFCustoms.getTextFgColor(); |
1173 |
|
1172 |
|
1174 |
public FileLocalFunctionPaintComponent(){ |
1173 |
public FileLocalFunctionPaintComponent(){ |
1175 |
super(); |
1174 |
super(); |
Lines 1182-1188
public abstract class CsmPaintComponent extends JPanel {
Link Here
|
1182 |
} |
1181 |
} |
1183 |
|
1182 |
|
1184 |
public static class GlobalFunctionPaintComponent extends MethodPaintComponent { |
1183 |
public static class GlobalFunctionPaintComponent extends MethodPaintComponent { |
1185 |
private Color FUN_COLOR = Color.black;//.red.darker().darker(); |
1184 |
private Color FUN_COLOR = LFCustoms.getTextFgColor(); |
1186 |
|
1185 |
|
1187 |
public GlobalFunctionPaintComponent(){ |
1186 |
public GlobalFunctionPaintComponent(){ |
1188 |
super(); |
1187 |
super(); |
Lines 1253-1259
public abstract class CsmPaintComponent extends JPanel {
Link Here
|
1253 |
|
1252 |
|
1254 |
protected void draw(Graphics g){ |
1253 |
protected void draw(Graphics g){ |
1255 |
drawIcon(g, null); |
1254 |
drawIcon(g, null); |
1256 |
drawString(g, str, TYPE_COLOR); |
1255 |
drawString(g, str, LFCustoms.getTextFgColor()); |
1257 |
} |
1256 |
} |
1258 |
|
1257 |
|
1259 |
public String toString() { |
1258 |
public String toString() { |