本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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();
}
}));
}
示例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);
}
});
}
示例6: resetToPreferredSizes
import javax.swing.plaf.SplitPaneUI; //导入依赖的package包/类
public void resetToPreferredSizes() {
SplitPaneUI ui = getUI();
if (ui != null) {
ui.resetToPreferredSizes(this);
}
}
示例7: getMinimumDividerLocation
import javax.swing.plaf.SplitPaneUI; //导入依赖的package包/类
public int getMinimumDividerLocation() {
SplitPaneUI ui = getUI();
if (ui != null) {
return ui.getMinimumDividerLocation(this);
}
return -1;
}
示例8: getMaximumDividerLocation
import javax.swing.plaf.SplitPaneUI; //导入依赖的package包/类
public int getMaximumDividerLocation() {
SplitPaneUI ui = getUI();
if (ui != null) {
return ui.getMaximumDividerLocation(this);
}
return -1;
}
示例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;
}
示例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;
}
示例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);
}
示例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);
}
示例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);
}
}
示例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);
}
}
示例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);
}
}