Skip to content

Commit

Permalink
clear stroke area
Browse files Browse the repository at this point in the history
  • Loading branch information
DivineThreepwood committed Sep 10, 2024
1 parent 210e6a3 commit c87416d
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,17 @@

import de.jensd.fx.glyphs.materialdesignicons.MaterialDesignIcon;
import javafx.application.Platform;
import javafx.beans.binding.Bindings;
import javafx.beans.property.SimpleDoubleProperty;
import javafx.beans.property.SimpleObjectProperty;
import javafx.geometry.Pos;
import javafx.scene.Node;
import javafx.scene.Parent;
import javafx.scene.canvas.Canvas;
import javafx.scene.canvas.GraphicsContext;
import javafx.scene.control.Label;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.*;
import javafx.scene.text.TextAlignment;
import javafx.scene.transform.Affine;
import org.openbase.jul.iface.provider.LabelProvider;
import org.openbase.jul.processing.StringProcessor;
import org.openbase.jul.visual.javafx.geometry.svg.SVGGlyphIcon;
import org.openbase.jul.visual.javafx.iface.DynamicPane;
Expand Down Expand Up @@ -214,6 +212,12 @@ private void computeEmphasisState() {

@Override
public void updateDynamicContent() {
gc.clearRect(
-EmphasisControlTriangle.EMPHASIS_TRIANGLE_OUTER_LINE_STROKE,
-EmphasisControlTriangle.EMPHASIS_TRIANGLE_OUTER_LINE_STROKE,
canvas.getWidth()+ EmphasisControlTriangle.EMPHASIS_TRIANGLE_OUTER_LINE_STROKE,
canvas.getHeight()+EmphasisControlTriangle.EMPHASIS_TRIANGLE_OUTER_LINE_STROKE
);

scale = Math.min(canvas.getWidth(), canvas.getHeight()) / (EMPHASIS_TRIANGLE_OUTER_LINE + EmphasisControlTriangle.PADDING * 2);
// System.out.println("canvas.getWidth(): " + canvas.getWidth());
Expand Down

0 comments on commit c87416d

Please sign in to comment.