public class TabFrameLayout extends Object implements LayoutManager
Constructor and Description |
---|
TabFrameLayout(JTabFrame tabFrame,
DarkTabFrameUI ui) |
Modifier and Type | Method and Description |
---|---|
void |
addLayoutComponent(String name,
Component comp) |
protected int |
calculateMaxTabSize(com.github.weisj.darklaf.util.Alignment a) |
protected int |
getIndex(com.github.weisj.darklaf.util.Alignment a) |
int |
getTabWidth(Component c) |
boolean |
isDraggedOver(com.github.weisj.darklaf.util.Alignment a) |
protected void |
layoutBottomTab(Dimension dim,
int bottomCount,
int leftCount,
int rightCount) |
void |
layoutContainer(Container parent) |
protected void |
layoutHorizontal(Dimension dim,
com.github.weisj.darklaf.util.Alignment left,
com.github.weisj.darklaf.util.Alignment right,
int yOff,
int leftCount,
int rightCount,
int tabHeight) |
protected void |
layoutHorizontalDrop(com.github.weisj.darklaf.util.Alignment left,
int leftCount,
int rightCount,
int size,
int yOff) |
protected void |
layoutLeftTab(Dimension dim,
int leftCount) |
protected void |
layoutRightTab(Dimension dim,
int rightCount) |
protected int |
layoutTabArea(Point start,
com.github.weisj.darklaf.util.Alignment a,
boolean forward,
int size) |
protected void |
layoutTopTab(Dimension dim,
int topCount,
int leftCount,
int rightCount) |
protected void |
layoutVerticalDrop(com.github.weisj.darklaf.util.Alignment left,
int size) |
Dimension |
minimumLayoutSize(Container parent) |
Dimension |
preferredLayoutSize(Container parent) |
void |
removeLayoutComponent(Component comp) |
void |
setDraggedOver(com.github.weisj.darklaf.util.Alignment a,
boolean b) |
void |
setDraggedOver(boolean b) |
protected void |
shift(int shift,
com.github.weisj.darklaf.util.Alignment a) |
public TabFrameLayout(JTabFrame tabFrame, DarkTabFrameUI ui)
public void addLayoutComponent(String name, Component comp)
addLayoutComponent
in interface LayoutManager
public void removeLayoutComponent(Component comp)
removeLayoutComponent
in interface LayoutManager
public Dimension preferredLayoutSize(Container parent)
preferredLayoutSize
in interface LayoutManager
public Dimension minimumLayoutSize(Container parent)
minimumLayoutSize
in interface LayoutManager
public void layoutContainer(Container parent)
layoutContainer
in interface LayoutManager
protected void layoutTopTab(Dimension dim, int topCount, int leftCount, int rightCount)
protected void layoutBottomTab(Dimension dim, int bottomCount, int leftCount, int rightCount)
protected void layoutHorizontalDrop(com.github.weisj.darklaf.util.Alignment left, int leftCount, int rightCount, int size, int yOff)
protected void layoutHorizontal(Dimension dim, com.github.weisj.darklaf.util.Alignment left, com.github.weisj.darklaf.util.Alignment right, int yOff, int leftCount, int rightCount, int tabHeight)
protected void layoutLeftTab(Dimension dim, int leftCount)
protected void layoutVerticalDrop(com.github.weisj.darklaf.util.Alignment left, int size)
protected void layoutRightTab(Dimension dim, int rightCount)
protected void shift(int shift, com.github.weisj.darklaf.util.Alignment a)
protected int getIndex(com.github.weisj.darklaf.util.Alignment a)
public void setDraggedOver(com.github.weisj.darklaf.util.Alignment a, boolean b)
protected int layoutTabArea(Point start, com.github.weisj.darklaf.util.Alignment a, boolean forward, int size)
public int getTabWidth(Component c)
protected int calculateMaxTabSize(com.github.weisj.darklaf.util.Alignment a)
public void setDraggedOver(boolean b)
public boolean isDraggedOver(com.github.weisj.darklaf.util.Alignment a)