当前位置: 首页>>代码示例>>Java>>正文


Java SplitPaneUI类代码示例

本文整理汇总了Java中javax.swing.plaf.SplitPaneUI的典型用法代码示例。如果您正苦于以下问题:Java SplitPaneUI类的具体用法?Java SplitPaneUI怎么用?Java SplitPaneUI使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


SplitPaneUI类属于javax.swing.plaf包,在下文中一共展示了SplitPaneUI类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getDividerLocation

import javax.swing.plaf.SplitPaneUI; //导入依赖的package包/类
/**
 * Invokes the <code>getDividerLocation</code> method on each UI handled by this object.
 *
 * @return the value obtained from the first UI, which is
 * the UI obtained from the default <code>LookAndFeel</code>
 */
public int getDividerLocation(JSplitPane a) {
    int returnValue =
        ((SplitPaneUI) (uis.elementAt(0))).getDividerLocation(a);
    for (int i = 1; i < uis.size(); i++) {
        ((SplitPaneUI) (uis.elementAt(i))).getDividerLocation(a);
    }
    return returnValue;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:15,代码来源:MultiSplitPaneUI.java

示例2: getMinimumDividerLocation

import javax.swing.plaf.SplitPaneUI; //导入依赖的package包/类
/**
 * Invokes the <code>getMinimumDividerLocation</code> method on each UI handled by this object.
 *
 * @return the value obtained from the first UI, which is
 * the UI obtained from the default <code>LookAndFeel</code>
 */
public int getMinimumDividerLocation(JSplitPane a) {
    int returnValue =
        ((SplitPaneUI) (uis.elementAt(0))).getMinimumDividerLocation(a);
    for (int i = 1; i < uis.size(); i++) {
        ((SplitPaneUI) (uis.elementAt(i))).getMinimumDividerLocation(a);
    }
    return returnValue;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:15,代码来源:MultiSplitPaneUI.java

示例3: getMaximumDividerLocation

import javax.swing.plaf.SplitPaneUI; //导入依赖的package包/类
/**
 * Invokes the <code>getMaximumDividerLocation</code> method on each UI handled by this object.
 *
 * @return the value obtained from the first UI, which is
 * the UI obtained from the default <code>LookAndFeel</code>
 */
public int getMaximumDividerLocation(JSplitPane a) {
    int returnValue =
        ((SplitPaneUI) (uis.elementAt(0))).getMaximumDividerLocation(a);
    for (int i = 1; i < uis.size(); i++) {
        ((SplitPaneUI) (uis.elementAt(i))).getMaximumDividerLocation(a);
    }
    return returnValue;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:15,代码来源:MultiSplitPaneUI.java

示例4: getUI

import javax.swing.plaf.SplitPaneUI; //导入依赖的package包/类
/**
 * Maps {@code JSplitPane.getUI()} through queue
 */
public SplitPaneUI getUI() {
    return (runMapping(new MapAction<SplitPaneUI>("getUI") {
        @Override
        public SplitPaneUI map() {
            return ((JSplitPane) getSource()).getUI();
        }
    }));
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:12,代码来源:JSplitPaneOperator.java

示例5: setUI

import javax.swing.plaf.SplitPaneUI; //导入依赖的package包/类
/**
 * Maps {@code JSplitPane.setUI(SplitPaneUI)} through queue
 */
public void setUI(final SplitPaneUI splitPaneUI) {
    runMapping(new MapVoidAction("setUI") {
        @Override
        public void map() {
            ((JSplitPane) getSource()).setUI(splitPaneUI);
        }
    });
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:12,代码来源:JSplitPaneOperator.java

示例6: resetToPreferredSizes

import javax.swing.plaf.SplitPaneUI; //导入依赖的package包/类
public void resetToPreferredSizes() {
	SplitPaneUI ui = getUI();

	if (ui != null) {
		ui.resetToPreferredSizes(this);
	}
}
 
开发者ID:javalovercn,项目名称:j2se_for_android,代码行数:8,代码来源:JSplitPane.java

示例7: getMinimumDividerLocation

import javax.swing.plaf.SplitPaneUI; //导入依赖的package包/类
public int getMinimumDividerLocation() {
	SplitPaneUI ui = getUI();

	if (ui != null) {
		return ui.getMinimumDividerLocation(this);
	}
	return -1;
}
 
开发者ID:javalovercn,项目名称:j2se_for_android,代码行数:9,代码来源:JSplitPane.java

示例8: getMaximumDividerLocation

import javax.swing.plaf.SplitPaneUI; //导入依赖的package包/类
public int getMaximumDividerLocation() {
	SplitPaneUI ui = getUI();

	if (ui != null) {
		return ui.getMaximumDividerLocation(this);
	}
	return -1;
}
 
开发者ID:javalovercn,项目名称:j2se_for_android,代码行数:9,代码来源:JSplitPane.java

示例9: getMaximumDividerLocation

import javax.swing.plaf.SplitPaneUI; //导入依赖的package包/类
/**
 * This method returns the maximum divider location. This method is passed
 * to  the UI.
 *
 * @return DOCUMENT ME!
 */
public int getMaximumDividerLocation()
{
  if (ui != null)
    return ((SplitPaneUI) ui).getMaximumDividerLocation(this);
  else
    return -1;
}
 
开发者ID:vilie,项目名称:javify,代码行数:14,代码来源:JSplitPane.java

示例10: getMinimumDividerLocation

import javax.swing.plaf.SplitPaneUI; //导入依赖的package包/类
/**
 * This method returns the minimum divider location. This method is passed
 * to the UI.
 *
 * @return The minimum divider location.
 */
public int getMinimumDividerLocation()
{
  if (ui != null)
    return ((SplitPaneUI) ui).getMinimumDividerLocation(this);
  else
    return -1;
}
 
开发者ID:vilie,项目名称:javify,代码行数:14,代码来源:JSplitPane.java

示例11: paintChildren

import javax.swing.plaf.SplitPaneUI; //导入依赖的package包/类
/**
 * This method overrides JComponent's paintChildren so the UI can be
 * messaged when the children have finished painting.
 *
 * @param g The Graphics object to paint with.
 */
protected void paintChildren(Graphics g)
{
  super.paintChildren(g);
  if (ui != null)
    ((SplitPaneUI) ui).finishedPaintingChildren(this, g);
}
 
开发者ID:vilie,项目名称:javify,代码行数:13,代码来源:JSplitPane.java

示例12: setDividerLocation

import javax.swing.plaf.SplitPaneUI; //导入依赖的package包/类
/**
 * This method sets the location of the divider.
 *
 * @param location The location of the divider. The negative value forces to
 *          compute the new location from the preferred sizes of the split
 *          pane components.
 */
public void setDividerLocation(int location)
{
  int oldLocation = dividerLocation;
  dividerLocation = location;
  SplitPaneUI ui = getUI();
  if (ui != null)
    ui.setDividerLocation(this, location);
  firePropertyChange(DIVIDER_LOCATION_PROPERTY, oldLocation,
                     location);
}
 
开发者ID:vilie,项目名称:javify,代码行数:18,代码来源:JSplitPane.java

示例13: resetToPreferredSizes

import javax.swing.plaf.SplitPaneUI; //导入依赖的package包/类
/**
 * Calls the {@link SplitPaneUI#resetToPreferredSizes(JSplitPane)} method
 * for all the UI delegates managed by this <code>MultiSplitPaneUI</code>.
 *
 * @param pane  the component.
 */
public void resetToPreferredSizes(JSplitPane pane)
{
  Iterator iterator = uis.iterator();
  while (iterator.hasNext())
  {
    SplitPaneUI ui = (SplitPaneUI) iterator.next();
    ui.resetToPreferredSizes(pane);
  }
}
 
开发者ID:vilie,项目名称:javify,代码行数:16,代码来源:MultiSplitPaneUI.java

示例14: setDividerLocation

import javax.swing.plaf.SplitPaneUI; //导入依赖的package包/类
/**
 * Calls the {@link SplitPaneUI#setDividerLocation(JSplitPane, int)} method
 * for all the UI delegates managed by this <code>MultiSplitPaneUI</code>.
 *
 * @param pane  the component.
 * @param location  the location.
 */
public void setDividerLocation(JSplitPane pane, int location)
{
  Iterator iterator = uis.iterator();
  while (iterator.hasNext())
  {
    SplitPaneUI ui = (SplitPaneUI) iterator.next();
    ui.setDividerLocation(pane, location);
  }
}
 
开发者ID:vilie,项目名称:javify,代码行数:17,代码来源:MultiSplitPaneUI.java

示例15: finishedPaintingChildren

import javax.swing.plaf.SplitPaneUI; //导入依赖的package包/类
/**
 * Calls the {@link SplitPaneUI#finishedPaintingChildren(JSplitPane,
 * Graphics)} method for all the UI delegates managed by this
 * <code>MultiSplitPaneUI</code>.
 *
 * @param pane  the component.
 * @param g  the graphics device.
 */
public void finishedPaintingChildren(JSplitPane pane, Graphics g)
{
  Iterator iterator = uis.iterator();
  while (iterator.hasNext())
  {
    SplitPaneUI ui = (SplitPaneUI) iterator.next();
    ui.finishedPaintingChildren(pane, g);
  }
}
 
开发者ID:vilie,项目名称:javify,代码行数:18,代码来源:MultiSplitPaneUI.java


注:本文中的javax.swing.plaf.SplitPaneUI类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。