Examples of darker()


Examples of java.awt.Color.darker()

   
    JLabel sFNL = new JLabel("output segment file: ");
    outputSegFileNamePanel.add(sFNL);
    outputSegFileLabel = new JLabel(" " + dataBaseName + ".seg ");
    outputSegFileLabel.setOpaque(true);
    outputSegFileLabel.setBackground(c.darker());
    outputSegFileNamePanel.add(outputSegFileLabel);
           
        //add(Box.createRigidArea(new Dimension(0, 10)));
        add(outputSegFileNamePanel);
View Full Code Here

Examples of java.awt.Color.darker()

    composersInputFileNamePanel.setBackground(c);
    JLabel cINL = new JLabel("input features file: ");
    composersInputFileNamePanel.add(cINL);
    inputFileNameLabel = new JLabel(" " + dataBaseName + ".feat ");
    inputFileNameLabel.setOpaque(true);
    inputFileNameLabel.setBackground(c.darker());
    composersInputFileNamePanel.add(inputFileNameLabel);
    add(composersInputFileNamePanel);

        JPanel selectComposerContainer = new JPanel();
    //BoxLayout bl = new BoxLayout(selectComposerContainer, BoxLayout.Y_AXIS);
View Full Code Here

Examples of java.awt.Color.darker()

    composersOutputFileNamePanel.setBackground(c);
    JLabel cONL = new JLabel("output edl file: ");
    composersOutputFileNamePanel.add(cONL);
    outputFileNameLabel = new JLabel(" " + dataBaseName + ".edl ");
    outputFileNameLabel.setOpaque(true);
    outputFileNameLabel.setBackground(c.darker());
    composersOutputFileNamePanel.add(outputFileNameLabel);
        add(Box.createRigidArea(new Dimension(0, 10)));
        add(composersOutputFileNamePanel);

    JPanel displayComposerFeaturesPanel = new JPanel();
View Full Code Here

Examples of java.awt.Color.darker()

      double colorIndex = featureValue * colorMultipliers[featNum];

      Color c = colormap.table[(int)colorIndex];
     
      if (!cVI.selected)
        c = c.darker().darker().darker();
       
      graphics.setColor(c);
   
      //int n = numElements - i;
     
View Full Code Here

Examples of java.awt.Color.darker()

   
    JLabel sNL = new JLabel("input edl file: ");
    fileIOPanel.add(sNL);
    fileNameLabel = new JLabel(" " + dataBaseName + ".edl ");
    fileNameLabel.setOpaque(true);
    fileNameLabel.setBackground(c.darker());
    fileIOPanel.add(fileNameLabel);
    add(fileIOPanel);
   
    JPanel synthControlsPanel = new JPanel();
    synthControlsPanel.setBackground(c);
View Full Code Here

Examples of java.awt.Color.darker()

    protected void customizeCellRenderer(JTable table, Object value, boolean selected, boolean hasFocus, int row, int column) {
        if (column == 2) {
            Color color = (Color) value;
            if (color == null) color = Color.WHITE;
            setBackground(color);
            setBorder(new CompoundBorder(new LineBorder(Color.WHITE), new ColoredSideBorder(color.brighter(), color.brighter(), color.darker(), color.darker(), 1)));
        } else {
            String stringValue = (String) value;
            if (StringUtil.isNotEmpty(stringValue)) {
                append(stringValue, SimpleTextAttributes.REGULAR_ATTRIBUTES);
            }
View Full Code Here

Examples of java.awt.Color.darker()

    protected void customizeCellRenderer(JTable table, Object value, boolean selected, boolean hasFocus, int row, int column) {
        if (column == 2) {
            Color color = (Color) value;
            if (color == null) color = Color.WHITE;
            setBackground(color);
            setBorder(new CompoundBorder(new LineBorder(Color.WHITE), new ColoredSideBorder(color.brighter(), color.brighter(), color.darker(), color.darker(), 1)));
        } else {
            String stringValue = (String) value;
            if (StringUtil.isNotEmpty(stringValue)) {
                append(stringValue, SimpleTextAttributes.REGULAR_ATTRIBUTES);
            }
View Full Code Here

Examples of java.awt.Color.darker()

    Color background = (Color) get(component, "background");
    switch (mode) {
      case 'e': case 'l': case 'd': case 'g': case 'r': break;
      case 'b': case 'i': case 'x': if (background == null) { background = c_bg; } break;
      case 'h': background = (background != null) ? background.brighter() : c_hover; break;
      case 'p': background = (background != null) ? background.darker() : c_press; break;
      case 't': if (background == null) { background = c_textbg; } break;
      case 's': background = c_select; break;
      default: throw new IllegalArgumentException();
    }
    if (((mode == 'g') || (mode == 'r')) && (background == null)) {
View Full Code Here

Examples of java.awt.Color.darker()

      y = y + 5 * _size / 6 + (_descending ? -dy : 0);
      final int shift = _descending ? 1 : -1;
      g.translate(x, y);

      // Right diagonal.
      g.setColor(color.darker());
      g.drawLine(dx / 2, dy, 0, 0);
      g.drawLine(dx / 2, dy + shift, 0, shift);

      // Left diagonal.
      g.setColor(color.brighter());
View Full Code Here

Examples of java.awt.Color.darker()

      g.drawLine(dx / 2, dy, dx, 0);
      g.drawLine(dx / 2, dy + shift, dx, shift);

      // Horizontal line.
      if (_descending) {
        g.setColor(color.darker().darker());
      } else {
        g.setColor(color.brighter().brighter());
      }
      g.drawLine(dx, 0, 0, 0);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.