Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
272,400
void (@NotNull Function<? super JBCefClient, Void> setProperty) { CountDownLatch latchBefore = new CountDownLatch(1); CountDownLatch latchAfter = new CountDownLatch(1); JBCefBrowser browser = new JBCefBrowser("chrome:version"); setProperty.apply(browser.getJBCefClient()); JBCefJSQuery jsQuery_before = JBCefJSQuery.crea...
test
272,401
void () { TestScaleHelper.assumeStandalone(); var proxySettings = System.getProperty("idea.test.proxy.settings"); assumeTrue("'idea.test.proxy.settings' not set", proxySettings != null); var matcher = Pattern.compile("(\\w+):([^@]+)@([^:]+):(\\d+)").matcher(proxySettings); // 'user:pass@host:port' assertTrue("cannot pa...
before
272,402
void () { TestScaleHelper.restoreSystemProperties(); }
after
272,403
void (CefBrowser browser, CefFrame frame, int httpStatusCode) { System.out.println("JBCefProxyTest.onLoadEnd: " + browser.getURL() + ", status: " + httpStatusCode); if (frame.getURL().contains(TEST_HOST)) { statusCode.set(httpStatusCode); latch.countDown(); } }
onLoadEnd
272,404
void (CefBrowser browser, CefFrame frame, ErrorCode errorCode, String errorText, String failedUrl) { System.out.println("JBCefProxyTest.onLoadError: " + failedUrl + ", error: " + errorText); }
onLoadError
272,405
void () { TestScaleHelper.assumeStandalone(); }
before
272,406
void () { TestScaleHelper.restoreSystemProperties(); }
after
272,407
void () { CountDownLatch latch = new CountDownLatch(1); JBCefBrowser jbCefBrowser = new JBCefBrowser("http://maps.google.com"); // heavy page jbCefBrowser.setErrorPage(JBCefBrowserBase.ErrorPage.DEFAULT); jbCefBrowser.getJBCefClient().addLoadHandler(new CefLoadHandlerAdapter() { @Override public void onLoadStart(CefBro...
test
272,408
void (CefBrowser browser, CefFrame frame, CefRequest.TransitionType transitionType) { System.out.println("JBCefLoadHtmlTest.onLoadStarted: " + browser.getURL()); if (browser.getURL().contains("google")) { // cancel loading and start another one jbCefBrowser.getCefBrowser().stopLoad(); jbCefBrowser.loadURL("chrome:versi...
onLoadStart
272,409
void (CefBrowser browser, CefFrame frame, int httpStatusCode) { System.out.println("JBCefLoadHtmlTest.onLoadEnd: " + browser.getURL()); if (frame.getURL().contains("version")) { latch.countDown(); } }
onLoadEnd
272,410
void (CefBrowser browser, CefFrame frame, ErrorCode errorCode, String errorText, String failedUrl) { System.out.println("JBCefLoadHtmlTest.onLoadError: " + browser.getURL()); }
onLoadError
272,411
void () { TestScaleHelper.assumeStandalone(); }
before
272,412
void () { TestScaleHelper.restoreProperties(); }
after
272,413
void (CefBrowser browser, boolean isLoading, boolean canGoBack, boolean canGoForward) { System.out.println("JBCefLoadHtmlTest.onLoadingStateChange"); }
onLoadingStateChange
272,414
void (CefBrowser browser, CefFrame frame, CefRequest.TransitionType transitionType) { System.out.println("JBCefLoadHtmlTest.onLoadStart"); }
onLoadStart
272,415
void (CefBrowser browser, CefFrame frame, int httpStatusCode) { System.out.println("JBCefLoadHtmlTest.onLoadEnd"); }
onLoadEnd
272,416
void (CefBrowser browser, CefFrame frame, ErrorCode errorCode, String errorText, String failedUrl) { System.out.println("JBCefLoadHtmlTest.onLoadError"); }
onLoadError
272,417
void (WindowEvent e) { browser.loadHTML(HTML, HTML_URL); }
windowOpened
272,418
void () { TestScaleHelper.assumeStandalone(); TestScaleHelper.setSystemProperty("java.awt.headless", "false"); }
before
272,419
void () { TestScaleHelper.restoreProperties(); }
after
272,420
void () { new MyBrowser(); new MyBrowser(); }
test
272,421
void () { TestScaleHelper.assumeStandalone(); TestScaleHelper.setSystemProperty("ide.browser.jcef.jsQueryPoolSize", "1"); }
before
272,422
void () { TestScaleHelper.restoreProperties(); }
after
272,423
void () { JBCefJSQueryPoolSizePropTest.test(b -> null); }
test1
272,424
void () { CategoryLineDataset<Double> dataset = LineDataset.of(-1.0, 0.0, 1.0, 2.0, 3.0); Iterable<Coordinates<Integer, Double>> data = dataset.getData(); Iterator<Coordinates<Integer, Double>> iterator = data.iterator(); Assert.assertTrue(data instanceof ArrayList); Assert.assertEquals(Coordinates.of(0, -1.0), iterato...
createCategoryDatasetTest
272,425
void () { Integer[] xs = {-1, 0, 1}; Double[] ys = {-100.0, 0.0, 100.0}; XYLineDataset<Integer, Double> dataset = LineDataset.of(xs, ys); Iterable<Coordinates<Integer, Double>> data = dataset.getData(); Iterator<Coordinates<Integer, Double>> iterator = data.iterator(); Assert.assertTrue(data instanceof ArrayList); Asse...
createXYDatasetTest
272,426
void () { CategoryLineChart<Double> chart = LineChart.of(1.0, 2.0, 3.0, 4.0, 5.0); CategoryLineDataset<Double> negativeValues = LineDataset.of(-1.0, -2.0, -3.0, -4.0, -5.0); chart.getDatasets().add(negativeValues); MinMax<Integer, Double> xy = chart.findMinMax(); Assert.assertEquals(2, chart.getDatasets().size()); Asse...
fastCreateLineChartTest
272,427
void () { Double[] doubles = {1.0, 2.0, 3.0, 4.0, 5.0}; CategoryLineChart<Double> chart = LineChart.of(doubles); AtomicInteger counter = new AtomicInteger(); final Consumer<GridLine<Integer, Double, ?>> common = gridline -> { MinMax<Integer, Double> xy = gridline.getXY(); Assert.assertEquals(Integer.valueOf(0), xy.xMin...
gridLineChartTest
272,428
void () { XYLineDataset<Double, Double> maxValuesDataset = new XYLineDataset<>(); maxValuesDataset.setLabel("MAX VALUES"); XYLineDataset<Double, Double> minValuesDataset = new XYLineDataset<>(); minValuesDataset.setLabel("MIN VALUES"); XYLineChart<Double, Double> chart = LineChart.of(maxValuesDataset, minValuesDataset)...
dynamicUpdateTest
272,429
void () { XYLineChart<Integer, Double> chart = LineChart.of(new XYLineDataset<>()); ChartUtils.generator(45).prepare(-360, 360).forEach(value -> { chart.getDataset().add(Coordinates.of(value, Math.sin(Math.toRadians(value)))); }); MinMax<Integer, Double> xy = chart.findMinMax(); Assert.assertEquals(Integer.valueOf(-360...
customGeneratorDataset
272,430
void () { super.test(); }
test
272,431
ScalableIcon (ScaleContext ctx, Icon... cellIcons) { LayeredIcon icon = new LayeredIcon(2); icon.setIcon(cellIcons[0], 0); icon.setIcon(cellIcons[1], 1, JBUIScale.scale(10), JBUIScale.scale(6)); return icon; }
createCompositeIcon
272,432
String (ScaleContext ctx) { return PlatformTestUtil.getPlatformTestDataPath() + "ui/gold_LayeredIcon@" + (int)ctx.getScale(PIX_SCALE) + "x.png"; }
getGoldImagePath
272,433
boolean () { return false; }
shouldSaveGoldImage
272,434
String[] () { String platformTestDataPath = PlatformTestUtil.getPlatformTestDataPath(); return new String[] { platformTestDataPath + "ui/db_set_breakpoint.png", platformTestDataPath + "ui/question_badge.png" }; }
getCellIconsPaths
272,435
void (float scale) { JBUIScale.setUserScaleFactor(scale); // 1) create unscaled EmptyIcon icon = EmptyIcon.create(SIZE); assertEquals(SIZE, icon.getIconWidth(), MSG); // 2) created scaled icon = EmptyIcon.create(JBUIScale.scale(SIZE)); assertEquals(JBUIScale.scale(SIZE), icon.getIconWidth(), MSG); // 3) create unscaled...
test
272,436
String () { return PlatformTestUtil.getPlatformTestDataPath() + "ui/run.svg"; }
getSvgIconPath
272,437
Path () { return Path.of(PlatformTestUtil.getPlatformTestDataPath() + "ui/gold_run@2.4x.png"); }
getGoldImagePath
272,438
void (@NotNull Icon icon, @NotNull UserScaleContext iconUserContext) { //((ScaleContextAware)icon).updateScaleContext(iconUserContext); ScaleContext iconContext = ScaleContext.Companion.create(iconUserContext); /* * (A) normal conditions */ //noinspection UnnecessaryLocalVariable Icon iconA = icon; double usrSize2D = i...
test
272,439
void (@NotNull Icon icon, @Nullable ScaleContext ctx, int usrSize, int devSize, @NotNull String testDescription) { assertThat(icon.getIconWidth()).describedAs(testDescription + ": unexpected icon user width").isEqualTo(usrSize); assertThat(icon.getIconHeight()).describedAs(testDescription + ": unexpected icon user heig...
assertIcon
272,440
Path () { return Path.of(PlatformTestUtil.getPlatformTestDataPath() + "ui/abstractClass.svg"); }
getIconPath
272,441
void (BufferedImage bi, int x, int y) { Color dstColor = new Color(bi.getRGB(x, y)); assertEquals("color mismatch at [" + x + ", " + y + "]", expectedColor, dstColor); }
test
272,442
void () { for (double scale : new double[] {1, 2, 2.5}) { overrideJreHiDPIEnabled(true); JBUIScale.setUserScaleFactor((float)1); test(scale); overrideJreHiDPIEnabled(false); JBUIScale.setUserScaleFactor((float)scale); test(scale); } }
test
272,443
void (double scale) { source = RetinaImage.createFrom(supplyImage(scale, IMAGE_SIZE, IMAGE_SIZE, IMAGE_QUARTER_COLORS, false).first, JreHiDpiUtil.isJreHiDPIEnabled() ? scale : 1, null); // // 1) draw one to one // TestColor[] colors = new TestColor[] { new TestColor(0, 0), new TestColor(1, 0), new TestColor(0, 1), new ...
test
272,444
void (Dest dest, Rectangle dstBounds, Rectangle srcBounds, TestColor[] testColors) { UIUtil.drawImage(dest.gr, source, dstBounds, srcBounds, null); for (TestColor t : testColors) t.test(); dest.dispose(); }
testDrawImage
272,445
Rectangle () { return bounds(0, 0, JBUIScale.scale(IMAGE_SIZE)); }
bounds
272,446
Rectangle (int col, int row) { return bounds(col, row, JBUIScale.scale(IMAGE_QUARTER_SIZE)); }
bounds
272,447
Rectangle (int col, int row, int size) { return new Rectangle(col * size, row * size, size, size); }
bounds
272,448
void () { JBUIScale.setUserScaleFactor((float)1); JBValue value1 = JBUI.value(2); JBValue value2 = JBUI.value(2.6f); JBValue value3 = JBUI.value(2.9f); JBUIScale.setUserScaleFactor((float)2); assertEquals(JBUIScale.scale(2), value1.get()); assertEquals(Math.round(JBUIScale.scale(2.6f)), value2.get()); assertEquals(JBUI...
testSeparateValue
272,449
void () { JBUIScale.setUserScaleFactor((float)1); JBValueGroup group = new JBValueGroup(); JBValue value1 = group.value(1); JBValue value2 = group.value(2); JBValue value3 = group.value(3.6f); JBUIScale.setUserScaleFactor((float)2); assertEquals(JBUIScale.scale(1), value1.get()); assertEquals(JBUIScale.scale(2), value2...
testGroup
272,450
void () { JBUIScale.setUserScaleFactor((float)1); String key = "JBValue.int"; String absentKey = "JBValue.absent"; UIManager.put(key, 2); JBValue value1 = JBUI.uiIntValue(key, 1); JBValue value2 = JBUI.uiIntValue(absentKey, 1); JBUIScale.setUserScaleFactor((float)2); assertEquals(JBUIScale.scale(2), value1.get()); asse...
testUIInteger
272,451
void () { super.test(); }
test
272,452
ScalableIcon (ScaleContext ctx, Icon... cellIcons) { return (ScalableIcon)IconUtil.textToIcon(TEXT, TestScaleHelper.createComponent(ctx), JBUIScale.scale(FONT_SIZE)); }
createCompositeIcon
272,453
void (ScaleContext ctx) { // The test may depend on a physical font which may vary b/w platforms. By this reason, there's a preset map // b/w ScaleContext's and the tested string with. If the font on this platform doesn't fit the preset, // then the test silently interrupts. Font font = JBFont.create(JBFont.label().der...
assume
272,454
String (ScaleContext ctx) { int usrScale = (int)(ctx.apply(1, DerivedScaleType.EFF_USR_SCALE)); int sysScale = (int)(ctx.getScale(ScaleType.SYS_SCALE)); return PlatformTestUtil.getPlatformTestDataPath() + "ui/gold_TextIcon@" + usrScale + "x" + sysScale + "x.png"; }
getGoldImagePath
272,455
boolean () { return false; }
shouldSaveGoldImage
272,456
String[] () { return ArrayUtil.EMPTY_STRING_ARRAY; // just pretends to be composite }
getCellIconsPaths
272,457
void () { final ScaleContext origContext = ScaleContext.create(); Consumer<ScaleType> test = type -> { double overriddenScale = origContext.getScale(type) + 1; origContext.overrideScale(type.of(overriddenScale)); // Test (A) 'setScale' origContext.setScale(type.of(overriddenScale + 1)); assertThat(origContext.getScale(...
testOverrideScale
272,458
void (@NotNull ScaleContext context1, @NotNull ScaleContext context2) { Consumer<ScaleType> test = type -> { assertThat(context1.getScale(type)). describedAs("the scale type: " + type). isEqualTo(context2.getScale(type)); }; test.accept(USR_SCALE); test.accept(SYS_SCALE); test.accept(OBJ_SCALE); }
assertContext
272,459
void () { super.test(); }
test
272,460
ScalableIcon (ScaleContext ctx, Icon... cellIcons) { return new OffsetIcon(cellIcons[0].getIconWidth(), cellIcons[0]); }
createCompositeIcon
272,461
String (ScaleContext ctx) { return PlatformTestUtil.getPlatformTestDataPath() + "ui/gold_OffsetIcon@" + (int)ctx.getScale(DerivedScaleType.PIX_SCALE) + "x.png"; }
getGoldImagePath
272,462
boolean () { return false; }
shouldSaveGoldImage
272,463
String[] () { return new String[] { PlatformTestUtil.getPlatformTestDataPath() + "ui/db_set_breakpoint.png" }; }
getCellIconsPaths
272,464
ScalableIcon (ScaleContext ctx, Icon... cellIcons) { RowIcon icon = new RowIcon(2); icon.setIcon(cellIcons[0], 0); icon.setIcon(cellIcons[1], 1); return icon; }
createCompositeIcon
272,465
String (ScaleContext ctx) { return PlatformTestUtil.getPlatformTestDataPath() + "ui/gold_RowIcon@" + (int)ctx.getScale(PIX_SCALE) + "x.png"; }
getGoldImagePath
272,466
void () { overrideJreHiDPIEnabled(true); BiFunction<Integer, Integer, Integer> bit2scale = (mask, bit) -> ((mask >> bit) & 0x1) + 1; for (int mask = 0; mask < 7; mask++) { int iconScale = bit2scale.apply(mask, 2); int usrScale = bit2scale.apply(mask, 1); int sysScale = bit2scale.apply(mask, 0); assert iconScale * usrSc...
test
272,467
void (final ScaleContext ctx) { assume(ctx); JBUIScale.setUserScaleFactor((float)ctx.getScale(USR_SCALE)); ScaleContext ctx_noObjScale = ctx.copy(); ctx_noObjScale.setScale(OBJ_SCALE.of(1)); String[] cellIconsPaths = getCellIconsPaths(); int count = cellIconsPaths.length; CachedImageIcon[] cellIcons = new CachedImageIc...
test
272,468
void (Icon icon, ScaleContext ctx) { Pair<BufferedImage, Graphics2D> pair = createImageAndGraphics(ctx.getScale(SYS_SCALE), icon.getIconWidth(), icon.getIconHeight()); BufferedImage iconImage = pair.first; Graphics2D g2d = pair.second; icon.paintIcon(null, g2d, 0, 0); if (shouldSaveGoldImage()) { saveImage(iconImage, g...
test
272,469
void (ScaleContext ctx) { }
assume
272,470
void () { }
beforeClass
272,471
String () { return PlatformTestUtil.getPlatformTestDataPath() + "ui/abstractClass.svg"; }
getSvgIconPath
272,472
Path () { return Path.of(PlatformTestUtil.getPlatformTestDataPath() + "ui/gold_abstractClass@2x.png"); }
getGoldImagePath
272,473
void (float userScale) { JBUIScale.setUserScaleFactor(userScale); test(ScaleContext.create(ScaleType.SYS_SCALE.of(2))); test(ScaleContext.create(ScaleType.SYS_SCALE.of(3))); }
test
272,474
void (ScaleContext ctx) { System.out.println("ScaleContext: " + ctx); BufferedImage image = TestScaleHelper.loadImage(Path.of(PlatformTestUtil.getPlatformTestDataPath() + "ui/myIcon_20x10_dataScaled@2x.svg"), ctx); assertNotNull(image); double scale = ctx.getScale(DerivedScaleType.PIX_SCALE) / 2 /* count the icon's @2x...
test
272,475
void () { overrideJreHiDPIEnabled(true); @SuppressWarnings("UndesirableClassUsage") Graphics2D g = new BufferedImage(10, 10, BufferedImage.TYPE_INT_ARGB).createGraphics(); try { g.scale(2, 2); assertTrue(PaintUtil.getParityMode(1, g).even()); assertTrue(PaintUtil.getParityMode(1.1, ScaleContext.create(g), null).even())...
test
272,476
void () { ImageComparator comparator = new ImageComparator( new AASmootherComparator(0.15, 0.5, Color.BLACK)); // 1) IDE-HiDPI for (int scale : getScales()) testGolden(comparator, scale, false); // 2) JRE-HiDPI for (int scale : getScales()) testGolden(comparator, scale, true); // 3) Boundary values supplyGraphics(2, 10...
testGoldenImages
272,477
void (ImageComparator comparator, int scale, boolean jreHiDPIEnabled) { overrideJreHiDPIEnabled(jreHiDPIEnabled); float scale1 = jreHiDPIEnabled ? 1 : scale; JBUIScale.setUserScaleFactor(scale1); BufferedImage image = supplyGraphics(scale, getImageSize().width, getImageSize().height, this::paint); //saveImage(image, ge...
testGolden
272,478
BufferedImage (double scale, int width, int height, Function<? super Graphics2D, Void> consumeGraphics) { @SuppressWarnings("UndesirableClassUsage") BufferedImage image = new BufferedImage((int)ceil(width * scale), (int)ceil(height * scale), BufferedImage.TYPE_INT_ARGB); Graphics2D g = image.createGraphics(); try { dou...
supplyGraphics
272,479
Void (Graphics2D g) { double[][] values = { {0, 0, 0, 0}, {Double.MAX_VALUE, Double.MAX_VALUE, Double.MAX_VALUE, Double.MAX_VALUE}, {-Double.MAX_VALUE, -Double.MAX_VALUE, -Double.MAX_VALUE, -Double.MAX_VALUE}, }; for (double[] v : values) paintBoundaries(g, v); return null; }
testBoundaries
272,480
void (BufferedImage img1, BufferedImage img2, ImageComparator comparator, double scale) { comparator.compareAndAssert(img1, img2, "images mismatch: JreHiDPIEnabled=" + JreHiDpiUtil.isJreHiDPIEnabled() + "; scale=" + scale + "; "); }
compare
272,481
Path (int scale) { return Path.of(PlatformTestUtil.getPlatformTestDataPath() + "ui/paint/" + getGoldenImageName() + (scale > 1 && JreHiDpiUtil.isJreHiDPIEnabled() ? "_hd@" : "@") + scale + "x.png"); }
getGoldenImagePath
272,482
boolean (int argb1, int argb2) { if (argb1 == argb2) return true; if (argb1 == backgroundRGB || argb2 == backgroundRGB) { return dist(argb1, argb2) <= backgroundColorsDist; } return dist(argb1, argb2) <= inputColorsDist; }
compare
272,483
double (int argb1, int argb2) { double[] comp = diff(argb1, argb2); // normalize dist to [0..1] return Math.sqrt((comp[0] * comp[0] + comp[1] * comp[1] + comp[2] * comp[2] + comp[3] * comp[3]) / comp.length); }
dist
272,484
double[] (int argb1, int argb2) { double a1 = a(argb1); double a2 = a(argb2); return new double[] { Math.abs(a1 * a1 - a2 * a2), Math.abs(r(argb1) * a1 - r(argb2) * a2), Math.abs(g(argb1) * a1 - g(argb2) * a2), Math.abs(b(argb1) * a1 - b(argb2) * a2) }; }
diff
272,485
double (int argb) { return ((argb >> 24) & 0xFF) / 255d; }
a
272,486
double (int argb) { return ((argb >> 16) & 0xFF) / 255d; }
r
272,487
double (int argb) { return ((argb >> 8) & 0xFF) / 255d; }
g
272,488
double (int argb) { return (argb & 0xFF) / 255d; }
b
272,489
void (@Nullable ColorComparator colorComparator, @NotNull Image img1, @NotNull Image img2, @Nullable String errMsgPrefix) { new ImageComparator(colorComparator).compareAndAssert(img1, img2, errMsgPrefix); }
compareAndAssert
272,490
void (@NotNull Image img1, @NotNull Image img2, @Nullable String errMsgPrefix) { StringBuilder sb = new StringBuilder(errMsgPrefix == null ? "images mismatch: " : errMsgPrefix); if (!compare(img1, img2, sb)) { throw new AssertionError(sb.toString()); } }
compareAndAssert
272,491
boolean (@NotNull Image img1, @NotNull Image img2, @Nullable /*OUT*/StringBuilder reason) { int[] d1 = getArgbData(img1); int[] d2 = getArgbData(img2); if (d1.length != d2.length) { if (reason != null) //noinspection StringConcatenationInsideStringBufferAppend reason.append("size mismatch: " + "[" + img1.getWidth(null)...
compare
272,492
int[] (@NotNull Image image) { DataBuffer buffer = image instanceof BufferedImage ? ((BufferedImage)image).getRaster().getDataBuffer() : null; if (buffer instanceof DataBufferInt) { return ((DataBufferInt)buffer).getData(); } else { @SuppressWarnings("UndesirableClassUsage") BufferedImage convertedImage = new BufferedI...
getArgbData
272,493
void () { super.testGoldenImages(); }
testGoldenImages
272,494
void () { JBUIScale.setUserScaleFactor((float)1); overrideJreHiDPIEnabled(false); supplyGraphics(1, 1, 1, LinePainter2DTest::testAlign); overrideJreHiDPIEnabled(true); supplyGraphics(2, 1, 1, LinePainter2DTest::testAlign); }
testAlign
272,495
Void (Graphics2D g) { double scale = ScaleContext.create(g).getScale(PIX_SCALE); String msg = "LinePainter2D.align is incorrect (JreHiDPIEnabled: " + JreHiDpiUtil.isJreHiDPIEnabled() + "; scale: " + scale + ")"; double delta = 0.000001; boolean jhd = JreHiDpiUtil.isJreHiDPIEnabled(); // HORIZONTAL Line2D line = LinePai...
testAlign
272,496
Void (Graphics2D g) { paintLines(g, StrokeType.CENTERED, LINE_LEN + 2, LINE_LEN + 2); paintLines(g, StrokeType.CENTERED_CAPS_SQUARE, LINE_LEN * 2 + 2, 0); paintLines(g, StrokeType.INSIDE, LINE_LEN * 2 + 2, 0); paintLines(g, StrokeType.OUTSIDE, LINE_LEN * 2 + 2, 0); return null; }
paint
272,497
void (Graphics2D g, StrokeType type, float trX, float trY) { g.translate(JBUIScale.scale(trX), JBUIScale.scale(trY)); Object aa = RenderingHints.VALUE_ANTIALIAS_ON; paintLine(g, 0, 0, 0, 0, type, 1, aa); // a dot paintLine(g, 0, -2, 0, -LINE_LEN, type, 1, aa); paintLine(g, 2, -2, LINE_LEN, -LINE_LEN, type, 1, aa); pain...
paintLines
272,498
void (Graphics2D g, double x1, double y1, double x2, double y2, StrokeType strokeType, double strokeWidth, Object valueAA) { strokeWidth = JBUIScale.scale((float)strokeWidth); x1 = JBUIScale.scale((float)x1); y1 = JBUIScale.scale((float)y1); x2 = JBUIScale.scale((float)x2); y2 = JBUIScale.scale((float)y2); LinePainter2...
paintLine
272,499
void (Graphics2D g, double[] values) { LinePainter2D.paint(g, values[0], values[1], values[2], values[3]); }
paintBoundaries