📄 dockposition.java
字号:
// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space
// Source File Name: DockPosition.java
package org.gudy.azureus2.ui.swt.shells;
// Referenced classes of package org.gudy.azureus2.ui.swt.shells:
// Offset
public class DockPosition
{
public static final int TOP_LEFT = 1;
public static final int BOTTOM_LEFT = 2;
public static final int TOP_RIGHT = 3;
public static final int BOTTOM_RIGHT = 4;
private int position;
private Offset offset;
public DockPosition()
{
DockPosition(1, null);
}
public DockPosition(int position, Offset offset)
{
this.position = 1;
this.offset = new Offset(0, 0);
if (position == 1 || position == 3 || position == 2 || position == 4)
this.position = position;
else
this.position = 1;
if (null != offset)
this.offset = offset;
}
public int getPosition()
{
return position;
}
public void setPosition(int position)
{
this.position = position;
}
public Offset getOffset()
{
return offset;
}
public void setOffset(Offset offset)
{
if (null != offset)
this.offset = offset;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -