comboboxpainter.java
来自「Mobile 应用程序使用 Java Micro Edition (Java M」· Java 代码 · 共 717 行 · 第 1/3 页
JAVA
717 行
path = decodePath4(); g.setPaint(decodeGradient3(path)); g.fill(path); path = decodePath5(); g.setPaint(decodeGradient4(path)); g.fill(path); } private void paintBackgroundDisabledAndPressed(Graphics2D g) { path = decodePath1(); g.setPaint(color1); g.fill(path); path = decodePath2(); g.setPaint(decodeGradient1(path)); g.fill(path); path = decodePath3(); g.setPaint(decodeGradient2(path)); g.fill(path); path = decodePath4(); g.setPaint(decodeGradient3(path)); g.fill(path); path = decodePath5(); g.setPaint(decodeGradient4(path)); g.fill(path); } private void paintBackgroundEnabled(Graphics2D g) { path = decodePath1(); g.setPaint(color14); g.fill(path); path = decodePath2(); g.setPaint(decodeGradient5(path)); g.fill(path); path = decodePath3(); g.setPaint(decodeGradient6(path)); g.fill(path); path = decodePath4(); g.setPaint(decodeGradient7(path)); g.fill(path); path = decodePath5(); g.setPaint(decodeGradient8(path)); g.fill(path); } private void paintBackgroundFocused(Graphics2D g) { roundRect = decodeRoundRect1(); g.setPaint(color26); g.fill(roundRect); path = decodePath2(); g.setPaint(decodeGradient5(path)); g.fill(path); path = decodePath3(); g.setPaint(decodeGradient6(path)); g.fill(path); path = decodePath4(); g.setPaint(decodeGradient7(path)); g.fill(path); path = decodePath5(); g.setPaint(decodeGradient8(path)); g.fill(path); } private void paintBackgroundMouseOverAndFocused(Graphics2D g) { roundRect = decodeRoundRect1(); g.setPaint(color26); g.fill(roundRect); path = decodePath2(); g.setPaint(decodeGradient9(path)); g.fill(path); path = decodePath3(); g.setPaint(decodeGradient6(path)); g.fill(path); path = decodePath4(); g.setPaint(decodeGradient10(path)); g.fill(path); path = decodePath5(); g.setPaint(decodeGradient8(path)); g.fill(path); } private void paintBackgroundMouseOver(Graphics2D g) { path = decodePath1(); g.setPaint(color14); g.fill(path); path = decodePath2(); g.setPaint(decodeGradient9(path)); g.fill(path); path = decodePath3(); g.setPaint(decodeGradient6(path)); g.fill(path); path = decodePath4(); g.setPaint(decodeGradient10(path)); g.fill(path); path = decodePath5(); g.setPaint(decodeGradient8(path)); g.fill(path); } private void paintBackgroundPressedAndFocused(Graphics2D g) { roundRect = decodeRoundRect1(); g.setPaint(color26); g.fill(roundRect); path = decodePath2(); g.setPaint(decodeGradient11(path)); g.fill(path); path = decodePath3(); g.setPaint(decodeGradient6(path)); g.fill(path); path = decodePath4(); g.setPaint(decodeGradient12(path)); g.fill(path); path = decodePath5(); g.setPaint(decodeGradient8(path)); g.fill(path); } private void paintBackgroundPressed(Graphics2D g) { path = decodePath1(); g.setPaint(color51); g.fill(path); path = decodePath2(); g.setPaint(decodeGradient11(path)); g.fill(path); path = decodePath3(); g.setPaint(decodeGradient6(path)); g.fill(path); path = decodePath4(); g.setPaint(decodeGradient12(path)); g.fill(path); path = decodePath5(); g.setPaint(decodeGradient8(path)); g.fill(path); } private void paintBackgroundEnabledAndSelected(Graphics2D g) { path = decodePath1(); g.setPaint(color52); g.fill(path); path = decodePath2(); g.setPaint(decodeGradient11(path)); g.fill(path); path = decodePath3(); g.setPaint(decodeGradient6(path)); g.fill(path); path = decodePath4(); g.setPaint(decodeGradient12(path)); g.fill(path); path = decodePath5(); g.setPaint(decodeGradient8(path)); g.fill(path); } private void paintBackgroundDisabledAndEditable(Graphics2D g) { rect = decodeRect1(); g.setPaint(color53); g.fill(rect); } private void paintBackgroundEnabledAndEditable(Graphics2D g) { rect = decodeRect1(); g.setPaint(color53); g.fill(rect); } private void paintBackgroundFocusedAndEditable(Graphics2D g) { path = decodePath6(); g.setPaint(color26); g.fill(path); } private void paintBackgroundMouseOverAndEditable(Graphics2D g) { rect = decodeRect2(); g.setPaint(color53); g.fill(rect); } private void paintBackgroundPressedAndEditable(Graphics2D g) { rect = decodeRect2(); g.setPaint(color53); g.fill(rect); }
private Path2D decodePath1() { path.reset(); path.moveTo(decodeX(0.22222222f), decodeY(2.0f)); path.lineTo(decodeX(0.22222222f), decodeY(2.25f)); path.curveTo(decodeAnchorX(0.2222222238779068f, 0.0f), decodeAnchorY(2.25f, 3.0f), decodeAnchorX(0.7777777910232544f, -3.0f), decodeAnchorY(2.875f, 0.0f), decodeX(0.7777778f), decodeY(2.875f)); path.lineTo(decodeX(2.631579f), decodeY(2.875f)); path.curveTo(decodeAnchorX(2.6315789222717285f, 3.0f), decodeAnchorY(2.875f, 0.0f), decodeAnchorX(2.8947367668151855f, 0.0f), decodeAnchorY(2.25f, 3.0f), decodeX(2.8947368f), decodeY(2.25f)); path.lineTo(decodeX(2.8947368f), decodeY(2.0f)); path.lineTo(decodeX(0.22222222f), decodeY(2.0f)); path.closePath(); return path; } private Path2D decodePath2() { path.reset(); path.moveTo(decodeX(0.22222222f), decodeY(0.875f)); path.lineTo(decodeX(0.22222222f), decodeY(2.125f)); path.curveTo(decodeAnchorX(0.2222222238779068f, 0.0f), decodeAnchorY(2.125f, 3.0f), decodeAnchorX(0.7777777910232544f, -3.0f), decodeAnchorY(2.75f, 0.0f), decodeX(0.7777778f), decodeY(2.75f)); path.lineTo(decodeX(2.0f), decodeY(2.75f)); path.lineTo(decodeX(2.0f), decodeY(0.25f)); path.lineTo(decodeX(0.7777778f), decodeY(0.25f)); path.curveTo(decodeAnchorX(0.7777777910232544f, -3.0f), decodeAnchorY(0.25f, 0.0f), decodeAnchorX(0.2222222238779068f, 0.0f), decodeAnchorY(0.875f, -3.0f), decodeX(0.22222222f), decodeY(0.875f)); path.closePath(); return path; } private Path2D decodePath3() { path.reset(); path.moveTo(decodeX(0.8888889f), decodeY(0.375f)); path.lineTo(decodeX(2.0f), decodeY(0.375f)); path.lineTo(decodeX(2.0f), decodeY(2.625f)); path.lineTo(decodeX(0.8888889f), decodeY(2.625f)); path.curveTo(decodeAnchorX(0.8888888955116272f, -4.0f), decodeAnchorY(2.625f, 0.0f), decodeAnchorX(0.3333333432674408f, 0.0f), decodeAnchorY(2.0f, 4.0f), decodeX(0.33333334f), decodeY(2.0f)); path.lineTo(decodeX(0.33333334f), decodeY(0.875f)); path.curveTo(decodeAnchorX(0.3333333432674408f, 0.0f), decodeAnchorY(0.875f, -3.0f), decodeAnchorX(0.8888888955116272f, -4.0f), decodeAnchorY(0.375f, 0.0f), decodeX(0.8888889f), decodeY(0.375f)); path.closePath(); return path; } private Path2D decodePath4() { path.reset();
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?