コード例 #1
0
 public virtual Dimension minimumLayoutSize(Container parent)
 {
   Dimension dimension;
   lock (((Component) parent).getTreeLock())
   {
     Insets local_1 = parent.getInsets();
     Component[] local_2 = parent.getComponents();
     int local_3 = 0;
     int local_4 = 0;
     for (int local_5 = 0; local_5 < local_2.Length; ++local_5)
     {
       if (local_2[local_5].isVisible() || !this.ignoreInvisible)
       {
         Dimension local_6 = local_2[local_5].getMinimumSize();
         if (local_6.height > local_3)
           local_3 = (int) local_6.height;
         if (local_6.width > local_4)
           local_4 = (int) local_6.width;
       }
     }
     Dimension.__\u003Cclinit\u003E();
     dimension = new Dimension(local_4 + local_1.left + local_1.right, local_3 + local_1.top + local_1.bottom);
   }
   return dimension;
 }
コード例 #2
0
		static FontFamily() {
			Container = new awt.Container();
			_installedFonts = new InstalledFontCollection();
			_genericMonospace = new FontFamily(GenericFontFamilies.Monospace);
			_genericSansSerif = new FontFamily(GenericFontFamilies.SansSerif);
			_genericSerif = new FontFamily(GenericFontFamilies.Serif);
		}
コード例 #3
0
		public static Control AttachTo(this Control e, Container parent)
		{
			parent.add(e.GetTargetElement());
            e.Show();

			return e;
		}
コード例 #4
0
 static FontFamily()
 {
     Container         = new awt.Container();
     _installedFonts   = new InstalledFontCollection();
     _genericMonospace = new FontFamily(GenericFontFamilies.Monospace);
     _genericSansSerif = new FontFamily(GenericFontFamilies.SansSerif);
     _genericSerif     = new FontFamily(GenericFontFamilies.Serif);
 }
コード例 #5
0
 public virtual void layoutContainer(Container parent)
 {
   lock (((Component) parent).getTreeLock())
   {
     Insets local_1 = parent.getInsets();
     Rectangle local_2 = ((Component) parent).getBounds();
     int local_3 = (int) (local_2.width - local_1.left - local_1.right);
     int local_4 = (int) (local_2.height - local_1.top - local_1.bottom);
     Component[] local_5 = parent.getComponents();
     for (int local_6 = 0; local_6 < local_5.Length; ++local_6)
     {
       Component local_7 = local_5[local_6];
       if (local_5[local_6].isVisible() || !this.ignoreInvisible)
         local_7.setBounds((int) local_1.left, (int) local_1.top, local_3, local_4);
     }
   }
 }
コード例 #6
0
		/// <summary>
		/// Lays out the container argument using this border layout.
		/// </summary>
		public void layoutContainer(Container @target)
		{
		}
コード例 #7
0
		/// <summary>
		/// Paints a component <code>c</code> on an arbitrary graphics
		/// <code>g</code> in the specified rectangle, specifying a Rectangle object.
		/// </summary>
		static public void paintComponent(Graphics @g, Component @c, Container @p, Rectangle @r)
		{
		}
コード例 #8
0
		/// <summary>
		/// Returns whether the specified Container is the focus cycle root of this
		/// Container's focus traversal cycle.
		/// </summary>
		public bool isFocusCycleRoot(Container @container)
		{
			return default(bool);
		}
コード例 #9
0
		/// <summary>
		/// Sets the content pane -- the container that holds the components
		/// parented by the root pane.
		/// </summary>
		public void setContentPane(Container @content)
		{
		}
コード例 #10
0
		/// <summary>
		/// Paints a component <code>c</code> on an arbitrary graphics
		/// <code>g</code> in the
		/// specified rectangle, specifying the rectangle's upper left corner
		/// and size.
		/// </summary>
		static public void paintComponent(Graphics @g, Component @c, Container @p, int @x, int @y, int @w, int @h)
		{
		}
コード例 #11
0
 /// <summary>
 /// Returns the Component that should receive the focus before aComponent.
 /// </summary>
 public Component getComponentBefore(Container @focusCycleRoot, Component @aComponent)
 {
     return(default(Component));
 }
コード例 #12
0
 /// <summary>
 /// Returns the last Component in the traversal cycle.
 /// </summary>
 public Component getLastComponent(Container @focusCycleRoot)
 {
     return(default(Component));
 }
コード例 #13
0
 public virtual void layoutContainer(Container parent)
 {
   lock (((Component) parent).getTreeLock())
   {
     Insets local_1 = parent.getInsets();
     int local_2 = (int) (local_1.left + local_1.right);
     int local_4 = !this.isUseSizeFromParent() ? this.preferredLayoutSize(parent).width - local_2 : ((Component) parent).getBounds().width - local_2;
     Component[] local_5 = parent.getComponents();
     int local_6 = (int) local_1.top;
     for (int local_7 = 0; local_7 < local_5.Length; ++local_7)
     {
       Component local_8 = local_5[local_7];
       if (local_8.isVisible())
       {
         Dimension local_9 = local_8.getPreferredSize();
         local_8.setBounds((int) local_1.left, local_6, local_4, (int) local_9.height);
         local_6 += (int) local_9.height;
       }
     }
   }
 }
コード例 #14
0
		/// <summary>
		/// Constructs an AncestorEvent object to identify a change
		/// in an ancestor-component's display-status.
		/// </summary>
		public AncestorEvent(JComponent @source, int @id, Container @ancestor, Container @ancestorParent)
		{
		}
コード例 #15
0
		/// <summary>
		/// Returns the Component that should receive the focus before aComponent.
		/// </summary>
		public Component getComponentBefore(Container @focusCycleRoot, Component @aComponent)
		{
			return default(Component);
		}
コード例 #16
0
		/// <summary>
		/// Invalidates the layout, indicating that if the layout manager
		/// has cached information it should be discarded.
		/// </summary>
		public void invalidateLayout(Container @target)
		{
		}
コード例 #17
0
		/// <summary>
		/// Returns the alignment along the y axis.
		/// </summary>
		public float getLayoutAlignmentY(Container @parent)
		{
			return default(float);
		}
コード例 #18
0
		/// <summary>
		/// Determines the preferred size of the <code>target</code>
		/// container using this layout manager, based on the components
		/// in the container.
		/// </summary>
		public Dimension preferredLayoutSize(Container @target)
		{
			return default(Dimension);
		}
コード例 #19
0
		/// <summary>
		/// Returns the last Component in the traversal cycle.
		/// </summary>
		public Component getLastComponent(Container @focusCycleRoot)
		{
			return default(Component);
		}
コード例 #20
0
		/// <summary>
		/// Constructs an <code>HierarchyEvent</code> object to identify
		/// a change in the <code>Component</code> hierarchy.
		/// </summary>
		public HierarchyEvent(Component @source, int @id, Component @changed, Container @changedParent, long @changeFlags)
		{
		}
コード例 #21
0
		/// <summary>
		/// Returns the maximum dimensions for this layout given the components
		/// in the specified target container.
		/// </summary>
		public Dimension maximumLayoutSize(Container @target)
		{
			return default(Dimension);
		}