Lines Matching defs:component

50  * of as an invisible component with a minimum, preferred and maximum
61 * to use instead of that from the component. The range for a {@code
87 * range of each component has been projected onto the axes,
110 * for the component (if specified) or the default alignment of the
112 * with an alignment of {@code LEADING}. If the component orientation were
222 * Indicates the size from the component or gap should be used for a
230 * Indicates the preferred size from the component or gap should
385 * Sets whether component visiblity is considered when sizing and
400 * @param honorsVisibility whether component visiblity is considered when
414 * Returns whether component visiblity is considered when sizing and
417 * @return whether component visiblity is considered when sizing and
425 * Sets whether the component's visiblity is considered for
427 * indicates that if {@code component} is not visible it should
429 * indicates that {@code component} is positioned and sized
434 * If {@code component} is not a child of the {@code Container} this
438 * @param component the component
439 * @param honorsVisibility whether {@code component}'s visiblity should be
441 * @throws IllegalArgumentException if {@code component} is {@code null}
444 public void setHonorsVisibility(Component component,
446 if (component == null) {
449 getComponentInfo(component).setHonorsVisibility(honorsVisibility);
533 * sizing component along the horizontal axis
564 * sizing component along the vertical axis
635 * positioned at the position 50 (with a component orientation of
736 // Force the component to be added
757 * Replaces an existing component with a new one.
759 * @param existingComponent the component that should be removed
761 * @param newComponent the component to put in
841 * @param name the string to be associated with the component
842 * @param component the {@code Component} to be added
844 public void addLayoutComponent(String name, Component component) {
853 * @param component the component to be removed
856 public void removeLayoutComponent(Component component) {
857 ComponentInfo info = componentInfos.remove(component);
941 * @param component the component added
942 * @param constraints description of where to place the component
944 public void addLayoutComponent(Component component, Object constraints) {
967 * the component would like to be aligned relative to other
984 * the component would like to be aligned relative to other
1086 throw new IllegalStateException(info.component +
1090 throw new IllegalStateException(info.component +
1125 private ComponentInfo getComponentInfo(Component component) {
1126 ComponentInfo info = componentInfos.get(component);
1128 info = new ComponentInfo(component);
1129 componentInfos.put(component, info);
1130 if (component.getParent() != host) {
1131 host.add(component);
1440 * from the component should be used. For example, if {@code
1443 * on the component. Likewise, {@code PREFERRED_SIZE} indicates
1456 * determined by invoking {@code getMaximumSize} on the component.
1501 * @param component the {@code Component} to add
1504 public Group addComponent(Component component) {
1505 return addComponent(component, DEFAULT_SIZE, DEFAULT_SIZE,
1513 * @param component the {@code Component} to add
1522 public Group addComponent(Component component, int min, int pref,
1524 return addSpring(new ComponentSpring(component, min, pref, max));
1790 public SequentialGroup addComponent(Component component) {
1791 return (SequentialGroup)super.addComponent(component);
1799 * @param component the {@code Component} to add
1803 Component component) {
1804 super.addComponent(component);
1814 public SequentialGroup addComponent(Component component, int min,
1817 component, min, pref, max);
1826 * @param component the {@code Component} to add
1836 Component component, int min, int pref, int max) {
1837 super.addComponent(component, min, pref, max);
1863 * @param comp1 the first component
1864 * @param comp2 the second component
1882 * @param comp1 the first component
1883 * @param comp2 the second component
2475 public ParallelGroup addComponent(Component component) {
2476 return (ParallelGroup)super.addComponent(component);
2482 public ParallelGroup addComponent(Component component, int min, int pref,
2484 return (ParallelGroup)super.addComponent(component, min, pref, max);
2524 * @param component the {@code Component} to add
2529 public ParallelGroup addComponent(Component component,
2531 return addComponent(component, alignment, DEFAULT_SIZE, DEFAULT_SIZE,
2540 * @param component the {@code Component} to add
2548 public ParallelGroup addComponent(Component component,
2551 ComponentSpring spring = new ComponentSpring(component,
2934 private Component component;
2943 // Baseline for the component, computed as necessary.
2949 private ComponentSpring(Component component, int min, int pref,
2951 this.component = component;
2952 if (component == null) {
2963 // getComponentInfo makes sure component is a child of the
2965 getComponentInfo(component);
3008 return getSizeAlongAxis(axis, component.getMinimumSize());
3019 return getSizeAlongAxis(axis, component.getPreferredSize());
3033 return getSizeAlongAxis(axis, component.getMaximumSize());
3044 ComponentInfo ci = getComponentInfo(component);
3060 void setComponent(Component component) {
3061 this.component = component;
3065 return component;
3070 Spring horizontalSpring = getComponentInfo(component).
3075 baseline = component.getBaseline(width, height);
3086 return getComponentInfo(component).isLinked(axis);
3093 getComponentInfo(component).horizontalSpring = this;
3095 getComponentInfo(component).verticalSpring = this;
3334 Component component = spring.getComponent();
3339 component, oAxis)) {
3587 private Component component;
3592 // If the component's size is linked to other components, the
3601 ComponentInfo(Component component) {
3602 this.component = component;
3648 component.isVisible() : true;
3665 component.setBounds(x + insets.left, y + insets.top, w, h);
3668 public void setComponent(Component component) {
3669 this.component = component;
3671 horizontalSpring.setComponent(component);
3674 verticalSpring.setComponent(component);
3679 return component;
3683 * Returns true if this component has its size linked to