Class TierDataLayout
java.lang.Object
ca.phon.app.session.editor.view.common.TierDataLayout
- All Implemented Interfaces:
LayoutManager
,LayoutManager2
Custom layout management for tier data. Layout implementation
is decided by the currently selected algorithm.
-
Constructor Summary
ConstructorDescriptionDefault constructorTierDataLayout
(TierDataLayoutType layoutType) TierDataLayout
(TierDataLayoutType layoutType, int tierLabelWidth, int hgap, int vgap) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addLayoutComponent
(Component comp, Object constraints) void
addLayoutComponent
(String name, Component comp) int
Get the number of columns.int
float
getLayoutAlignmentX
(Container target) float
getLayoutAlignmentY
(Container target) int
Get the number of rows.int
int
boolean
hasLayoutComponent
(Component comp) void
invalidateLayout
(Container target) boolean
isGrouped
(int row) Is the given row grouped?void
layoutContainer
(Container parent) maximumLayoutSize
(Container target) minimumLayoutSize
(Container parent) preferredLayoutSize
(Container parent) void
void
setHorizontalGap
(int horizontalGap) void
setLayoutType
(TierDataLayoutType layoutType) void
setTierLabelWidth
(int tierLabelWidth) void
setVerticalGap
(int verticalGap)
-
Constructor Details
-
TierDataLayout
public TierDataLayout()Default constructor -
TierDataLayout
-
TierDataLayout
-
-
Method Details
-
getLayoutType
-
setLayoutType
-
getLayoutProvider
-
getTierLabelWidth
public int getTierLabelWidth() -
setTierLabelWidth
public void setTierLabelWidth(int tierLabelWidth) -
getHorizontalGap
public int getHorizontalGap() -
setHorizontalGap
public void setHorizontalGap(int horizontalGap) -
getVerticalGap
public int getVerticalGap() -
setVerticalGap
public void setVerticalGap(int verticalGap) -
addLayoutComponent
- Specified by:
addLayoutComponent
in interfaceLayoutManager
-
layoutContainer
- Specified by:
layoutContainer
in interfaceLayoutManager
-
minimumLayoutSize
- Specified by:
minimumLayoutSize
in interfaceLayoutManager
-
preferredLayoutSize
- Specified by:
preferredLayoutSize
in interfaceLayoutManager
-
removeLayoutComponent
- Specified by:
removeLayoutComponent
in interfaceLayoutManager
-
hasLayoutComponent
-
addLayoutComponent
- Specified by:
addLayoutComponent
in interfaceLayoutManager2
-
getLayoutAlignmentX
- Specified by:
getLayoutAlignmentX
in interfaceLayoutManager2
-
getLayoutAlignmentY
- Specified by:
getLayoutAlignmentY
in interfaceLayoutManager2
-
invalidateLayout
- Specified by:
invalidateLayout
in interfaceLayoutManager2
-
maximumLayoutSize
- Specified by:
maximumLayoutSize
in interfaceLayoutManager2
-
getColumnCount
public int getColumnCount()Get the number of columns. This is the highest number of columns.- Returns:
- columns
-
getRowCount
public int getRowCount()Get the number of rows.- Returns:
- rows
-
isGrouped
public boolean isGrouped(int row) Is the given row grouped?- Parameters:
row
-- Returns:
true
if the specified row is grouped,false
otherwise
-