java.lang.Object
com.amalgamasimulation.graphicaleditor.utils.Utils

public class Utils extends Object
  • Field Details

    • imagesCache

      public static Map<String,javafx.scene.image.Image> imagesCache
    • awtToFxColorsCache

      public static Map<Color,javafx.scene.paint.Color> awtToFxColorsCache
    • colorsWithOpacityCache

      public static Map<javafx.scene.paint.Color,Map<Double,javafx.scene.paint.Color>> colorsWithOpacityCache
    • transparentOpacity

      public static double transparentOpacity
    • defaultCreatedSegmentBeginNodeColor

      public static javafx.scene.paint.Color defaultCreatedSegmentBeginNodeColor
    • defaultNodeFillColor

      public static javafx.scene.paint.Color defaultNodeFillColor
    • defaultNodeStrokeColor

      public static javafx.scene.paint.Color defaultNodeStrokeColor
    • defaultHighlightedColor

      public static javafx.scene.paint.Color defaultHighlightedColor
    • defaultArcColor

      public static javafx.scene.paint.Color defaultArcColor
    • defaultSelectionColor

      public static javafx.scene.paint.Color defaultSelectionColor
  • Constructor Details

    • Utils

      public Utils()
  • Method Details

    • init

      @Inject @PostConstruct public void init(org.eclipse.e4.core.contexts.IEclipseContext context)
    • setColorOpacity

      public static javafx.scene.paint.Color setColorOpacity(javafx.scene.paint.Color color, double opacity)
    • convertColorAwtToFx

      public static javafx.scene.paint.Color convertColorAwtToFx(Color color)
    • getDistance

      public static double getDistance(double x1, double y1, double x2, double y2)
    • getDistance

      public static double getDistance(double x1, double y1, double z1, double x2, double y2, double z2)