package test.svg.transcoded; import java.awt.*; import java.awt.geom.*; /** * This class has been automatically generated using <a * href="https://github.com/kirill-grouchnikov/flamingo">Flamingo SVG transcoder</a>. */ public class Applications_other implements org.pushingpixels.flamingo.api.common.icon.ResizableIcon { /** * Paints the transcoded SVG image on the specified graphics context. You * can install a custom transformation on the graphics context to scale the * image. * * @param g * Graphics context. */ public static void paint(Graphics2D g) { Shape shape = null; Paint paint = null; Stroke stroke = null; float origAlpha = 1.0f; Composite origComposite = ((Graphics2D)g).getComposite(); if (origComposite instanceof AlphaComposite) { AlphaComposite origAlphaComposite = (AlphaComposite)origComposite; if (origAlphaComposite.getRule() == AlphaComposite.SRC_OVER) { origAlpha = origAlphaComposite.getAlpha(); } } AffineTransform defaultTransform_ = g.getTransform(); // g.setComposite(AlphaComposite.getInstance(3, 1.0f * origAlpha)); AffineTransform defaultTransform__0 = g.getTransform(); g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f)); // _0 g.setComposite(AlphaComposite.getInstance(3, 1.0f * origAlpha)); AffineTransform defaultTransform__0_0 = g.getTransform(); g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f)); // _0_0 g.setComposite(AlphaComposite.getInstance(3, 1.0f * origAlpha)); AffineTransform defaultTransform__0_0_0 = g.getTransform(); g.transform(new AffineTransform(1.1863800287246704f, 0.0f, 0.0f, 1.1863800287246704f, -4.539687156677246f, -7.794678211212158f)); // _0_0_0 paint = new RadialGradientPaint(new Point2D.Double(14.287617683410645, 68.87297058105469), 11.68987f, new Point2D.Double(14.287617683410645, 72.56800079345703), new float[] {0.0f,1.0f}, new Color[] {new Color(0, 0, 0, 83),new Color(0, 0, 0, 0)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.399258017539978f, -2.2344450201217114E-7f, 8.196177958552653E-8f, 0.513264000415802f, 4.365074157714844f, 4.839284896850586f)); shape = new GeneralPath(); ((GeneralPath)shape).moveTo(44.285713, 38.714287); ((GeneralPath)shape).curveTo(44.287918, 42.22952, 40.490032, 45.478195, 34.323208, 47.236126); ((GeneralPath)shape).curveTo(28.156382, 48.994057, 20.557903, 48.994057, 14.391077, 47.236126); ((GeneralPath)shape).curveTo(8.224251, 45.478195, 4.4263687, 42.22952, 4.4285717, 38.714287); ((GeneralPath)shape).curveTo(4.4263687, 35.199055, 8.224251, 31.950378, 14.391077, 30.192446); ((GeneralPath)shape).curveTo(20.557903, 28.434515, 28.156382, 28.434515, 34.323208, 30.192446); ((GeneralPath)shape).curveTo(40.490032, 31.950378, 44.287918, 35.199055, 44.285713, 38.714287); ((GeneralPath)shape).closePath(); g.setPaint(paint); g.fill(shape); g.setTransform(defaultTransform__0_0_0); g.setTransform(defaultTransform__0_0); g.setComposite(AlphaComposite.getInstance(3, 1.0f * origAlpha)); AffineTransform defaultTransform__0_1 = g.getTransform(); g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f)); // _0_1 g.setComposite(AlphaComposite.getInstance(3, 1.0f * origAlpha)); AffineTransform defaultTransform__0_1_0 = g.getTransform(); g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f)); // _0_1_0 paint = new RadialGradientPaint(new Point2D.Double(24.28580093383789, 36.72077178955078), 20.410614f, new Point2D.Double(24.28580093383789, 36.72077178955078), new float[] {0.0f,1.0f}, new Color[] {new Color(252, 175, 62, 255),new Color(211, 127, 3, 255)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.7278729677200317f, -1.5237149729209637E-23f, 1.384133924351158E-23f, 1.7278729677200317f, -17.676979064941406f, -26.728050231933594f)); shape = new GeneralPath(); ((GeneralPath)shape).moveTo(24.2858, 43.196358); ((GeneralPath)shape).lineTo(4.3751874, 23.285744); ((GeneralPath)shape).lineTo(24.2858, 3.375129); ((GeneralPath)shape).lineTo(44.196415, 23.285744); ((GeneralPath)shape).lineTo(24.2858, 43.196358); ((GeneralPath)shape).lineTo(24.2858, 43.196358); ((GeneralPath)shape).closePath(); g.setPaint(paint); g.fill(shape); paint = new Color(245, 121, 0, 255); stroke = new BasicStroke(1.0f,1,1,4.0f,null,0.0f); shape = new GeneralPath(); ((GeneralPath)shape).moveTo(24.2858, 43.196358); ((GeneralPath)shape).lineTo(4.3751874, 23.285744); ((GeneralPath)shape).lineTo(24.2858, 3.375129); ((GeneralPath)shape).lineTo(44.196415, 23.285744); ((GeneralPath)shape).lineTo(24.2858, 43.196358); ((GeneralPath)shape).lineTo(24.2858, 43.196358); ((GeneralPath)shape).closePath(); g.setPaint(paint); g.setStroke(stroke); g.draw(shape); g.setTransform(defaultTransform__0_1_0); g.setComposite(AlphaComposite.getInstance(3, 0.5f * origAlpha)); AffineTransform defaultTransform__0_1_1 = g.getTransform(); g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f)); // _0_1_1 paint = new Color(255, 255, 255, 255); shape = new GeneralPath(); ((GeneralPath)shape).moveTo(39.439934, 19.376677); ((GeneralPath)shape).lineTo(38.70148, 20.400862); ((GeneralPath)shape).curveTo(38.06473, 20.132368, 37.400864, 19.915792, 36.715298, 19.755976); ((GeneralPath)shape).lineTo(36.72111, 18.179117); ((GeneralPath)shape).curveTo(36.293385, 18.090782, 35.8581, 18.022982, 35.417007, 17.974747); ((GeneralPath)shape).lineTo(34.93523, 19.476637); ((GeneralPath)shape).curveTo(34.59119, 19.448158, 34.24347, 19.432468, 33.891872, 19.432468); ((GeneralPath)shape).curveTo(33.54066, 19.432468, 33.192745, 19.447966, 32.848705, 19.476637); ((GeneralPath)shape).lineTo(32.36693, 17.974747); ((GeneralPath)shape).curveTo(31.925642, 18.022982, 31.490555, 18.090782, 31.062826, 18.179117); ((GeneralPath)shape).lineTo(31.06883, 19.756168); ((GeneralPath)shape).curveTo(30.383074, 19.915792, 29.719398, 20.132368, 29.08265, 20.400862); ((GeneralPath)shape).lineTo(28.16017, 19.121359); ((GeneralPath)shape).curveTo(27.757816, 19.303453, 27.365927, 19.50395, 26.985273, 19.721882); ((GeneralPath)shape).lineTo(27.47809, 21.219896); ((GeneralPath)shape).curveTo(26.880861, 21.582148, 26.316368, 21.993216, 25.79062, 22.447868); ((GeneralPath)shape).lineTo(24.518478, 21.51609); ((GeneralPath)shape).curveTo(24.19284, 21.812672, 23.88115, 22.124363, 23.584763, 22.45); ((GeneralPath)shape).lineTo(24.516348, 23.721947); ((GeneralPath)shape).curveTo(24.0615, 24.247696, 23.650433, 24.811995, 23.288181, 25.409613); ((GeneralPath)shape).lineTo(21.790167, 24.916601); ((GeneralPath)shape).curveTo(21.572235, 25.29745, 21.371544, 25.689533, 21.189838, 26.091688); ((GeneralPath)shape).lineTo(22.469147, 27.013975); ((GeneralPath)shape).curveTo(22.200653, 27.650724, 21.984077, 28.314594, 21.824066, 29.000353); ((GeneralPath)shape).lineTo(20.247404, 28.994541); ((GeneralPath)shape).curveTo(20.15907, 29.422268, 20.091267, 29.857552, 20.043226, 30.29884); ((GeneralPath)shape).lineTo(21.544922, 30.780613); ((GeneralPath)shape).curveTo(21.516056, 31.12446, 21.500753, 31.472378, 21.500753, 31.82378); ((GeneralPath)shape).curveTo(21.500753, 32.175182, 21.516445, 32.522903, 21.544922, 32.86714); ((GeneralPath)shape).lineTo(20.043226, 33.348915); ((GeneralPath)shape).curveTo(20.091072, 33.79001, 20.159264, 34.225098, 20.24721, 34.65302); ((GeneralPath)shape).lineTo(21.82426, 34.647015); ((GeneralPath)shape).curveTo(21.984077, 35.33277, 22.200653, 35.99664, 22.468952, 36.633194); ((GeneralPath)shape).lineTo(21.189644, 37.555485); ((GeneralPath)shape).curveTo(21.371351, 37.957836, 21.572235, 38.349724, 21.78978, 38.73057); ((GeneralPath)shape).lineTo(23.287989, 38.23756); ((GeneralPath)shape).curveTo(23.65024, 38.834988, 24.061308, 39.399284, 24.51596, 39.92484); ((GeneralPath)shape).lineTo(23.584375, 41.19698); ((GeneralPath)shape).curveTo(23.862747, 41.50286, 24.155453, 41.794987, 24.459784, 42.0751); ((GeneralPath)shape).lineTo(43.29878, 23.23591); ((GeneralPath)shape).lineTo(42.291836, 22.22897); ((GeneralPath)shape).lineTo(41.993122, 22.447676); ((GeneralPath)shape).curveTo(41.467377, 21.993023, 40.903076, 21.581953, 40.305653, 21.219704); ((GeneralPath)shape).lineTo(40.547607, 20.484547); ((GeneralPath)shape).lineTo(39.439545, 19.376484); ((GeneralPath)shape).lineTo(39.439934, 19.376677); ((GeneralPath)shape).closePath(); g.setPaint(paint); g.fill(shape); g.setTransform(defaultTransform__0_1_1); g.setComposite(AlphaComposite.getInstance(3, 0.5f * origAlpha)); AffineTransform defaultTransform__0_1_2 = g.getTransform(); g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f)); // _0_1_2 paint = new Color(255, 255, 255, 255); shape = new GeneralPath(); ((GeneralPath)shape).moveTo(19.916729, 14.330733); ((GeneralPath)shape).curveTo(19.916729, 20.815414, 15.682846, 26.310202, 9.82949, 28.204756); ((GeneralPath)shape).lineTo(12.056461, 30.431923); ((GeneralPath)shape).curveTo(12.073315, 30.424948, 12.09036, 30.418943, 12.10702, 30.411776); ((GeneralPath)shape).lineTo(12.288533, 30.663609); ((GeneralPath)shape).lineTo(13.700537, 32.07561); ((GeneralPath)shape).curveTo(14.163716, 31.856712, 14.617207, 31.621153, 15.059852, 31.367964); ((GeneralPath)shape).lineTo(14.365763, 29.258772); ((GeneralPath)shape).curveTo(15.207077, 28.749102, 16.00151, 28.17008, 16.74151, 27.530039); ((GeneralPath)shape).lineTo(18.53262, 28.841698); ((GeneralPath)shape).curveTo(18.99134, 28.424238, 19.429916, 27.985662, 19.847183, 27.527134); ((GeneralPath)shape).lineTo(18.535719, 25.73622); ((GeneralPath)shape).curveTo(19.17576, 24.996023, 19.754587, 24.201591, 20.26445, 23.360472); ((GeneralPath)shape).lineTo(22.373837, 24.05456); ((GeneralPath)shape).curveTo(22.68049, 23.518156, 22.96293, 22.966255, 23.21883, 22.399828); ((GeneralPath)shape).lineTo(21.417648, 21.101536); ((GeneralPath)shape).curveTo(21.795591, 20.205206, 22.1005, 19.270521, 22.325407, 18.305035); ((GeneralPath)shape).lineTo(24.545406, 18.313559); ((GeneralPath)shape).curveTo(24.669579, 17.711292, 24.765274, 17.09837, 24.832882, 16.477507); ((GeneralPath)shape).lineTo(22.718458, 15.799109); ((GeneralPath)shape).curveTo(22.758753, 15.314816, 22.78045, 14.825099, 22.78045, 14.330539); ((GeneralPath)shape).curveTo(22.78045, 13.835786, 22.758753, 13.346069, 22.718458, 12.861776); ((GeneralPath)shape).lineTo(24.832882, 12.18396); ((GeneralPath)shape).curveTo(24.765274, 11.562709, 24.669579, 10.949981, 24.545212, 10.347714); ((GeneralPath)shape).lineTo(22.325407, 10.356044); ((GeneralPath)shape).curveTo(22.1005, 9.390556, 21.795591, 8.455872, 21.417648, 7.559541); ((GeneralPath)shape).lineTo(23.21883, 6.2610555); ((GeneralPath)shape).curveTo(23.076448, 5.946265, 22.924961, 5.636124, 22.766695, 5.330632); ((GeneralPath)shape).lineTo(18.962671, 9.134269); ((GeneralPath)shape).curveTo(19.578691, 10.748514, 19.916922, 12.500106, 19.916922, 14.330539); ((GeneralPath)shape).lineTo(19.916729, 14.330733); ((GeneralPath)shape).closePath(); g.setPaint(paint); g.fill(shape); g.setTransform(defaultTransform__0_1_2); g.setComposite(AlphaComposite.getInstance(3, 0.47252747f * origAlpha)); AffineTransform defaultTransform__0_1_3 = g.getTransform(); g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f)); // _0_1_3 paint = new LinearGradientPaint(new Point2D.Double(26.50260353088379, 10.027483940124512), new Point2D.Double(28.786495208740234, 52.80744552612305), new float[] {0.0f,1.0f}, new Color[] {new Color(255, 255, 255, 255),new Color(255, 255, 255, 0)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f)); stroke = new BasicStroke(1.0f,0,0,4.0f,null,0.0f); shape = new GeneralPath(); ((GeneralPath)shape).moveTo(24.285791, 41.605354); ((GeneralPath)shape).lineTo(5.9661765, 23.285736); ((GeneralPath)shape).lineTo(24.285791, 4.966119); ((GeneralPath)shape).lineTo(42.605408, 23.285736); ((GeneralPath)shape).lineTo(24.285791, 41.605354); ((GeneralPath)shape).lineTo(24.285791, 41.605354); ((GeneralPath)shape).closePath(); g.setPaint(paint); g.setStroke(stroke); g.draw(shape); g.setTransform(defaultTransform__0_1_3); g.setTransform(defaultTransform__0_1); g.setTransform(defaultTransform__0); g.setTransform(defaultTransform_); } /** * Returns the X of the bounding box of the original SVG image. * * @return The X of the bounding box of the original SVG image. */ public static double getOrigX() { return 0.7116683125495911; } /** * Returns the Y of the bounding box of the original SVG image. * * @return The Y of the bounding box of the original SVG image. */ public static double getOrigY() { return 2.8262746334075928; } /** * Returns the width of the bounding box of the original SVG image. * * @return The width of the bounding box of the original SVG image. */ public static double getOrigWidth() { return 47.288330078125; } /** * Returns the height of the bounding box of the original SVG image. * * @return The height of the bounding box of the original SVG image. */ public static double getOrigHeight() { return 45.17372512817383; } /** * The current width of this resizable icon. */ int width; /** * The current height of this resizable icon. */ int height; /** * Creates a new transcoded SVG image. */ public Applications_other() { this.width = (int) getOrigWidth(); this.height = (int) getOrigHeight(); } /* * (non-Javadoc) * * @see javax.swing.Icon#getIconHeight() */ @Override public int getIconHeight() { return height; } /* * (non-Javadoc) * * @see javax.swing.Icon#getIconWidth() */ @Override public int getIconWidth() { return width; } /* * (non-Javadoc) * * @see * org.jvnet.flamingo.common.icon.ResizableIcon#setDimension(java.awt.Dimension * ) */ @Override public void setDimension(Dimension newDimension) { this.width = newDimension.width; this.height = newDimension.height; } /* * (non-Javadoc) * * @see javax.swing.Icon#paintIcon(java.awt.Component, java.awt.Graphics, * int, int) */ @Override public void paintIcon(Component c, Graphics g, int x, int y) { Graphics2D g2d = (Graphics2D) g.create(); g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); g2d.translate(x, y); double coef1 = (double) this.width / (double) getOrigWidth(); double coef2 = (double) this.height / (double) getOrigHeight(); double coef = Math.min(coef1, coef2); g2d.clipRect(0, 0, this.width, this.height); g2d.scale(coef, coef); g2d.translate(-getOrigX(), -getOrigY()); if (coef1 != coef2) { if (coef1 < coef2) { int extraDy = (int) ((getOrigWidth() - getOrigHeight()) / 2.0); g2d.translate(0, extraDy); } else { int extraDx = (int) ((getOrigHeight() - getOrigWidth()) / 2.0); g2d.translate(extraDx, 0); } } paint(g2d); g2d.dispose(); } }