Uses of Class
net.miginfocom.layout.UnitValue
-
Packages that use UnitValue Package Description net.miginfocom.layout -
-
Uses of UnitValue in net.miginfocom.layout
Fields in net.miginfocom.layout declared as UnitValue Modifier and Type Field Description private UnitValue
DimConstraint. align
private UnitValue
LC. alignX
private UnitValue
LC. alignY
static UnitValue
IDEUtil. BASELINE_IDENTITY
A direct reference to the corresponding value for predefined UnitValues inUnitValue
.(package private) static UnitValue
UnitValue. BASELINE_IDENTITY
static UnitValue
IDEUtil. BOTTOM
A direct reference to the corresponding value for predefined UnitValues inUnitValue
.(package private) static UnitValue
UnitValue. BOTTOM
private static UnitValue
PlatformDefaults. BUTT_PADDING
private static UnitValue
PlatformDefaults. BUTT_WIDTH
static UnitValue
IDEUtil. CENTER
A direct reference to the corresponding value for predefined UnitValues inUnitValue
.(package private) static UnitValue
UnitValue. CENTER
private static UnitValue[]
PlatformDefaults. DIALOG_INS
static UnitValue
IDEUtil. INF
A direct reference to the corresponding value for predefined UnitValues inUnitValue
.(package private) static UnitValue
UnitValue. INF
private UnitValue[]
LC. insets
static UnitValue
IDEUtil. LABEL
A direct reference to the corresponding value for predefined UnitValues inUnitValue
.(package private) static UnitValue
UnitValue. LABEL
static UnitValue
IDEUtil. LEADING
A direct reference to the corresponding value for predefined UnitValues inUnitValue
.(package private) static UnitValue
UnitValue. LEADING
static UnitValue
IDEUtil. LEFT
A direct reference to the corresponding value for predefined UnitValues inUnitValue
.(package private) static UnitValue
UnitValue. LEFT
private static UnitValue
PlatformDefaults. LPX11
private static UnitValue
PlatformDefaults. LPX12
private static UnitValue
PlatformDefaults. LPX16
private static UnitValue
PlatformDefaults. LPX18
private static UnitValue
PlatformDefaults. LPX20
private static UnitValue
PlatformDefaults. LPX6
private static UnitValue
PlatformDefaults. LPX7
private static UnitValue
PlatformDefaults. LPY11
private static UnitValue
PlatformDefaults. LPY12
private static UnitValue
PlatformDefaults. LPY16
private static UnitValue
PlatformDefaults. LPY18
private static UnitValue
PlatformDefaults. LPY20
private static UnitValue
PlatformDefaults. LPY6
private static UnitValue
PlatformDefaults. LPY7
private UnitValue
BoundSize. max
private UnitValue
BoundSize. min
private UnitValue[]
CC. padding
private static UnitValue[]
PlatformDefaults. PANEL_INS
private UnitValue[]
CC. pos
private UnitValue
BoundSize. pref
static UnitValue
IDEUtil. RIGHT
A direct reference to the corresponding value for predefined UnitValues inUnitValue
.(package private) static UnitValue
UnitValue. RIGHT
private UnitValue[]
UnitValue. subUnits
static UnitValue
IDEUtil. TOP
A direct reference to the corresponding value for predefined UnitValues inUnitValue
.(package private) static UnitValue
UnitValue. TOP
static UnitValue
IDEUtil. TRAILING
A direct reference to the corresponding value for predefined UnitValues inUnitValue
.(package private) static UnitValue
UnitValue. TRAILING
private UnitValue[]
CC. visualPadding
static UnitValue
IDEUtil. ZERO
A direct reference to the corresponding value for predefined UnitValues inUnitValue
.(package private) static UnitValue
UnitValue. ZERO
Fields in net.miginfocom.layout with type parameters of type UnitValue Modifier and Type Field Description private static java.util.HashMap<java.lang.String,UnitValue>
PlatformDefaults. HOR_DEFS
private static java.util.HashMap<java.lang.String,UnitValue>
PlatformDefaults. VER_DEFS
Methods in net.miginfocom.layout that return UnitValue Modifier and Type Method Description private static UnitValue
Grid. correctAlign(CC cc, UnitValue rowAlign, boolean isHor, boolean fromEnd)
UnitValue
DimConstraint. getAlign()
Returns the alignment used either as a default value for sub-entities or for this entity.UnitValue
DimConstraint. getAlignOrDefault(boolean isCols)
UnitValue
LC. getAlignX()
If the laid out components' bounds in total is less than the final size of the container these align values will be used to align the components in the parent.UnitValue
LC. getAlignY()
If the laid out components' bounds in total is less than the final size of the container these align values will be used to align the components in the parent.static UnitValue
PlatformDefaults. getDialogInsets(int side)
Returns the default dialog insets depending of the current platform.(package private) static UnitValue
LayoutUtil. getInsets(LC lc, int side, boolean getDefault)
Returns the insets for the side.UnitValue[]
LC. getInsets()
The insets for the layed out panel.UnitValue
BoundSize. getMax()
Returns the maximum size as sent into the constructor.UnitValue
BoundSize. getMin()
Returns the minimum size as sent into the constructor.static UnitValue
PlatformDefaults. getMinimumButtonPadding()
static UnitValue
PlatformDefaults. getMinimumButtonWidth()
Returns the recommended minimum button width depending on the current set platform.UnitValue[]
CC. getPadding()
Returns the absolute resizing in the last stage of the layout cycle.static UnitValue
PlatformDefaults. getPanelInsets(int side)
Returns the default panel insets depending of the current platform.UnitValue[]
CC. getPos()
Returns the absolute positioning of one or more of the edges.private UnitValue[]
Grid. getPos(ComponentWrapper cw, CC cc)
UnitValue[]
LayoutCallback. getPosition(ComponentWrapper comp)
Returns a position similar to the "pos" the component constraint.UnitValue
BoundSize. getPreferred()
Returns the preferred size as sent into the constructor.(package private) UnitValue
BoundSize. getSize(int sizeType)
Returns the minimum, preferred or maximum size for this bounded size.UnitValue[]
UnitValue. getSubUnits()
(package private) UnitValue
UnitValue. getSubUnitValue(int i)
static UnitValue
PlatformDefaults. getUnitValueX(java.lang.String unit)
Returns the unit value associated with the unit.static UnitValue
PlatformDefaults. getUnitValueY(java.lang.String unit)
Returns the unit value associated with the unit.UnitValue[]
CC. getVisualPadding()
Returns the visual padding used when laying out this Component.(package private) static UnitValue
ConstraintParser. parseAlignKeywords(java.lang.String s, boolean isHor)
Parses alignment keywords and returns the appropriateUnitValue
.static UnitValue[]
ConstraintParser. parseInsets(java.lang.String s, boolean acceptPanel)
Parses insets which consists of 1-4UnitValue
s.static UnitValue
ConstraintParser. parseUnitValue(java.lang.String s, boolean isHor)
Parses a single unit value.private static UnitValue
ConstraintParser. parseUnitValue(java.lang.String s, UnitValue emptyReplacement, boolean isHor)
Parses a single unit value.static UnitValue
ConstraintParser. parseUnitValueOrAlign(java.lang.String s, boolean isHor, UnitValue emptyReplacement)
Parses a single unit value that may also be an alignment as parsed byConstraintParser.parseAlignKeywords(String, boolean)
.Methods in net.miginfocom.layout with parameters of type UnitValue Modifier and Type Method Description private void
CC. addLinkTargetIDs(java.util.ArrayList<java.lang.String> targets, UnitValue uv)
private static UnitValue
Grid. correctAlign(CC cc, UnitValue rowAlign, boolean isHor, boolean fromEnd)
(package private) static BoundSize
LayoutUtil. derive(BoundSize bs, UnitValue min, UnitValue pref, UnitValue max)
private static java.lang.String
IDEUtil. getUV(UnitValue uv)
private static java.lang.String
IDEUtil. getUV(UnitValue uv, boolean asAPI)
private static boolean
IDEUtil. isDialogInsets(UnitValue[] insets)
private static boolean
IDEUtil. isPanelInsets(UnitValue[] insets)
boolean
Grid. layout(int[] bounds, UnitValue alignX, UnitValue alignY, boolean debug)
Does the actual layout.boolean
Grid. layout(int[] bounds, UnitValue alignX, UnitValue alignY, boolean debug, boolean notUsed)
Deprecated.since 5.0 Last boolean is not needed and is gotten from the newComponentWrapper.getContentBias()
instead;private boolean
Grid. layoutImpl(int[] bounds, UnitValue alignX, UnitValue alignY, boolean debug, boolean trialRun)
Does the actual layout.private void
Grid. layoutInOneDim(int refSize, UnitValue align, boolean isRows, java.lang.Float[] defaultPushWeights)
private static UnitValue
ConstraintParser. parseUnitValue(java.lang.String s, UnitValue emptyReplacement, boolean isHor)
Parses a single unit value.static UnitValue
ConstraintParser. parseUnitValueOrAlign(java.lang.String s, boolean isHor, UnitValue emptyReplacement)
Parses a single unit value that may also be an alignment as parsed byConstraintParser.parseAlignKeywords(String, boolean)
.void
DimConstraint. setAlign(UnitValue uv)
Sets the alignment used wither as a default value for sub-entities or for this entity.void
LC. setAlignX(UnitValue uv)
If the laid out components' bounds in total is less than the final size of the container these align values will be used to align the components in the parent.void
LC. setAlignY(UnitValue uv)
If the laid out components' bounds in total is less than the final size of the container these align values will be used to align the components in the parent.private static void
Grid. setCompWrapBounds(ContainerWrapper parent, int[][] sizes, java.util.ArrayList<Grid.CompWrap> compWraps, UnitValue rowAlign, int start, int size, boolean isHor, boolean fromEnd)
private static void
Grid. setCompWrapBounds(ContainerWrapper parent, int[] allSizes, java.util.ArrayList<Grid.CompWrap> compWraps, UnitValue rowAlign, int start, int size, boolean isHor, boolean fromEnd)
static void
PlatformDefaults. setDialogInsets(UnitValue top, UnitValue left, UnitValue bottom, UnitValue right)
Sets the default insets for a dialog.static void
PlatformDefaults. setGridCellGap(UnitValue x, UnitValue y)
Sets gap between two cells in the grid.static void
PlatformDefaults. setIndentGap(UnitValue x, UnitValue y)
Sets gap value for components that are "intended".void
LC. setInsets(UnitValue[] ins)
The insets for the layed out panel.static void
PlatformDefaults. setMinimumButtonPadding(UnitValue padding)
static void
PlatformDefaults. setMinimumButtonWidth(UnitValue width)
Sets the recommended minimum button width.void
CC. setPadding(UnitValue[] sides)
Sets the absolute resizing in the last stage of the layout cycle.static void
PlatformDefaults. setPanelInsets(UnitValue top, UnitValue left, UnitValue bottom, UnitValue right)
Sets the default insets for a dialog.static void
PlatformDefaults. setParagraphGap(UnitValue x, UnitValue y)
Sets paragraph gap value for components.void
CC. setPos(UnitValue[] pos)
Sets absolute positioning of one or more of the edges.static void
PlatformDefaults. setRelatedGap(UnitValue x, UnitValue y)
Sets gap value for components that are "related".static void
PlatformDefaults. setUnitValue(java.lang.String[] unitStrings, UnitValue x, UnitValue y)
Sets the unit value associated with a unit string.static void
PlatformDefaults. setUnrelatedGap(UnitValue x, UnitValue y)
Sets gap value for components that are "unrelated".void
CC. setVisualPadding(UnitValue[] sides)
Sets the visual padding used when laying out this Component.Constructors in net.miginfocom.layout with parameters of type UnitValue Constructor Description BoundSize(UnitValue minMaxPref, java.lang.String createString)
Constructor that use the same value for min/preferred/max size.BoundSize(UnitValue min, UnitValue preferred, UnitValue max, boolean gapPush, java.lang.String createString)
Constructor.BoundSize(UnitValue min, UnitValue preferred, UnitValue max, java.lang.String createString)
Constructor.UnitValue(boolean isHor, int oper, UnitValue sub1, UnitValue sub2, java.lang.String createString)
UnitValue(float value, java.lang.String unitStr, int unit, boolean isHor, int oper, UnitValue sub1, UnitValue sub2, java.lang.String createString)
-