package org.pushingpixels.substance.internal.svg;
import java.awt.*;
import java.awt.geom.*;
import javax.swing.Icon;
import javax.swing.plaf.UIResource;
import org.pushingpixels.lafwidget.icon.IsHiDpiAware;
import org.pushingpixels.lafwidget.icon.IsResizable;
/**
* This class has been automatically generated using <a
* href="https://github.com/kirill-grouchnikov/flamingo">Flamingo SVG transcoder</a>.
*/
public class Drive_harddisk implements Icon, UIResource, IsResizable, IsHiDpiAware {
/**
* 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, 0.56f * origAlpha));
AffineTransform defaultTransform__0_0_0 = g.getTransform();
g.transform(new AffineTransform(1.0525330305099487f, 0.0f, 0.0f, 0.3631129860877991f, -0.5117570161819458f, 26.86985969543457f));
// _0_0_0
paint = new RadialGradientPaint(new Point2D.Double(23.201940536499023, 27.096155166625977), 23.555494f, new Point2D.Double(23.201940536499023, 27.096155166625977), new float[] {0.0f,1.0f}, new Color[] {new Color(0, 0, 0, 255),new Color(0, 0, 0, 0)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 0.6510319709777832f, 0.0f, 9.455693244934082f));
shape = new GeneralPath();
((GeneralPath)shape).moveTo(46.757435, 27.096155);
((GeneralPath)shape).curveTo(46.757435, 35.56565, 36.21128, 42.431534, 23.20194, 42.431534);
((GeneralPath)shape).curveTo(10.1926, 42.431534, -0.35355377, 35.56565, -0.35355377, 27.096155);
((GeneralPath)shape).curveTo(-0.35355377, 18.62666, 10.1926, 11.7607765, 23.20194, 11.7607765);
((GeneralPath)shape).curveTo(36.21128, 11.7607765, 46.757435, 18.62666, 46.757435, 27.096155);
((GeneralPath)shape).closePath();
g.setPaint(paint);
g.fill(shape);
g.setTransform(defaultTransform__0_0_0);
g.setComposite(AlphaComposite.getInstance(3, 1.0f * origAlpha));
AffineTransform defaultTransform__0_0_1 = g.getTransform();
g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));
// _0_0_1
paint = new Color(83, 83, 83, 255);
stroke = new BasicStroke(2.0f,1,1,4.0f,null,0.0f);
shape = new GeneralPath();
((GeneralPath)shape).moveTo(11.28569, 7.962628);
((GeneralPath)shape).curveTo(10.66069, 7.962628, 10.254441, 8.252809, 10.004442, 8.806381);
((GeneralPath)shape).curveTo(10.004441, 8.806381, 3.5356915, 25.909939, 3.5356915, 25.909939);
((GeneralPath)shape).curveTo(3.5356915, 25.909939, 3.2856915, 26.581497, 3.2856915, 27.691189);
((GeneralPath)shape).curveTo(3.2856915, 27.691189, 3.2856915, 37.341156, 3.2856915, 37.341156);
((GeneralPath)shape).curveTo(3.2856915, 38.42377, 3.943477, 38.96616, 4.9419417, 38.966156);
((GeneralPath)shape).lineTo(43.50444, 38.966156);
((GeneralPath)shape).curveTo(44.489292, 38.966156, 45.09819, 38.247974, 45.09819, 37.122406);
((GeneralPath)shape).lineTo(45.09819, 27.472439);
((GeneralPath)shape).curveTo(45.09819, 27.472439, 45.20415, 26.702015, 45.00444, 26.159939);
((GeneralPath)shape).lineTo(38.28569, 8.962631);
((GeneralPath)shape).curveTo(38.101166, 8.450725, 37.648785, 7.974533, 37.16069, 7.962628);
((GeneralPath)shape).lineTo(11.28569, 7.962628);
((GeneralPath)shape).closePath();
g.setPaint(paint);
g.setStroke(stroke);
g.draw(shape);
g.setTransform(defaultTransform__0_0_1);
g.setComposite(AlphaComposite.getInstance(3, 1.0f * origAlpha));
AffineTransform defaultTransform__0_0_2 = g.getTransform();
g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));
// _0_0_2
paint = new LinearGradientPaint(new Point2D.Double(7.604620456695557, 28.481176376342773), new Point2D.Double(36.183067321777344, 40.94393539428711), new float[] {0.0f,1.0f}, new Color[] {new Color(187, 187, 187, 255),new Color(159, 159, 159, 255)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));
shape = new GeneralPath();
((GeneralPath)shape).moveTo(3.2735915, 26.996813);
((GeneralPath)shape).lineTo(4.0381937, 26.304598);
((GeneralPath)shape).lineTo(41.647884, 26.367098);
((GeneralPath)shape).lineTo(45.11029, 26.684395);
((GeneralPath)shape).lineTo(45.11029, 37.12293);
((GeneralPath)shape).curveTo(45.11029, 38.248497, 44.503273, 38.96626, 43.518417, 38.96626);
((GeneralPath)shape).lineTo(4.9354315, 38.96626);
((GeneralPath)shape).curveTo(3.9369667, 38.96626, 3.2735915, 38.424206, 3.2735915, 37.341595);
((GeneralPath)shape).lineTo(3.2735915, 26.996813);
((GeneralPath)shape).closePath();
g.setPaint(paint);
g.fill(shape);
g.setTransform(defaultTransform__0_0_2);
g.setComposite(AlphaComposite.getInstance(3, 1.0f * origAlpha));
AffineTransform defaultTransform__0_0_3 = g.getTransform();
g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));
// _0_0_3
paint = new RadialGradientPaint(new Point2D.Double(15.571491241455078, 2.9585189819335938), 20.935818f, new Point2D.Double(15.571491241455078, 2.9585189819335938), new float[] {0.0f,1.0f}, new Color[] {new Color(228, 228, 228, 255),new Color(211, 211, 211, 255)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.2862420082092285f, 0.7816979885101318f, -0.710781991481781f, 1.169551968574524f, -2.3543479442596436f, -4.876862049102783f));
shape = new GeneralPath();
((GeneralPath)shape).moveTo(3.5490842, 25.914404);
((GeneralPath)shape).curveTo(2.8347986, 27.37869, 3.5484686, 28.30726, 4.5847983, 28.30726);
((GeneralPath)shape).curveTo(4.5847983, 28.30726, 43.584797, 28.30726, 43.584797, 28.30726);
((GeneralPath)shape).curveTo(44.703842, 28.283451, 45.430035, 27.295357, 45.013367, 26.164404);
((GeneralPath)shape).lineTo(38.299084, 8.953705);
((GeneralPath)shape).curveTo(38.11456, 8.441797, 37.64432, 7.9656057, 37.156223, 7.953701);
((GeneralPath)shape).lineTo(11.299083, 7.953701);
((GeneralPath)shape).curveTo(10.674083, 7.953701, 10.263369, 8.257274, 10.01337, 8.810847);
((GeneralPath)shape).curveTo(10.01337, 8.810847, 3.5490842, 25.914404, 3.5490842, 25.914404);
((GeneralPath)shape).closePath();
g.setPaint(paint);
g.fill(shape);
g.setTransform(defaultTransform__0_0_3);
g.setComposite(AlphaComposite.getInstance(3, 1.0f * origAlpha));
AffineTransform defaultTransform__0_0_4 = g.getTransform();
g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));
// _0_0_4
paint = new LinearGradientPaint(new Point2D.Double(7.0625, 35.28125), new Point2D.Double(24.6875, 35.28125), new float[] {0.0f,1.0f}, new Color[] {new Color(131, 131, 131, 255),new Color(187, 187, 187, 0)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.7954930067062378f, -1.325821042060852f));
shape = new Rectangle2D.Double(7.857995986938477, 31.174182891845703, 17.625, 5.5625);
g.setPaint(paint);
g.fill(shape);
g.setTransform(defaultTransform__0_0_4);
g.setComposite(AlphaComposite.getInstance(3, 0.81142855f * origAlpha));
AffineTransform defaultTransform__0_0_5 = g.getTransform();
g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));
// _0_0_5
paint = new LinearGradientPaint(new Point2D.Double(12.277412414550781, 37.205810546875), new Point2D.Double(12.221822738647461, 33.7586669921875), new float[] {0.0f,1.0f}, new Color[] {new Color(238, 238, 238, 255),new Color(238, 238, 238, 0)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));
shape = new GeneralPath();
((GeneralPath)shape).moveTo(7.857995, 36.73668);
((GeneralPath)shape).curveTo(7.857995, 36.73668, 7.857995, 32.725197, 7.857995, 32.725197);
((GeneralPath)shape).curveTo(9.693522, 35.904423, 16.154486, 36.73668, 20.795492, 36.73668);
((GeneralPath)shape).curveTo(20.795492, 36.73668, 7.857995, 36.73668, 7.857995, 36.73668);
((GeneralPath)shape).closePath();
g.setPaint(paint);
g.fill(shape);
g.setTransform(defaultTransform__0_0_5);
g.setComposite(AlphaComposite.getInstance(3, 1.0f * origAlpha));
AffineTransform defaultTransform__0_0_6 = g.getTransform();
g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));
// _0_0_6
paint = new Color(255, 255, 255, 255);
shape = new GeneralPath();
((GeneralPath)shape).moveTo(44.79616, 25.628689);
((GeneralPath)shape).curveTo(44.859684, 26.878662, 44.38216, 27.944529, 43.474045, 27.972439);
((GeneralPath)shape).curveTo(43.474045, 27.972439, 5.3553295, 27.972437, 5.3553295, 27.972439);
((GeneralPath)shape).curveTo(4.0660977, 27.972439, 3.4875937, 27.647491, 3.271279, 27.104382);
((GeneralPath)shape).curveTo(3.3630404, 28.048714, 4.0970964, 28.753689, 5.3553295, 28.753689);
((GeneralPath)shape).curveTo(5.3553295, 28.753687, 43.474045, 28.753689, 43.474045, 28.753689);
((GeneralPath)shape).curveTo(44.550053, 28.720617, 45.226852, 27.329664, 44.82621, 25.758898);
((GeneralPath)shape).lineTo(44.79616, 25.628689);
((GeneralPath)shape).closePath();
g.setPaint(paint);
g.fill(shape);
g.setTransform(defaultTransform__0_0_6);
g.setComposite(AlphaComposite.getInstance(3, 0.69142854f * origAlpha));
AffineTransform defaultTransform__0_0_7 = g.getTransform();
g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));
// _0_0_7
paint = new LinearGradientPaint(new Point2D.Double(23.688077926635742, 11.318835258483887), new Point2D.Double(23.688077926635742, 26.3571834564209), new float[] {0.0f,1.0f}, new Color[] {new Color(255, 255, 255, 65),new Color(255, 255, 255, 255)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));
shape = new GeneralPath();
((GeneralPath)shape).moveTo(10.96875, 10.15625);
((GeneralPath)shape).curveTo(10.922675, 10.356571, 10.78125, 10.543047, 10.78125, 10.75);
((GeneralPath)shape).curveTo(10.78125, 11.698605, 11.37223, 12.539474, 12.125, 13.34375);
((GeneralPath)shape).curveTo(12.365268, 13.189675, 12.490117, 12.989342, 12.75, 12.84375);
((GeneralPath)shape).curveTo(11.809691, 12.027746, 11.196604, 11.127168, 10.96875, 10.15625);
((GeneralPath)shape).closePath();
((GeneralPath)shape).moveTo(37.625, 10.15625);
((GeneralPath)shape).curveTo(37.396275, 11.125866, 36.78299, 12.028676, 35.84375, 12.84375);
((GeneralPath)shape).curveTo(36.117893, 12.997332, 36.247738, 13.21199, 36.5, 13.375);
((GeneralPath)shape).curveTo(37.257263, 12.568344, 37.8125, 11.701956, 37.8125, 10.75);
((GeneralPath)shape).curveTo(37.8125, 10.543047, 37.670906, 10.356571, 37.625, 10.15625);
((GeneralPath)shape).closePath();
((GeneralPath)shape).moveTo(39.8125, 18.59375);
((GeneralPath)shape).curveTo(39.198708, 22.633862, 32.513885, 25.84375, 24.28125, 25.84375);
((GeneralPath)shape).curveTo(16.068996, 25.843752, 9.421101, 22.650965, 8.78125, 18.625);
((GeneralPath)shape).curveTo(8.748893, 18.822132, 8.65625, 19.016882, 8.65625, 19.21875);
((GeneralPath)shape).curveTo(8.65625, 23.536697, 15.645354, 27.062502, 24.28125, 27.0625);
((GeneralPath)shape).curveTo(32.917145, 27.0625, 39.9375, 23.536697, 39.9375, 19.21875);
((GeneralPath)shape).curveTo(39.9375, 19.005827, 39.84845, 18.801394, 39.8125, 18.59375);
((GeneralPath)shape).closePath();
g.setPaint(paint);
g.fill(shape);
g.setTransform(defaultTransform__0_0_7);
g.setComposite(AlphaComposite.getInstance(3, 1.0f * origAlpha));
AffineTransform defaultTransform__0_0_8 = g.getTransform();
g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.08838842809200287f, 0.1767760068178177f));
// _0_0_8
paint = new Color(255, 255, 255, 117);
shape = new GeneralPath();
((GeneralPath)shape).moveTo(8.57367, 25.593554);
((GeneralPath)shape).curveTo(8.57367, 26.154932, 7.960292, 26.61002, 7.2036505, 26.61002);
((GeneralPath)shape).curveTo(6.4470096, 26.61002, 5.833631, 26.154932, 5.833631, 25.593554);
((GeneralPath)shape).curveTo(5.833631, 25.032175, 6.4470096, 24.577087, 7.2036505, 24.577087);
((GeneralPath)shape).curveTo(7.960292, 24.577087, 8.57367, 25.032175, 8.57367, 25.593554);
((GeneralPath)shape).closePath();
g.setPaint(paint);
g.fill(shape);
g.setTransform(defaultTransform__0_0_8);
g.setComposite(AlphaComposite.getInstance(3, 1.0f * origAlpha));
AffineTransform defaultTransform__0_0_9 = g.getTransform();
g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 33.96704864501953f, 0.08838804066181183f));
// _0_0_9
paint = new Color(255, 255, 255, 117);
shape = new GeneralPath();
((GeneralPath)shape).moveTo(8.57367, 25.593554);
((GeneralPath)shape).curveTo(8.57367, 26.154932, 7.960292, 26.61002, 7.2036505, 26.61002);
((GeneralPath)shape).curveTo(6.4470096, 26.61002, 5.833631, 26.154932, 5.833631, 25.593554);
((GeneralPath)shape).curveTo(5.833631, 25.032175, 6.4470096, 24.577087, 7.2036505, 24.577087);
((GeneralPath)shape).curveTo(7.960292, 24.577087, 8.57367, 25.032175, 8.57367, 25.593554);
((GeneralPath)shape).closePath();
g.setPaint(paint);
g.fill(shape);
g.setTransform(defaultTransform__0_0_9);
g.setComposite(AlphaComposite.getInstance(3, 1.0f * origAlpha));
AffineTransform defaultTransform__0_0_10 = g.getTransform();
g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));
// _0_0_10
paint = new LinearGradientPaint(new Point2D.Double(12.37835693359375, 4.433135986328125), new Point2D.Double(44.096099853515625, 47.620635986328125), 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.0000002f,1,1,4.0f,null,0.0f);
shape = new GeneralPath();
((GeneralPath)shape).moveTo(11.642515, 8.415723);
((GeneralPath)shape).curveTo(11.040823, 8.415723, 10.649724, 8.695082, 10.409049, 9.22801);
((GeneralPath)shape).curveTo(10.409048, 9.22801, 3.994034, 25.818731, 3.994034, 25.818731);
((GeneralPath)shape).curveTo(3.994034, 25.818731, 3.7533574, 26.465246, 3.7533574, 27.533554);
((GeneralPath)shape).curveTo(3.7533574, 27.533554, 3.7533574, 36.82365, 3.7533574, 36.82365);
((GeneralPath)shape).curveTo(3.7533574, 38.17839, 4.1974134, 38.45055, 5.3478413, 38.45055);
((GeneralPath)shape).lineTo(43.034744, 38.45055);
((GeneralPath)shape).curveTo(44.357872, 38.45055, 44.56906, 38.13415, 44.56906, 36.613056);
((GeneralPath)shape).lineTo(44.56906, 27.322962);
((GeneralPath)shape).curveTo(44.56906, 27.322962, 44.67107, 26.58127, 44.478806, 26.059408);
((GeneralPath)shape).lineTo(37.885616, 9.253433);
((GeneralPath)shape).curveTo(37.707973, 8.760617, 37.334965, 8.427184, 36.86507, 8.415723);
((GeneralPath)shape).lineTo(11.642515, 8.415723);
((GeneralPath)shape).closePath();
g.setPaint(paint);
g.setStroke(stroke);
g.draw(shape);
g.setTransform(defaultTransform__0_0_10);
g.setComposite(AlphaComposite.getInstance(3, 1.0f * origAlpha));
AffineTransform defaultTransform__0_0_11 = g.getTransform();
g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));
// _0_0_11
paint = new Color(255, 255, 255, 108);
stroke = new BasicStroke(1.0000005f,2,0,4.0f,null,0.0f);
shape = new GeneralPath();
((GeneralPath)shape).moveTo(40.5, 31.429167);
((GeneralPath)shape).lineTo(40.5, 36.4501);
g.setPaint(paint);
g.setStroke(stroke);
g.draw(shape);
g.setTransform(defaultTransform__0_0_11);
g.setComposite(AlphaComposite.getInstance(3, 1.0f * origAlpha));
AffineTransform defaultTransform__0_0_12 = g.getTransform();
g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));
// _0_0_12
paint = new Color(255, 255, 255, 108);
stroke = new BasicStroke(1.0000005f,2,0,4.0f,null,0.0f);
shape = new GeneralPath();
((GeneralPath)shape).moveTo(38.5, 31.488943);
((GeneralPath)shape).lineTo(38.5, 36.509876);
g.setPaint(paint);
g.setStroke(stroke);
g.draw(shape);
g.setTransform(defaultTransform__0_0_12);
g.setComposite(AlphaComposite.getInstance(3, 1.0f * origAlpha));
AffineTransform defaultTransform__0_0_13 = g.getTransform();
g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));
// _0_0_13
paint = new Color(255, 255, 255, 108);
stroke = new BasicStroke(1.0000005f,2,0,4.0f,null,0.0f);
shape = new GeneralPath();
((GeneralPath)shape).moveTo(36.5, 31.488943);
((GeneralPath)shape).lineTo(36.5, 36.509876);
g.setPaint(paint);
g.setStroke(stroke);
g.draw(shape);
g.setTransform(defaultTransform__0_0_13);
g.setComposite(AlphaComposite.getInstance(3, 1.0f * origAlpha));
AffineTransform defaultTransform__0_0_14 = g.getTransform();
g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));
// _0_0_14
paint = new Color(255, 255, 255, 108);
stroke = new BasicStroke(1.0000005f,2,0,4.0f,null,0.0f);
shape = new GeneralPath();
((GeneralPath)shape).moveTo(34.5, 31.488943);
((GeneralPath)shape).lineTo(34.5, 36.509876);
g.setPaint(paint);
g.setStroke(stroke);
g.draw(shape);
g.setTransform(defaultTransform__0_0_14);
g.setComposite(AlphaComposite.getInstance(3, 1.0f * origAlpha));
AffineTransform defaultTransform__0_0_15 = g.getTransform();
g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));
// _0_0_15
paint = new Color(255, 255, 255, 108);
stroke = new BasicStroke(1.0000005f,2,0,4.0f,null,0.0f);
shape = new GeneralPath();
((GeneralPath)shape).moveTo(32.5, 31.488943);
((GeneralPath)shape).lineTo(32.5, 36.509876);
g.setPaint(paint);
g.setStroke(stroke);
g.draw(shape);
g.setTransform(defaultTransform__0_0_15);
g.setComposite(AlphaComposite.getInstance(3, 1.0f * origAlpha));
AffineTransform defaultTransform__0_0_16 = g.getTransform();
g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));
// _0_0_16
paint = new Color(255, 255, 255, 108);
stroke = new BasicStroke(1.0000005f,2,0,4.0f,null,0.0f);
shape = new GeneralPath();
((GeneralPath)shape).moveTo(30.5, 31.488943);
((GeneralPath)shape).lineTo(30.5, 36.509876);
g.setPaint(paint);
g.setStroke(stroke);
g.draw(shape);
g.setTransform(defaultTransform__0_0_16);
g.setComposite(AlphaComposite.getInstance(3, 0.09714286f * origAlpha));
AffineTransform defaultTransform__0_0_17 = g.getTransform();
g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));
// _0_0_17
paint = new Color(0, 0, 0, 255);
stroke = new BasicStroke(1.0000005f,2,0,4.0f,null,0.0f);
shape = new GeneralPath();
((GeneralPath)shape).moveTo(39.5, 31.479065);
((GeneralPath)shape).lineTo(39.5, 36.5);
g.setPaint(paint);
g.setStroke(stroke);
g.draw(shape);
g.setTransform(defaultTransform__0_0_17);
g.setComposite(AlphaComposite.getInstance(3, 0.09714286f * origAlpha));
AffineTransform defaultTransform__0_0_18 = g.getTransform();
g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));
// _0_0_18
paint = new Color(0, 0, 0, 255);
stroke = new BasicStroke(1.0000005f,2,0,4.0f,null,0.0f);
shape = new GeneralPath();
((GeneralPath)shape).moveTo(37.5, 31.538841);
((GeneralPath)shape).lineTo(37.5, 36.559776);
g.setPaint(paint);
g.setStroke(stroke);
g.draw(shape);
g.setTransform(defaultTransform__0_0_18);
g.setComposite(AlphaComposite.getInstance(3, 0.09714286f * origAlpha));
AffineTransform defaultTransform__0_0_19 = g.getTransform();
g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));
// _0_0_19
paint = new Color(0, 0, 0, 255);
stroke = new BasicStroke(1.0000005f,2,0,4.0f,null,0.0f);
shape = new GeneralPath();
((GeneralPath)shape).moveTo(35.5, 31.538841);
((GeneralPath)shape).lineTo(35.5, 36.559776);
g.setPaint(paint);
g.setStroke(stroke);
g.draw(shape);
g.setTransform(defaultTransform__0_0_19);
g.setComposite(AlphaComposite.getInstance(3, 0.09714286f * origAlpha));
AffineTransform defaultTransform__0_0_20 = g.getTransform();
g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));
// _0_0_20
paint = new Color(0, 0, 0, 255);
stroke = new BasicStroke(1.0000005f,2,0,4.0f,null,0.0f);
shape = new GeneralPath();
((GeneralPath)shape).moveTo(33.5, 31.538841);
((GeneralPath)shape).lineTo(33.5, 36.559776);
g.setPaint(paint);
g.setStroke(stroke);
g.draw(shape);
g.setTransform(defaultTransform__0_0_20);
g.setComposite(AlphaComposite.getInstance(3, 0.09714286f * origAlpha));
AffineTransform defaultTransform__0_0_21 = g.getTransform();
g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));
// _0_0_21
paint = new Color(0, 0, 0, 255);
stroke = new BasicStroke(1.0000005f,2,0,4.0f,null,0.0f);
shape = new GeneralPath();
((GeneralPath)shape).moveTo(31.5, 31.538841);
((GeneralPath)shape).lineTo(31.5, 36.559776);
g.setPaint(paint);
g.setStroke(stroke);
g.draw(shape);
g.setTransform(defaultTransform__0_0_21);
g.setComposite(AlphaComposite.getInstance(3, 0.44f * origAlpha));
AffineTransform defaultTransform__0_0_22 = g.getTransform();
g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));
// _0_0_22
paint = new Color(255, 255, 255, 255);
shape = new GeneralPath();
((GeneralPath)shape).moveTo(7.875, 31.1875);
((GeneralPath)shape).lineTo(7.875, 36.71875);
((GeneralPath)shape).lineTo(20.4375, 36.71875);
((GeneralPath)shape).lineTo(8.21875, 36.375);
((GeneralPath)shape).lineTo(7.875, 31.1875);
((GeneralPath)shape).closePath();
g.setPaint(paint);
g.fill(shape);
g.setTransform(defaultTransform__0_0_22);
g.setComposite(AlphaComposite.getInstance(3, 0.20571424f * origAlpha));
AffineTransform defaultTransform__0_0_23 = g.getTransform();
g.transform(new AffineTransform(1.037814974784851f, 0.0f, 0.0f, 1.0607470273971558f, -1.6328779458999634f, -2.094625949859619f));
// _0_0_23
paint = new LinearGradientPaint(new Point2D.Double(33.431175231933594, 31.96477699279785), new Point2D.Double(21.747974395751953, 11.780678749084473), new float[] {0.0f,0.5f,0.75f,0.84166664f,1.0f}, new Color[] {new Color(255, 255, 255, 255),new Color(230, 230, 230, 255),new Color(255, 255, 255, 255),new Color(225, 225, 225, 255),new Color(255, 255, 255, 255)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));
shape = new GeneralPath();
((GeneralPath)shape).moveTo(39.875, 19.5625);
((GeneralPath)shape).curveTo(39.875, 23.255905, 33.215237, 26.25, 25.0, 26.25);
((GeneralPath)shape).curveTo(16.784765, 26.25, 10.125, 23.255905, 10.125, 19.5625);
((GeneralPath)shape).curveTo(10.125, 15.869096, 16.784765, 12.875, 25.0, 12.875);
((GeneralPath)shape).curveTo(33.215237, 12.875, 39.875, 15.869096, 39.875, 19.5625);
((GeneralPath)shape).closePath();
g.setPaint(paint);
g.fill(shape);
g.setTransform(defaultTransform__0_0_23);
g.setTransform(defaultTransform__0_0);
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.0;
}
/**
* 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 6.96262788772583;
}
/**
* 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 48.0;
}
/**
* 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 35.314674377441406;
}
/**
* The current width of this resizable icon.
*/
private int width;
/**
* The current height of this resizable icon.
*/
private int height;
/**
* Creates a new transcoded SVG image.
*/
public Drive_harddisk() {
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;
}
@Override
public void setDimension(Dimension newDimension) {
this.width = newDimension.width;
this.height = newDimension.height;
}
@Override
public boolean isHiDpiAware() {
return true;
}
/*
* (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();
}
public static Drive_harddisk of(int width, int height) {
Drive_harddisk result = new Drive_harddisk();
result.width = width;
result.height = height;
return result;
}
}