internalframeinternalframetitlepaneinternalframetitlepanemaximizebuttonpainter.java
来自「Mobile 应用程序使用 Java Micro Edition (Java M」· Java 代码 · 共 1,029 行 · 第 1/3 页
JAVA
1,029 行
decodeX(1.7870812f) - decodeX(1.5645933f), //width decodeY(1.5239899f) - decodeY(1.4078283f)); //height return rect; } private Path2D decodePath1() { path.reset(); path.moveTo(decodeX(1.2105263f), decodeY(1.2222222f)); path.lineTo(decodeX(1.6315789f), decodeY(1.2222222f)); path.lineTo(decodeX(1.6315789f), decodeY(1.5555556f)); path.lineTo(decodeX(1.2105263f), decodeY(1.5555556f)); path.lineTo(decodeX(1.2105263f), decodeY(1.3333334f)); path.lineTo(decodeX(1.2631578f), decodeY(1.3333334f)); path.lineTo(decodeX(1.2631578f), decodeY(1.5f)); path.lineTo(decodeX(1.5789473f), decodeY(1.5f)); path.lineTo(decodeX(1.5789473f), decodeY(1.3333334f)); path.lineTo(decodeX(1.2105263f), decodeY(1.3333334f)); path.lineTo(decodeX(1.2105263f), decodeY(1.2222222f)); path.closePath(); return path; } private Path2D decodePath2() { path.reset(); path.moveTo(decodeX(1.6842105f), decodeY(1.3888888f)); path.lineTo(decodeX(1.6842105f), decodeY(1.5f)); path.lineTo(decodeX(1.7368422f), decodeY(1.5f)); path.lineTo(decodeX(1.7368422f), decodeY(1.6666667f)); path.lineTo(decodeX(1.4210527f), decodeY(1.6666667f)); path.lineTo(decodeX(1.4210527f), decodeY(1.6111112f)); path.lineTo(decodeX(1.3684211f), decodeY(1.6111112f)); path.lineTo(decodeX(1.3684211f), decodeY(1.7222222f)); path.lineTo(decodeX(1.7894738f), decodeY(1.7222222f)); path.lineTo(decodeX(1.7894738f), decodeY(1.3888888f)); path.lineTo(decodeX(1.6842105f), decodeY(1.3888888f)); path.closePath(); return path; } private RoundRectangle2D decodeRoundRect3() { roundRect.setRoundRect(decodeX(1.0f), //x decodeY(1.6111112f), //y decodeX(2.0f) - decodeX(1.0f), //width decodeY(2.0f) - decodeY(1.6111112f), //height 6.0f, 6.0f); //rounding return roundRect; } private Rectangle2D decodeRect9() { rect.setRect(decodeX(1.3815789f), //x decodeY(1.6111112f), //y decodeX(1.4366028f) - decodeX(1.3815789f), //width decodeY(1.7739899f) - decodeY(1.6111112f)); //height return rect; } private Rectangle2D decodeRect10() { rect.setRect(decodeX(1.7918661f), //x decodeY(1.7752526f), //y decodeX(1.8349283f) - decodeX(1.7918661f), //width decodeY(1.4217172f) - decodeY(1.7752526f)); //height return rect; } private Path2D decodePath3() { path.reset(); path.moveTo(decodeX(1.1913875f), decodeY(1.2916666f)); path.lineTo(decodeX(1.1925838f), decodeY(1.7462121f)); path.lineTo(decodeX(1.8157895f), decodeY(1.7449496f)); path.lineTo(decodeX(1.819378f), decodeY(1.2916666f)); path.lineTo(decodeX(1.722488f), decodeY(1.2916666f)); path.lineTo(decodeX(1.7320573f), decodeY(1.669192f)); path.lineTo(decodeX(1.2799044f), decodeY(1.6565657f)); path.lineTo(decodeX(1.284689f), decodeY(1.3863636f)); path.lineTo(decodeX(1.7260766f), decodeY(1.385101f)); path.lineTo(decodeX(1.722488f), decodeY(1.2904041f)); path.lineTo(decodeX(1.1913875f), decodeY(1.2916666f)); path.closePath(); return path; } private Path2D decodePath4() { path.reset(); path.moveTo(decodeX(1.2105263f), decodeY(1.2222222f)); path.lineTo(decodeX(1.2105263f), decodeY(1.7222222f)); path.lineTo(decodeX(1.7894738f), decodeY(1.7222222f)); path.lineTo(decodeX(1.7894738f), decodeY(1.3333334f)); path.lineTo(decodeX(1.7368422f), decodeY(1.3333334f)); path.lineTo(decodeX(1.7368422f), decodeY(1.6666667f)); path.lineTo(decodeX(1.2631578f), decodeY(1.6666667f)); path.lineTo(decodeX(1.2631578f), decodeY(1.3333334f)); path.lineTo(decodeX(1.7894738f), decodeY(1.3333334f)); path.lineTo(decodeX(1.7894738f), decodeY(1.2222222f)); path.lineTo(decodeX(1.2105263f), decodeY(1.2222222f)); path.closePath(); return path; }
private Paint decodeGradient1(Shape s) { Rectangle2D bounds = s.getBounds2D(); float x = (float)bounds.getX(); float y = (float)bounds.getY(); float w = (float)bounds.getWidth(); float h = (float)bounds.getHeight(); return decodeGradient((0.24868421f * w) + x, (0.0014705883f * h) + y, (0.24868421f * w) + x, (1.0f * h) + y, new float[] { 0.0f,0.5f,1.0f }, new Color[] { color1, decodeColor(color1,color2,0.5f), color2}); } private Paint decodeGradient2(Shape s) { Rectangle2D bounds = s.getBounds2D(); float x = (float)bounds.getX(); float y = (float)bounds.getY(); float w = (float)bounds.getWidth(); float h = (float)bounds.getHeight(); return decodeGradient((0.25f * w) + x, (0.0f * h) + y, (0.25441176f * w) + x, (1.0016667f * h) + y, new float[] { 0.0f,0.5f,1.0f }, new Color[] { color3, decodeColor(color3,color2,0.5f), color2}); } private Paint decodeGradient3(Shape s) { Rectangle2D bounds = s.getBounds2D(); float x = (float)bounds.getX(); float y = (float)bounds.getY(); float w = (float)bounds.getWidth(); float h = (float)bounds.getHeight(); return decodeGradient((0.5f * w) + x, (0.0f * h) + y, (0.5f * w) + x, (1.0f * h) + y, new float[] { 0.0f,0.5f,1.0f }, new Color[] { color10, decodeColor(color10,color11,0.5f), color11}); } private Paint decodeGradient4(Shape s) { Rectangle2D bounds = s.getBounds2D(); float x = (float)bounds.getX(); float y = (float)bounds.getY(); float w = (float)bounds.getWidth(); float h = (float)bounds.getHeight(); return decodeGradient((0.24868421f * w) + x, (0.0014705883f * h) + y, (0.24868421f * w) + x, (1.0f * h) + y, new float[] { 0.0f,0.5f,1.0f }, new Color[] { color14, decodeColor(color14,color15,0.5f), color15}); } private Paint decodeGradient5(Shape s) { Rectangle2D bounds = s.getBounds2D(); float x = (float)bounds.getX(); float y = (float)bounds.getY(); float w = (float)bounds.getWidth(); float h = (float)bounds.getHeight(); return decodeGradient((0.25f * w) + x, (0.0f * h) + y, (0.25441176f * w) + x, (1.0016667f * h) + y, new float[] { 0.0f,0.26988637f,0.53977275f,0.5951705f,0.6505682f,0.8252841f,1.0f }, new Color[] { color16, decodeColor(color16,color15,0.5f), color15, decodeColor(color15,color17,0.5f), color17, decodeColor(color17,color18,0.5f), color18}); } private Paint decodeGradient6(Shape s) { Rectangle2D bounds = s.getBounds2D(); float x = (float)bounds.getX(); float y = (float)bounds.getY(); float w = (float)bounds.getWidth(); float h = (float)bounds.getHeight(); return decodeGradient((0.24868421f * w) + x, (0.0014705883f * h) + y, (0.24868421f * w) + x, (1.0f * h) + y, new float[] { 0.0f,0.5f,1.0f }, new Color[] { color22, decodeColor(color22,color23,0.5f), color23}); } private Paint decodeGradient7(Shape s) { Rectangle2D bounds = s.getBounds2D(); float x = (float)bounds.getX(); float y = (float)bounds.getY(); float w = (float)bounds.getWidth(); float h = (float)bounds.getHeight(); return decodeGradient((0.25f * w) + x, (0.0f * h) + y, (0.25441176f * w) + x, (1.0016667f * h) + y, new float[] { 0.0f,0.26988637f,0.53977275f,0.5951705f,0.6505682f,0.8252841f,1.0f }, new Color[] { color24, decodeColor(color24,color25,0.5f), color25, decodeColor(color25,color26,0.5f), color26, decodeColor(color26,color27,0.5f), color27}); } private Paint decodeGradient8(Shape s) { Rectangle2D bounds = s.getBounds2D(); float x = (float)bounds.getX(); float y = (float)bounds.getY(); float w = (float)bounds.getWidth(); float h = (float)bounds.getHeight(); return decodeGradient((0.24868421f * w) + x, (0.0014705883f * h) + y, (0.24868421f * w) + x, (1.0f * h) + y, new float[] { 0.0f,0.5f,1.0f }, new Color[] { color35, decodeColor(color35,color36,0.5f), color36}); } private Paint decodeGradient9(Shape s) { Rectangle2D bounds = s.getBounds2D(); float x = (float)bounds.getX(); float y = (float)bounds.getY(); float w = (float)bounds.getWidth(); float h = (float)bounds.getHeight(); return decodeGradient((0.25f * w) + x, (0.0f * h) + y, (0.25441176f * w) + x, (1.0016667f * h) + y, new float[] { 0.0f,0.26988637f,0.53977275f,0.5951705f,0.6505682f,0.8252841f,1.0f }, new Color[] { color37, decodeColor(color37,color38,0.5f), color38, decodeColor(color38,color39,0.5f), color39, decodeColor(color39,color18,0.5f), color18}); } private Paint decodeGradient10(Shape s) { Rectangle2D bounds = s.getBounds2D(); float x = (float)bounds.getX(); float y = (float)bounds.getY(); float w = (float)bounds.getWidth(); float h = (float)bounds.getHeight(); return decodeGradient((0.24868421f * w) + x, (0.0014705883f * h) + y, (0.24868421f * w) + x, (1.0f * h) + y, new float[] { 0.0f,0.5f,1.0f }, new Color[] { color48, decodeColor(color48,color49,0.5f), color49}); } private Paint decodeGradient11(Shape s) { Rectangle2D bounds = s.getBounds2D(); float x = (float)bounds.getX(); float y = (float)bounds.getY(); float w = (float)bounds.getWidth(); float h = (float)bounds.getHeight(); return decodeGradient((0.25f * w) + x, (0.0f * h) + y, (0.25441176f * w) + x, (1.0016667f * h) + y, new float[] { 0.0f,0.26988637f,0.53977275f,0.5951705f,0.6505682f,0.8252841f,1.0f }, new Color[] { color50, decodeColor(color50,color51,0.5f), color51, decodeColor(color51,color52,0.5f), color52, decodeColor(color52,color53,0.5f), color53}); } private Paint decodeGradient12(Shape s) { Rectangle2D bounds = s.getBounds2D(); float x = (float)bounds.getX(); float y = (float)bounds.getY(); float w = (float)bounds.getWidth(); float h = (float)bounds.getHeight(); return decodeGradient((0.25f * w) + x, (0.0f * h) + y, (0.25441176f * w) + x, (1.0016667f * h) + y, new float[] { 0.0f,0.26988637f,0.53977275f,0.6082097f,0.6766467f,0.83832335f,1.0f }, new Color[] { color3, decodeColor(color3,color59,0.5f), color59, decodeColor(color59,color60,0.5f), color60, decodeColor(color60,color2,0.5f), color2}); } private Paint decodeGradient13(Shape s) { Rectangle2D bounds = s.getBounds2D(); float x = (float)bounds.getX(); float y = (float)bounds.getY(); float w = (float)bounds.getWidth(); float h = (float)bounds.getHeight(); return decodeGradient((0.5f * w) + x, (0.0f * h) + y, (0.5f * w) + x, (1.0f * h) + y, new float[] { 0.26047903f,0.6302395f,1.0f }, new Color[] { color62, decodeColor(color62,color63,0.5f), color63}); } private Paint decodeGradient14(Shape s) { Rectangle2D bounds = s.getBounds2D(); float x = (float)bounds.getX(); float y = (float)bounds.getY(); float w = (float)bounds.getWidth(); float h = (float)bounds.getHeight(); return decodeGradient((0.25f * w) + x, (0.0f * h) + y, (0.25441176f * w) + x, (1.0016667f * h) + y, new float[] { 0.0f,0.26988637f,0.53977275f,0.5951705f,0.6505682f,0.8252841f,1.0f }, new Color[] { color24, decodeColor(color24,color67,0.5f), color67, decodeColor(color67,color25,0.5f), color25, decodeColor(color25,color27,0.5f), color27}); } private Paint decodeGradient15(Shape s) { Rectangle2D bounds = s.getBounds2D(); float x = (float)bounds.getX(); float y = (float)bounds.getY(); float w = (float)bounds.getWidth(); float h = (float)bounds.getHeight(); return decodeGradient((0.25f * w) + x, (0.0f * h) + y, (0.25441176f * w) + x, (1.0016667f * h) + y, new float[] { 0.0f,0.26988637f,0.53977275f,0.66659296f,0.79341316f,0.8967066f,1.0f }, new Color[] { color37, decodeColor(color37,color38,0.5f), color38, decodeColor(color38,color39,0.5f), color39, decodeColor(color39,color70,0.5f), color70}); } private Paint decodeGradient16(Shape s) { Rectangle2D bounds = s.getBounds2D(); float x = (float)bounds.getX(); float y = (float)bounds.getY(); float w = (float)bounds.getWidth(); float h = (float)bounds.getHeight(); return decodeGradient((0.25f * w) + x, (0.0f * h) + y, (0.25441176f * w) + x, (1.0016667f * h) + y, new float[] { 0.0f,0.26988637f,0.53977275f,0.6291678f,0.7185629f,0.8592814f,1.0f }, new Color[] { color50, decodeColor(color50,color52,0.5f), color52, decodeColor(color52,color52,0.5f), color52, decodeColor(color52,color53,0.5f), color53}); }
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?