1 19 24 25 package org.netbeans.swing.tabcontrol.plaf; 26 27 import org.netbeans.swing.tabcontrol.TabData; 28 29 import javax.swing.*; 30 import java.awt.*; 31 32 42 public interface TabCellRenderer { 43 47 public JComponent getRendererComponent(TabData data, Rectangle bounds, 48 int state); 49 50 69 public String getCommandAtPoint (Point p, int tabState, Rectangle bounds); 70 71 72 95 public String getCommandAtPoint (Point p, int tabState, Rectangle bounds, int mouseButton, 96 int eventType, int modifiers); 97 98 99 118 public Polygon getTabShape(int tabState, Rectangle bounds); 119 120 131 public Dimension getPadding(); 132 133 138 public int getPixelsToAddToSelection(); 139 140 public Color getSelectedBackground(); 142 public Color getSelectedActivatedBackground(); 144 public boolean isShowCloseButton(); 145 146 public void setShowCloseButton(boolean val); 147 } 148 | Popular Tags |