File tree Expand file tree Collapse file tree 2 files changed +16
-14
lines changed
src/main/java/net/itarray/automotion/internal Expand file tree Collapse file tree 2 files changed +16
-14
lines changed Original file line number Diff line number Diff line change 11package net .itarray .automotion .internal ;
22
3+ import net .itarray .automotion .internal .geometry .Scalar ;
34import net .itarray .automotion .internal .geometry .Vector ;
45import net .itarray .automotion .tools .helpers .Helper ;
56import net .itarray .automotion .validation .ResponsiveUIValidator ;
@@ -230,4 +231,15 @@ public DrawingConfiguration getDrawingConfiguration() {
230231 return getReport ().getDrawingConfiguration ();
231232 }
232233
234+ protected void drawVerticalLine (Scalar x ) {
235+ if (isWithReport ()) {
236+ drawableScreenshot .drawVerticalLine (x );
237+ }
238+ }
239+
240+ protected void drawHorizontalLine (Scalar y ) {
241+ if (isWithReport ()) {
242+ drawableScreenshot .drawHorizontalLine (y );
243+ }
244+ }
233245}
Original file line number Diff line number Diff line change @@ -613,28 +613,18 @@ protected void drawRootElement() {
613613 }
614614
615615 private void drawLeftOffsetLine () {
616- if (isWithReport ()) {
617- drawableScreenshot .drawVerticalLine (rootElement .getX ());
618- }
616+ drawVerticalLine (rootElement .getX ());
619617 }
620618
621619 private void drawRightOffsetLine () {
622- if (isWithReport ()) {
623- drawableScreenshot .drawVerticalLine (rootElement .getCorner ().getX ());
624- }
620+ drawVerticalLine (rootElement .getCorner ().getX ());
625621 }
626622
627623 private void drawTopOffsetLine () {
628- if (isWithReport ()) {
629- drawableScreenshot .drawHorizontalLine (rootElement .getY ());
630- }
624+ drawHorizontalLine (rootElement .getY ());
631625 }
632626
633627 private void drawBottomOffsetLine () {
634- if (isWithReport ()) {
635- drawableScreenshot .drawHorizontalLine (rootElement .getCorner ().getY ());
636- }
628+ drawHorizontalLine (rootElement .getCorner ().getY ());
637629 }
638-
639-
640630}
You can’t perform that action at this time.
0 commit comments