comboboxpainter.java
来自「Mobile 应用程序使用 Java Micro Edition (Java M」· Java 代码 · 共 717 行 · 第 1/3 页
JAVA
717 行
path.moveTo(decodeX(2.0f), decodeY(0.25f)); path.lineTo(decodeX(2.631579f), decodeY(0.25f)); path.curveTo(decodeAnchorX(2.6315789222717285f, 3.0f), decodeAnchorY(0.25f, 0.0f), decodeAnchorX(2.8947367668151855f, 0.0f), decodeAnchorY(0.875f, -3.0f), decodeX(2.8947368f), decodeY(0.875f)); path.lineTo(decodeX(2.8947368f), decodeY(2.125f)); path.curveTo(decodeAnchorX(2.8947367668151855f, 0.0f), decodeAnchorY(2.125f, 3.0f), decodeAnchorX(2.6315789222717285f, 3.0f), decodeAnchorY(2.75f, 0.0f), decodeX(2.631579f), decodeY(2.75f)); path.lineTo(decodeX(2.0f), decodeY(2.75f)); path.lineTo(decodeX(2.0f), decodeY(0.25f)); path.closePath(); return path; } private Path2D decodePath5() { path.reset(); path.moveTo(decodeX(2.0131578f), decodeY(0.375f)); path.lineTo(decodeX(2.5789473f), decodeY(0.375f)); path.curveTo(decodeAnchorX(2.5789473056793213f, 4.0f), decodeAnchorY(0.375f, 0.0f), decodeAnchorX(2.8421053886413574f, 0.0f), decodeAnchorY(1.0f, -4.0f), decodeX(2.8421054f), decodeY(1.0f)); path.lineTo(decodeX(2.8421054f), decodeY(2.0f)); path.curveTo(decodeAnchorX(2.8421053886413574f, 0.0f), decodeAnchorY(2.0f, 4.0f), decodeAnchorX(2.5789473056793213f, 4.0f), decodeAnchorY(2.625f, 0.0f), decodeX(2.5789473f), decodeY(2.625f)); path.lineTo(decodeX(2.0131578f), decodeY(2.625f)); path.lineTo(decodeX(2.0131578f), decodeY(0.375f)); path.closePath(); return path; } private RoundRectangle2D decodeRoundRect1() { roundRect.setRoundRect(decodeX(0.06666667f), //x decodeY(0.075f), //y decodeX(2.9684212f) - decodeX(0.06666667f), //width decodeY(2.925f) - decodeY(0.075f), //height 13.0f, 13.0f); //rounding return roundRect; } private Rectangle2D decodeRect1() { rect.setRect(decodeX(1.4385965f), //x decodeY(1.4444444f), //y decodeX(1.4385965f) - decodeX(1.4385965f), //width decodeY(1.4444444f) - decodeY(1.4444444f)); //height return rect; } private Path2D decodePath6() { path.reset(); path.moveTo(decodeX(0.120000005f), decodeY(0.120000005f)); path.lineTo(decodeX(1.9954545f), decodeY(0.120000005f)); path.curveTo(decodeAnchorX(1.9954545497894287f, 3.0f), decodeAnchorY(0.12000000476837158f, 0.0f), decodeAnchorX(2.8799986839294434f, 0.0f), decodeAnchorY(1.0941176414489746f, -2.9999999999999996f), decodeX(2.8799987f), decodeY(1.0941176f)); path.lineTo(decodeX(2.8799987f), decodeY(1.964706f)); path.curveTo(decodeAnchorX(2.8799986839294434f, 0.0f), decodeAnchorY(1.9647059440612793f, 3.0f), decodeAnchorX(1.9954545497894287f, 3.0f), decodeAnchorY(2.879999876022339f, 0.0f), decodeX(1.9954545f), decodeY(2.8799999f)); path.lineTo(decodeX(0.120000005f), decodeY(2.8799999f)); path.lineTo(decodeX(0.120000005f), decodeY(0.120000005f)); path.closePath(); return path; } private Rectangle2D decodeRect2() { rect.setRect(decodeX(1.4385965f), //x decodeY(1.5f), //y decodeX(1.4385965f) - decodeX(1.4385965f), //width decodeY(1.5f) - decodeY(1.5f)); //height return rect; }
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.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[] { color2, decodeColor(color2,color3,0.5f), color3}); } 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.5f * w) + x, (0.0f * h) + y, (0.5f * w) + x, (1.0f * h) + y, new float[] { 0.0f,0.2002841f,0.4005682f,0.5326705f,0.66477275f,0.8323864f,1.0f }, new Color[] { color4, decodeColor(color4,color5,0.5f), color5, decodeColor(color5,color6,0.5f), color6, decodeColor(color6,color7,0.5f), color7}); } 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[] { color8, decodeColor(color8,color9,0.5f), color9}); } 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.5f * w) + x, (0.0f * h) + y, (0.5f * w) + x, (1.0f * h) + y, new float[] { 0.0f,0.171875f,0.34375f,0.4815341f,0.6193182f,0.8096591f,1.0f }, new Color[] { color10, decodeColor(color10,color11,0.5f), color11, decodeColor(color11,color12,0.5f), color12, decodeColor(color12,color13,0.5f), color13}); } 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.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[] { color15, decodeColor(color15,color16,0.5f), color16}); } 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.5f * w) + x, (0.0f * h) + y, (0.5f * w) + x, (1.0f * h) + y, new float[] { 0.0f,0.2002841f,0.4005682f,0.5326705f,0.66477275f,0.8323864f,1.0f }, new Color[] { (Color)componentColors[0], decodeColor((Color)componentColors[0],(Color)componentColors[1],0.5f), (Color)componentColors[1], decodeColor((Color)componentColors[1],(Color)componentColors[2],0.5f), (Color)componentColors[2], decodeColor((Color)componentColors[2],(Color)componentColors[3],0.5f), (Color)componentColors[3]}); } 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.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[] { color20, decodeColor(color20,color21,0.5f), color21}); } 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.5f * w) + x, (0.0f * h) + y, (0.5f * w) + x, (1.0f * h) + y, new float[] { 0.0f,0.171875f,0.34375f,0.4815341f,0.6193182f,0.8096591f,1.0f }, new Color[] { (Color)componentColors[4], decodeColor((Color)componentColors[4],(Color)componentColors[5],0.5f), (Color)componentColors[5], decodeColor((Color)componentColors[5],(Color)componentColors[6],0.5f), (Color)componentColors[6], decodeColor((Color)componentColors[6],(Color)componentColors[7],0.5f), (Color)componentColors[7]}); } 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.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[] { color27, decodeColor(color27,color28,0.5f), color28}); } 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.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[] { color33, decodeColor(color33,color34,0.5f), color34}); } 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.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[] { color39, decodeColor(color39,color40,0.5f), color40}); } 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.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[] { color45, decodeColor(color45,color46,0.5f), color46}); }
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?