?? indicatorpos.java
字號:
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi
// Source File Name: IndicatorPos.java
package gnnt.MEBS.HQApplet.Indicator;
public class IndicatorPos
{
public int m_VirtualRatio;
public float m_Ratio;
public int m_ScreenCount;
public int m_EndPos;
public int m_MaxPos;
public int m_End;
public int m_Begin;
public IndicatorPos()
{
m_VirtualRatio = 15;
m_EndPos = 0;
m_End = 0;
m_Begin = 0;
}
public void GetScreen(int width, int kDataLen)
{
m_Ratio = m_VirtualRatio > 10 ? m_VirtualRatio - 10 : 1.0F / (float)(12 - m_VirtualRatio);
if(m_EndPos < 0)
m_EndPos = 0;
if(m_EndPos >= kDataLen)
m_EndPos = kDataLen - 1;
m_ScreenCount = (int)((float)width / m_Ratio);
if(m_ScreenCount < 0)
m_ScreenCount = 0;
if(kDataLen > m_ScreenCount)
{
m_MaxPos = kDataLen - m_ScreenCount;
m_End = kDataLen - m_EndPos - 1;
m_Begin = (m_End + 1) - m_ScreenCount;
if(m_Begin < 0)
{
m_Begin = 0;
m_End = m_ScreenCount - 1;
m_EndPos = kDataLen - m_ScreenCount;
}
} else
{
m_Begin = m_MaxPos = m_EndPos = 0;
m_End = kDataLen - 1;
}
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -