Class World

java.lang.Object
javafx.scene.Node
javafx.scene.Parent
javafx.scene.layout.Region
eu.hansolo.fx.charts.world.World
All Implemented Interfaces:
javafx.css.Styleable, javafx.event.EventTarget

@DefaultProperty("children") public class World extends javafx.scene.layout.Region
Created by hansolo on 22.11.16.
  • Property Summary

    Properties
    Type
    Property
    Description
    javafx.beans.property.ObjectProperty<javafx.scene.paint.Color>
     
    javafx.beans.property.ObjectProperty<javafx.scene.paint.Color>
     
    javafx.beans.property.BooleanProperty
     
    javafx.beans.property.ObjectProperty<javafx.scene.paint.Color>
     
    javafx.beans.property.BooleanProperty
     
    javafx.beans.property.ObjectProperty<javafx.scene.paint.Color>
     
    javafx.beans.property.ObjectProperty<javafx.scene.paint.Color>
     
    javafx.beans.property.DoubleProperty
     
    javafx.beans.property.ObjectProperty<javafx.scene.paint.Color>
     
    javafx.beans.property.ObjectProperty<eu.hansolo.fx.countries.Country>
     
    javafx.beans.property.BooleanProperty
     
    javafx.beans.property.ObjectProperty<javafx.scene.paint.Color>
     
    javafx.beans.property.BooleanProperty
     

    Properties inherited from class javafx.scene.layout.Region

    background, border, cacheShape, centerShape, height, insets, maxHeight, maxWidth, minHeight, minWidth, opaqueInsets, padding, prefHeight, prefWidth, scaleShape, shape, snapToPixel, width

    Properties inherited from class javafx.scene.Parent

    needsLayout

    Properties inherited from class javafx.scene.Node

    accessibleHelp, accessibleRoleDescription, accessibleRole, accessibleText, blendMode, boundsInLocal, boundsInParent, cacheHint, cache, clip, cursor, depthTest, disabled, disable, effectiveNodeOrientation, effect, eventDispatcher, focused, focusTraversable, focusVisible, focusWithin, hover, id, inputMethodRequests, layoutBounds, layoutX, layoutY, localToParentTransform, localToSceneTransform, managed, mouseTransparent, nodeOrientation, onContextMenuRequested, onDragDetected, onDragDone, onDragDropped, onDragEntered, onDragExited, onDragOver, onInputMethodTextChanged, onKeyPressed, onKeyReleased, onKeyTyped, onMouseClicked, onMouseDragEntered, onMouseDragExited, onMouseDragged, onMouseDragOver, onMouseDragReleased, onMouseEntered, onMouseExited, onMouseMoved, onMousePressed, onMouseReleased, onRotate, onRotationFinished, onRotationStarted, onScrollFinished, onScroll, onScrollStarted, onSwipeDown, onSwipeLeft, onSwipeRight, onSwipeUp, onTouchMoved, onTouchPressed, onTouchReleased, onTouchStationary, onZoomFinished, onZoom, onZoomStarted, opacity, parent, pickOnBounds, pressed, rotate, rotationAxis, scaleX, scaleY, scaleZ, scene, style, translateX, translateY, translateZ, viewOrder, visible
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected javafx.event.EventHandler<javafx.scene.input.MouseEvent>
     
    protected javafx.event.EventHandler<javafx.scene.input.MouseEvent>
     
    protected javafx.event.EventHandler<javafx.scene.input.MouseEvent>
     
    protected javafx.event.EventHandler<javafx.scene.input.MouseEvent>
     

    Fields inherited from class javafx.scene.layout.Region

    USE_COMPUTED_SIZE, USE_PREF_SIZE

    Fields inherited from class javafx.scene.Node

    BASELINE_OFFSET_SAME_AS_HEIGHT
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    World(World.Resolution RESOLUTION)
     
    World(World.Resolution RESOLUTION, eu.hansolo.fx.heatmap.Mapping COLOR_MAPPING, double EVENT_RADIUS, boolean FADE_COLORS, eu.hansolo.fx.heatmap.OpacityDistribution OPACITY_DISTRIBUTION, double HEAT_MAP_OPACITY)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addLocation(eu.hansolo.toolboxfx.geom.Location LOCATION)
     
    void
    addLocations(eu.hansolo.toolboxfx.geom.Location... LOCATIONS)
     
    void
    addMapConnections(MapConnection... MAP_CONNECTIONS)
     
    void
     
    void
    addMapPoints(MapPoint... MAP_POINTS)
     
    void
    addMapPoints(List<MapPoint> MAP_POINTS)
     
    void
    addSpot(double X, double Y)
    If you don't need to weight events you could use this method which will create events that always use the global weight
    void
    addSpot(double X, double Y, double OFFSET_X, double OFFSET_Y, double RADIUS, eu.hansolo.fx.heatmap.OpacityDistribution OPACITY_GRADIENT)
    Visualizes an event with the given radius and opacity gradient
    void
    addSpot(double X, double Y, javafx.scene.image.Image EVENT_IMAGE, double OFFSET_X, double OFFSET_Y)
    Visualizes an event with a given image at the given position and with the given offset.
    void
    addSpots(eu.hansolo.toolboxfx.geom.Point... SPOTS)
     
    void
    addSpots(List<eu.hansolo.toolboxfx.geom.Point> SPOTS)
    Add a list of events and update the heatmap after all events have been added
    void
    animateImageAlongConnection(javafx.scene.image.Image IMAGE, MapConnection CONNECTION)
     
    javafx.beans.property.ObjectProperty<javafx.scene.paint.Color>
     
    void
    Calling this method will lead to a clean new heat map without any data
    void
     
    void
     
    void
     
    protected double
    computeMaxHeight(double WIDTH)
     
    protected double
    computeMaxWidth(double HEIGHT)
     
    protected double
    computeMinHeight(double WIDTH)
     
    protected double
    computeMinWidth(double HEIGHT)
     
    protected double
    computePrefHeight(double WIDTH)
     
    protected double
    computePrefWidth(double HEIGHT)
     
    javafx.beans.property.ObjectProperty<javafx.scene.paint.Color>
     
    boolean
     
    javafx.scene.paint.Color
    Gets the value of the property backgroundColor.
    javafx.collections.ObservableList<javafx.scene.Node>
     
    static List<javafx.css.CssMetaData<? extends javafx.css.Styleable,?>>
     
    eu.hansolo.fx.heatmap.Mapping
    Returns the used color mapping with the gradient that is used to visualize the data
    double
     
     
    List<javafx.css.CssMetaData<? extends javafx.css.Styleable,?>>
     
    boolean
     
    javafx.scene.paint.Color
    Gets the value of the property fillColor.
    eu.hansolo.fx.heatmap.HeatMap
     
    double
     
    javafx.scene.paint.Color
    Gets the value of the property hoverColor.
    javafx.scene.paint.Color
    Gets the value of the property locationColor.
     
     
     
    boolean
     
    boolean
     
    eu.hansolo.fx.heatmap.OpacityDistribution
    Returns the opacity distribution that will be used to visualize the events in the monochrome map.
    javafx.scene.paint.Color
    Gets the value of the property pressedColor.
    double
    Gets the value of the property scaleFactor.
    javafx.scene.paint.Color
    Gets the value of the property selectedColor.
    eu.hansolo.fx.countries.Country
    Gets the value of the property selectedCountry.
    double
    Returns the radius of the circle that is used to visualize an event.
    javafx.scene.paint.Color
    Gets the value of the property strokeColor.
    javafx.scene.paint.Color
     
    javafx.animation.Timeline
     
     
    boolean
     
     
    javafx.beans.property.BooleanProperty
     
    javafx.beans.property.ObjectProperty<javafx.scene.paint.Color>
     
    javafx.beans.property.BooleanProperty
     
    boolean
    Returns true if the heat map is used to visualize frequencies (default)
    boolean
    Gets the value of the property heatMapVisible.
    boolean
    Gets the value of the property hoverEnabled.
    boolean
    Gets the value of the property selectionEnabled.
    boolean
    Gets the value of the property zoomEnabled.
    static double[]
    latLonToXY(double LATITUDE, double LONGITUDE)
     
    javafx.beans.property.ObjectProperty<javafx.scene.paint.Color>
     
    javafx.beans.property.ObjectProperty<javafx.scene.paint.Color>
     
    void
    removeLocation(eu.hansolo.toolboxfx.geom.Location LOCATION)
     
    void
     
    javafx.beans.property.DoubleProperty
     
    javafx.beans.property.ObjectProperty<javafx.scene.paint.Color>
     
    javafx.beans.property.ObjectProperty<eu.hansolo.fx.countries.Country>
     
    javafx.beans.property.BooleanProperty
     
    void
    setArrowsVisible(boolean VISIBLE)
     
    void
    setBackgroundColor(javafx.scene.paint.Color COLOR)
    Sets the value of the property backgroundColor.
    void
    setColorMapping(eu.hansolo.fx.heatmap.Mapping COLOR_MAPPING)
    The ColorMapping enum contains some examples for color mappings that might be useful to visualize data and here you could set the one you like most.
    void
    setConnectionWidth(double WIDTH)
     
    void
    setDrawImagePath(boolean DRAW_IMAGE_PATH)
     
    void
    setFadeColors(boolean FADE_COLORS)
    If true each event will be visualized by a radial gradient with the colors from the given color mapping and decreasing opacity from the inside to the outside.
    void
    setFillColor(javafx.scene.paint.Color COLOR)
    Sets the value of the property fillColor.
    void
    setHeatMapOpacity(double OPACITY)
     
    void
    setHeatMapToTop(boolean TO_TOP)
     
    void
    setHeatMapVisible(boolean VISIBLE)
    Sets the value of the property heatMapVisible.
    void
    setHoverColor(javafx.scene.paint.Color COLOR)
    Sets the value of the property hoverColor.
    void
    setHoverEnabled(boolean ENABLED)
    Sets the value of the property hoverEnabled.
    void
    setLocationColor(javafx.scene.paint.Color COLOR)
    Sets the value of the property locationColor.
    void
    setMapConnections(MapConnection... MAP_CONNECTIONS)
     
    void
     
    void
    setMapPoints(MapPoint... MAP_POINTS)
     
    void
    setMapPoints(List<MapPoint> MAP_POINTS)
     
    void
     
    void
    setMapPointsVisible(boolean VISIBLE)
     
    void
    setMapPointTextVisible(boolean VISIBLE)
     
    void
    setMouseEnterHandler(javafx.event.EventHandler<javafx.scene.input.MouseEvent> HANDLER)
     
    void
    setMouseExitHandler(javafx.event.EventHandler<javafx.scene.input.MouseEvent> HANDLER)
     
    void
    setMousePressHandler(javafx.event.EventHandler<javafx.scene.input.MouseEvent> HANDLER)
     
    void
    setMouseReleaseHandler(javafx.event.EventHandler<javafx.scene.input.MouseEvent> HANDLER)
     
    void
    setOpacityDistribution(eu.hansolo.fx.heatmap.OpacityDistribution OPACITY_DISTRIBUTION)
    Changing the opacity distribution will affect the smoothing of the heat map.
    void
    setPressedColor(javafx.scene.paint.Color COLOR)
    Sets the value of the property pressedColor.
    void
    setScaleFactor(double FACTOR)
    Sets the value of the property scaleFactor.
    void
    setSelectedColor(javafx.scene.paint.Color COLOR)
    Sets the value of the property selectedColor.
    void
    setSelectedCountry(eu.hansolo.fx.countries.Country COUNTRY)
    Sets the value of the property selectedCountry.
    void
    setSelectionEnabled(boolean ENABLED)
    Sets the value of the property selectionEnabled.
    void
    setSpotRadius(double RADIUS)
    Each event will be visualized by a circle filled with a radial gradient with decreasing opacity from the inside to the outside.
    void
    setStrokeColor(javafx.scene.paint.Color COLOR)
    Sets the value of the property strokeColor.
    void
    setTextColor(javafx.scene.paint.Color COLOR)
     
    void
    setWeightedMapConnections(boolean WEIGHTED)
     
    void
     
    void
    setZoomEnabled(boolean ENABLED)
    Sets the value of the property zoomEnabled.
    void
    showLocations(boolean SHOW)
     
    javafx.beans.property.ObjectProperty<javafx.scene.paint.Color>
     
    javafx.beans.property.BooleanProperty
     
    void
    zoomToCountry(eu.hansolo.fx.countries.Country COUNTRY)
     
    void
    zoomToRegion(eu.hansolo.fx.countries.tools.CRegion REGION)
     

    Methods inherited from class javafx.scene.layout.Region

    backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, getBackground, getBorder, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getWidth, heightProperty, insetsProperty, isCacheShape, isCenterShape, isResizable, isScaleShape, isSnapToPixel, layoutInArea, layoutInArea, layoutInArea, layoutInArea, maxHeight, maxHeightProperty, maxWidth, maxWidthProperty, minHeight, minHeightProperty, minWidth, minWidthProperty, opaqueInsetsProperty, paddingProperty, positionInArea, positionInArea, prefHeight, prefHeightProperty, prefWidth, prefWidthProperty, resize, scaleShapeProperty, setBackground, setBorder, setCacheShape, setCenterShape, setHeight, setMaxHeight, setMaxSize, setMaxWidth, setMinHeight, setMinSize, setMinWidth, setOpaqueInsets, setPadding, setPrefHeight, setPrefSize, setPrefWidth, setScaleShape, setShape, setSnapToPixel, setWidth, shapeProperty, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapPositionX, snapPositionY, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, snapToPixelProperty, widthProperty

    Methods inherited from class javafx.scene.Parent

    getBaselineOffset, getChildrenUnmodifiable, getManagedChildren, getStylesheets, isNeedsLayout, layout, layoutChildren, lookup, needsLayoutProperty, queryAccessibleAttribute, requestLayout, requestParentLayout, setNeedsLayout, updateBounds

    Methods inherited from class javafx.scene.Node

    accessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, executeAccessibleAction, fireEvent, focusedProperty, focusTraversableProperty, focusVisibleProperty, focusWithinProperty, getAccessibleHelp, getAccessibleRole, getAccessibleRoleDescription, getAccessibleText, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getContentBias, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInitialCursor, getInitialFocusTraversable, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getLocalToParentTransform, getLocalToSceneTransform, getNodeOrientation, getOnContextMenuRequested, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnInputMethodTextChanged, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseClicked, getOnMouseDragEntered, getOnMouseDragExited, getOnMouseDragged, getOnMouseDragOver, getOnMouseDragReleased, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnRotate, getOnRotationFinished, getOnRotationStarted, getOnScroll, getOnScrollFinished, getOnScrollStarted, getOnSwipeDown, getOnSwipeLeft, getOnSwipeRight, getOnSwipeUp, getOnTouchMoved, getOnTouchPressed, getOnTouchReleased, getOnTouchStationary, getOnZoom, getOnZoomFinished, getOnZoomStarted, getOpacity, getParent, getProperties, getPseudoClassStates, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleableParent, getStyleClass, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getTypeSelector, getUserData, getViewOrder, hasProperties, hoverProperty, idProperty, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isFocusVisible, isFocusWithin, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToParent, localToParent, localToParentTransformProperty, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookupAll, managedProperty, mouseTransparentProperty, nodeOrientationProperty, notifyAccessibleAttributeChanged, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, pressedProperty, pseudoClassStateChanged, relocate, removeEventFilter, removeEventHandler, requestFocus, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, screenToLocal, screenToLocal, screenToLocal, setAccessibleHelp, setAccessibleRole, setAccessibleRoleDescription, setAccessibleText, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setDisabled, setEffect, setEventDispatcher, setEventHandler, setFocused, setFocusTraversable, setHover, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, setNodeOrientation, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragEntered, setOnMouseDragExited, setOnMouseDragged, setOnMouseDragOver, setOnMouseDragReleased, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnRotate, setOnRotationFinished, setOnRotationStarted, setOnScroll, setOnScrollFinished, setOnScrollStarted, setOnSwipeDown, setOnSwipeLeft, setOnSwipeRight, setOnSwipeUp, setOnTouchMoved, setOnTouchPressed, setOnTouchReleased, setOnTouchStationary, setOnZoom, setOnZoomFinished, setOnZoomStarted, setOpacity, setPickOnBounds, setPressed, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setViewOrder, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, viewOrderProperty, visibleProperty

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface javafx.css.Styleable

    getStyleableNode
  • Property Details

  • Field Details

    • _mouseEnterHandler

      protected javafx.event.EventHandler<javafx.scene.input.MouseEvent> _mouseEnterHandler
    • _mousePressHandler

      protected javafx.event.EventHandler<javafx.scene.input.MouseEvent> _mousePressHandler
    • _mouseReleaseHandler

      protected javafx.event.EventHandler<javafx.scene.input.MouseEvent> _mouseReleaseHandler
    • _mouseExitHandler

      protected javafx.event.EventHandler<javafx.scene.input.MouseEvent> _mouseExitHandler
  • Constructor Details

    • World

      public World()
    • World

      public World(World.Resolution RESOLUTION)
    • World

      public World(World.Resolution RESOLUTION, eu.hansolo.fx.heatmap.Mapping COLOR_MAPPING, double EVENT_RADIUS, boolean FADE_COLORS, eu.hansolo.fx.heatmap.OpacityDistribution OPACITY_DISTRIBUTION, double HEAT_MAP_OPACITY)
  • Method Details

    • computeMinWidth

      protected double computeMinWidth(double HEIGHT)
      Overrides:
      computeMinWidth in class javafx.scene.layout.Region
    • computeMinHeight

      protected double computeMinHeight(double WIDTH)
      Overrides:
      computeMinHeight in class javafx.scene.layout.Region
    • computePrefWidth

      protected double computePrefWidth(double HEIGHT)
      Overrides:
      computePrefWidth in class javafx.scene.layout.Region
    • computePrefHeight

      protected double computePrefHeight(double WIDTH)
      Overrides:
      computePrefHeight in class javafx.scene.layout.Region
    • computeMaxWidth

      protected double computeMaxWidth(double HEIGHT)
      Overrides:
      computeMaxWidth in class javafx.scene.layout.Region
    • computeMaxHeight

      protected double computeMaxHeight(double WIDTH)
      Overrides:
      computeMaxHeight in class javafx.scene.layout.Region
    • getChildren

      public javafx.collections.ObservableList<javafx.scene.Node> getChildren()
      Overrides:
      getChildren in class javafx.scene.Parent
    • getCountryPaths

      public Map<String,List<CountryPath>> getCountryPaths()
    • setMouseEnterHandler

      public void setMouseEnterHandler(javafx.event.EventHandler<javafx.scene.input.MouseEvent> HANDLER)
    • setMousePressHandler

      public void setMousePressHandler(javafx.event.EventHandler<javafx.scene.input.MouseEvent> HANDLER)
    • setMouseReleaseHandler

      public void setMouseReleaseHandler(javafx.event.EventHandler<javafx.scene.input.MouseEvent> HANDLER)
    • setMouseExitHandler

      public void setMouseExitHandler(javafx.event.EventHandler<javafx.scene.input.MouseEvent> HANDLER)
    • getBackgroundColor

      public javafx.scene.paint.Color getBackgroundColor()
      Gets the value of the property backgroundColor.
      Property description:
    • setBackgroundColor

      public void setBackgroundColor(javafx.scene.paint.Color COLOR)
      Sets the value of the property backgroundColor.
      Property description:
    • backgroundColorProperty

      public javafx.beans.property.ObjectProperty<javafx.scene.paint.Color> backgroundColorProperty()
      See Also:
    • getFillColor

      public javafx.scene.paint.Color getFillColor()
      Gets the value of the property fillColor.
      Property description:
    • setFillColor

      public void setFillColor(javafx.scene.paint.Color COLOR)
      Sets the value of the property fillColor.
      Property description:
    • fillColorProperty

      public javafx.beans.property.ObjectProperty<javafx.scene.paint.Color> fillColorProperty()
      See Also:
    • getStrokeColor

      public javafx.scene.paint.Color getStrokeColor()
      Gets the value of the property strokeColor.
      Property description:
    • setStrokeColor

      public void setStrokeColor(javafx.scene.paint.Color COLOR)
      Sets the value of the property strokeColor.
      Property description:
    • strokeColorProperty

      public javafx.beans.property.ObjectProperty<javafx.scene.paint.Color> strokeColorProperty()
      See Also:
    • getHoverColor

      public javafx.scene.paint.Color getHoverColor()
      Gets the value of the property hoverColor.
      Property description:
    • setHoverColor

      public void setHoverColor(javafx.scene.paint.Color COLOR)
      Sets the value of the property hoverColor.
      Property description:
    • hoverColorProperty

      public javafx.beans.property.ObjectProperty<javafx.scene.paint.Color> hoverColorProperty()
      See Also:
    • getPressedColor

      public javafx.scene.paint.Color getPressedColor()
      Gets the value of the property pressedColor.
      Property description:
    • setPressedColor

      public void setPressedColor(javafx.scene.paint.Color COLOR)
      Sets the value of the property pressedColor.
      Property description:
    • pressedColorProperty

      public javafx.beans.property.ObjectProperty<javafx.scene.paint.Color> pressedColorProperty()
      See Also:
    • getSelectedColor

      public javafx.scene.paint.Color getSelectedColor()
      Gets the value of the property selectedColor.
      Property description:
    • setSelectedColor

      public void setSelectedColor(javafx.scene.paint.Color COLOR)
      Sets the value of the property selectedColor.
      Property description:
    • selectedColorProperty

      public javafx.beans.property.ObjectProperty<javafx.scene.paint.Color> selectedColorProperty()
      See Also:
    • getLocationColor

      public javafx.scene.paint.Color getLocationColor()
      Gets the value of the property locationColor.
      Property description:
    • setLocationColor

      public void setLocationColor(javafx.scene.paint.Color COLOR)
      Sets the value of the property locationColor.
      Property description:
    • locationColorProperty

      public javafx.beans.property.ObjectProperty<javafx.scene.paint.Color> locationColorProperty()
      See Also:
    • isHoverEnabled

      public boolean isHoverEnabled()
      Gets the value of the property hoverEnabled.
      Property description:
    • setHoverEnabled

      public void setHoverEnabled(boolean ENABLED)
      Sets the value of the property hoverEnabled.
      Property description:
    • hoverEnabledProperty

      public javafx.beans.property.BooleanProperty hoverEnabledProperty()
      See Also:
    • isSelectionEnabled

      public boolean isSelectionEnabled()
      Gets the value of the property selectionEnabled.
      Property description:
    • setSelectionEnabled

      public void setSelectionEnabled(boolean ENABLED)
      Sets the value of the property selectionEnabled.
      Property description:
    • selectionEnabledProperty

      public javafx.beans.property.BooleanProperty selectionEnabledProperty()
      See Also:
    • getSelectedCountry

      public eu.hansolo.fx.countries.Country getSelectedCountry()
      Gets the value of the property selectedCountry.
      Property description:
    • setSelectedCountry

      public void setSelectedCountry(eu.hansolo.fx.countries.Country COUNTRY)
      Sets the value of the property selectedCountry.
      Property description:
    • selectedCountryProperty

      public javafx.beans.property.ObjectProperty<eu.hansolo.fx.countries.Country> selectedCountryProperty()
      See Also:
    • isZoomEnabled

      public boolean isZoomEnabled()
      Gets the value of the property zoomEnabled.
      Property description:
    • setZoomEnabled

      public void setZoomEnabled(boolean ENABLED)
      Sets the value of the property zoomEnabled.
      Property description:
    • zoomEnabledProperty

      public javafx.beans.property.BooleanProperty zoomEnabledProperty()
      See Also:
    • getScaleFactor

      public double getScaleFactor()
      Gets the value of the property scaleFactor.
      Property description:
    • setScaleFactor

      public void setScaleFactor(double FACTOR)
      Sets the value of the property scaleFactor.
      Property description:
    • scaleFactorProperty

      public javafx.beans.property.DoubleProperty scaleFactorProperty()
      See Also:
    • isHeatMapVisible

      public boolean isHeatMapVisible()
      Gets the value of the property heatMapVisible.
      Property description:
    • setHeatMapVisible

      public void setHeatMapVisible(boolean VISIBLE)
      Sets the value of the property heatMapVisible.
      Property description:
    • heatMapVisibleProperty

      public javafx.beans.property.BooleanProperty heatMapVisibleProperty()
      See Also:
    • getMapPoints

      public List<MapPoint> getMapPoints()
    • setMapPoints

      public void setMapPoints(MapPoint... MAP_POINTS)
    • setMapPoints

      public void setMapPoints(List<MapPoint> MAP_POINTS)
    • addMapPoints

      public void addMapPoints(MapPoint... MAP_POINTS)
    • addMapPoints

      public void addMapPoints(List<MapPoint> MAP_POINTS)
    • clearMapPoints

      public void clearMapPoints()
    • getMapConnections

      public List<MapConnection> getMapConnections()
    • setMapConnections

      public void setMapConnections(MapConnection... MAP_CONNECTIONS)
    • setMapConnections

      public void setMapConnections(List<MapConnection> MAP_CONNECTIONS)
    • addMapConnections

      public void addMapConnections(MapConnection... MAP_CONNECTIONS)
    • addMapConnections

      public void addMapConnections(List<MapConnection> MAP_CONNECTIONS)
    • clearMapConnections

      public void clearMapConnections()
    • getConnectionWidth

      public double getConnectionWidth()
    • setConnectionWidth

      public void setConnectionWidth(double WIDTH)
    • getWeightedMapPoints

      public WeightedMapPoints getWeightedMapPoints()
    • setWeightedMapPoints

      public void setWeightedMapPoints(WeightedMapPoints WEIGHTED)
    • getWeightedMapConnections

      public boolean getWeightedMapConnections()
    • setWeightedMapConnections

      public void setWeightedMapConnections(boolean WEIGHTED)
    • getArrowsVisible

      public boolean getArrowsVisible()
    • setArrowsVisible

      public void setArrowsVisible(boolean VISIBLE)
    • getMapPointSize

      public MapPointSize getMapPointSize()
    • setMapPointSize

      public void setMapPointSize(MapPointSize SIZE)
    • getMapPointsVisible

      public boolean getMapPointsVisible()
    • setMapPointsVisible

      public void setMapPointsVisible(boolean VISIBLE)
    • getMapPointTextVisible

      public boolean getMapPointTextVisible()
    • setMapPointTextVisible

      public void setMapPointTextVisible(boolean VISIBLE)
    • getTextColor

      public javafx.scene.paint.Color getTextColor()
    • setTextColor

      public void setTextColor(javafx.scene.paint.Color COLOR)
    • animateImageAlongConnection

      public void animateImageAlongConnection(javafx.scene.image.Image IMAGE, MapConnection CONNECTION)
    • getDrawImagePath

      public boolean getDrawImagePath()
    • setDrawImagePath

      public void setDrawImagePath(boolean DRAW_IMAGE_PATH)
    • setHeatMapToTop

      public void setHeatMapToTop(boolean TO_TOP)
    • getTimeline

      public javafx.animation.Timeline getTimeline()
    • resetZoom

      public void resetZoom()
    • addLocation

      public void addLocation(eu.hansolo.toolboxfx.geom.Location LOCATION)
    • removeLocation

      public void removeLocation(eu.hansolo.toolboxfx.geom.Location LOCATION)
    • addLocations

      public void addLocations(eu.hansolo.toolboxfx.geom.Location... LOCATIONS)
    • clearLocations

      public void clearLocations()
    • showLocations

      public void showLocations(boolean SHOW)
    • zoomToCountry

      public void zoomToCountry(eu.hansolo.fx.countries.Country COUNTRY)
    • zoomToRegion

      public void zoomToRegion(eu.hansolo.fx.countries.tools.CRegion REGION)
    • getHeatMap

      public eu.hansolo.fx.heatmap.HeatMap getHeatMap()
    • addSpots

      public void addSpots(eu.hansolo.toolboxfx.geom.Point... SPOTS)
    • addSpots

      public void addSpots(List<eu.hansolo.toolboxfx.geom.Point> SPOTS)
      Add a list of events and update the heatmap after all events have been added
      Parameters:
      SPOTS -
    • addSpot

      public void addSpot(double X, double Y, double OFFSET_X, double OFFSET_Y, double RADIUS, eu.hansolo.fx.heatmap.OpacityDistribution OPACITY_GRADIENT)
      Visualizes an event with the given radius and opacity gradient
      Parameters:
      X -
      Y -
      OFFSET_X -
      OFFSET_Y -
      RADIUS -
      OPACITY_GRADIENT -
    • addSpot

      public void addSpot(double X, double Y, javafx.scene.image.Image EVENT_IMAGE, double OFFSET_X, double OFFSET_Y)
      Visualizes an event with a given image at the given position and with the given offset. So one could use different weighted images for different kinds of events (e.g. important events more opaque as unimportant events)
      Parameters:
      X -
      Y -
      EVENT_IMAGE -
      OFFSET_X -
      OFFSET_Y -
    • addSpot

      public void addSpot(double X, double Y)
      If you don't need to weight events you could use this method which will create events that always use the global weight
      Parameters:
      X -
      Y -
    • clearHeatMap

      public void clearHeatMap()
      Calling this method will lead to a clean new heat map without any data
    • getColorMapping

      public eu.hansolo.fx.heatmap.Mapping getColorMapping()
      Returns the used color mapping with the gradient that is used to visualize the data
      Returns:
    • setColorMapping

      public void setColorMapping(eu.hansolo.fx.heatmap.Mapping COLOR_MAPPING)
      The ColorMapping enum contains some examples for color mappings that might be useful to visualize data and here you could set the one you like most. Setting another color mapping will recreate the heat map automatically.
      Parameters:
      COLOR_MAPPING -
    • isFadeColors

      public boolean isFadeColors()
      Returns true if the heat map is used to visualize frequencies (default)
      Returns:
      true if the heat map is used to visualize frequencies
    • setFadeColors

      public void setFadeColors(boolean FADE_COLORS)
      If true each event will be visualized by a radial gradient with the colors from the given color mapping and decreasing opacity from the inside to the outside. If you set it to false the color opacity won't fade out but will be opaque. This might be handy if you would like to visualize the density instead of the frequency
      Parameters:
      FADE_COLORS -
    • getSpotRadius

      public double getSpotRadius()
      Returns the radius of the circle that is used to visualize an event.
      Returns:
      the radius of the circle that is used to visualize an event
    • setSpotRadius

      public void setSpotRadius(double RADIUS)
      Each event will be visualized by a circle filled with a radial gradient with decreasing opacity from the inside to the outside. If you have lot's of events it makes sense to set the event radius to a smaller value. The default value is 15.5
      Parameters:
      RADIUS -
    • getHeatMapOpacity

      public double getHeatMapOpacity()
    • setHeatMapOpacity

      public void setHeatMapOpacity(double OPACITY)
    • getOpacityDistribution

      public eu.hansolo.fx.heatmap.OpacityDistribution getOpacityDistribution()
      Returns the opacity distribution that will be used to visualize the events in the monochrome map. If you have lot's of events it makes sense to reduce the radius and the set the opacity distribution to exponential.
      Returns:
      the opacity distribution of events in the monochrome map
    • setOpacityDistribution

      public void setOpacityDistribution(eu.hansolo.fx.heatmap.OpacityDistribution OPACITY_DISTRIBUTION)
      Changing the opacity distribution will affect the smoothing of the heat map. If you choose a linear opacity distribution you will see bigger colored dots for each event than using the exponential opacity distribution (at the same event radius).
      Parameters:
      OPACITY_DISTRIBUTION -
    • latLonToXY

      public static double[] latLonToXY(double LATITUDE, double LONGITUDE)
    • getUserAgentStylesheet

      public String getUserAgentStylesheet()
      Overrides:
      getUserAgentStylesheet in class javafx.scene.layout.Region
    • getClassCssMetaData

      public static List<javafx.css.CssMetaData<? extends javafx.css.Styleable,?>> getClassCssMetaData()
    • getCssMetaData

      public List<javafx.css.CssMetaData<? extends javafx.css.Styleable,?>> getCssMetaData()
      Specified by:
      getCssMetaData in interface javafx.css.Styleable
      Overrides:
      getCssMetaData in class javafx.scene.layout.Region