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
PropertiesTypePropertyDescriptionjavafx.beans.property.ObjectProperty<javafx.scene.paint.Color>javafx.beans.property.ObjectProperty<javafx.scene.paint.Color>javafx.beans.property.BooleanPropertyjavafx.beans.property.ObjectProperty<javafx.scene.paint.Color>javafx.beans.property.BooleanPropertyjavafx.beans.property.ObjectProperty<javafx.scene.paint.Color>javafx.beans.property.ObjectProperty<javafx.scene.paint.Color>javafx.beans.property.DoublePropertyjavafx.beans.property.ObjectProperty<javafx.scene.paint.Color>javafx.beans.property.ObjectProperty<eu.hansolo.fx.countries.Country>javafx.beans.property.BooleanPropertyjavafx.beans.property.ObjectProperty<javafx.scene.paint.Color>javafx.beans.property.BooleanPropertyProperties inherited from class javafx.scene.layout.Region
background, border, cacheShape, centerShape, height, insets, maxHeight, maxWidth, minHeight, minWidth, opaqueInsets, padding, prefHeight, prefWidth, scaleShape, shape, snapToPixel, widthProperties inherited from class javafx.scene.Parent
needsLayoutProperties 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 -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected 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_SIZEFields inherited from class javafx.scene.Node
BASELINE_OFFSET_SAME_AS_HEIGHT -
Constructor Summary
ConstructorsConstructorDescriptionWorld()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 TypeMethodDescriptionvoidaddLocation(eu.hansolo.toolboxfx.geom.Location LOCATION) voidaddLocations(eu.hansolo.toolboxfx.geom.Location... LOCATIONS) voidaddMapConnections(MapConnection... MAP_CONNECTIONS) voidaddMapConnections(List<MapConnection> MAP_CONNECTIONS) voidaddMapPoints(MapPoint... MAP_POINTS) voidaddMapPoints(List<MapPoint> MAP_POINTS) voidaddSpot(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 weightvoidaddSpot(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 gradientvoidaddSpot(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.voidaddSpots(eu.hansolo.toolboxfx.geom.Point... SPOTS) voidAdd a list of events and update the heatmap after all events have been addedvoidanimateImageAlongConnection(javafx.scene.image.Image IMAGE, MapConnection CONNECTION) javafx.beans.property.ObjectProperty<javafx.scene.paint.Color>voidCalling this method will lead to a clean new heat map without any datavoidvoidvoidprotected doublecomputeMaxHeight(double WIDTH) protected doublecomputeMaxWidth(double HEIGHT) protected doublecomputeMinHeight(double WIDTH) protected doublecomputeMinWidth(double HEIGHT) protected doublecomputePrefHeight(double WIDTH) protected doublecomputePrefWidth(double HEIGHT) javafx.beans.property.ObjectProperty<javafx.scene.paint.Color>booleanjavafx.scene.paint.ColorGets 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.MappingReturns the used color mapping with the gradient that is used to visualize the datadoubleList<javafx.css.CssMetaData<? extends javafx.css.Styleable,?>> booleanjavafx.scene.paint.ColorGets the value of the property fillColor.eu.hansolo.fx.heatmap.HeatMapdoublejavafx.scene.paint.ColorGets the value of the property hoverColor.javafx.scene.paint.ColorGets the value of the property locationColor.booleanbooleaneu.hansolo.fx.heatmap.OpacityDistributionReturns the opacity distribution that will be used to visualize the events in the monochrome map.javafx.scene.paint.ColorGets the value of the property pressedColor.doubleGets the value of the property scaleFactor.javafx.scene.paint.ColorGets the value of the property selectedColor.eu.hansolo.fx.countries.CountryGets the value of the property selectedCountry.doubleReturns the radius of the circle that is used to visualize an event.javafx.scene.paint.ColorGets the value of the property strokeColor.javafx.scene.paint.Colorjavafx.animation.Timelinebooleanjavafx.beans.property.BooleanPropertyjavafx.beans.property.ObjectProperty<javafx.scene.paint.Color>javafx.beans.property.BooleanPropertybooleanReturns true if the heat map is used to visualize frequencies (default)booleanGets the value of the property heatMapVisible.booleanGets the value of the property hoverEnabled.booleanGets the value of the property selectionEnabled.booleanGets 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>voidremoveLocation(eu.hansolo.toolboxfx.geom.Location LOCATION) voidjavafx.beans.property.DoublePropertyjavafx.beans.property.ObjectProperty<javafx.scene.paint.Color>javafx.beans.property.ObjectProperty<eu.hansolo.fx.countries.Country>javafx.beans.property.BooleanPropertyvoidsetArrowsVisible(boolean VISIBLE) voidsetBackgroundColor(javafx.scene.paint.Color COLOR) Sets the value of the property backgroundColor.voidsetColorMapping(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.voidsetConnectionWidth(double WIDTH) voidsetDrawImagePath(boolean DRAW_IMAGE_PATH) voidsetFadeColors(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.voidsetFillColor(javafx.scene.paint.Color COLOR) Sets the value of the property fillColor.voidsetHeatMapOpacity(double OPACITY) voidsetHeatMapToTop(boolean TO_TOP) voidsetHeatMapVisible(boolean VISIBLE) Sets the value of the property heatMapVisible.voidsetHoverColor(javafx.scene.paint.Color COLOR) Sets the value of the property hoverColor.voidsetHoverEnabled(boolean ENABLED) Sets the value of the property hoverEnabled.voidsetLocationColor(javafx.scene.paint.Color COLOR) Sets the value of the property locationColor.voidsetMapConnections(MapConnection... MAP_CONNECTIONS) voidsetMapConnections(List<MapConnection> MAP_CONNECTIONS) voidsetMapPoints(MapPoint... MAP_POINTS) voidsetMapPoints(List<MapPoint> MAP_POINTS) voidsetMapPointSize(MapPointSize SIZE) voidsetMapPointsVisible(boolean VISIBLE) voidsetMapPointTextVisible(boolean VISIBLE) voidsetMouseEnterHandler(javafx.event.EventHandler<javafx.scene.input.MouseEvent> HANDLER) voidsetMouseExitHandler(javafx.event.EventHandler<javafx.scene.input.MouseEvent> HANDLER) voidsetMousePressHandler(javafx.event.EventHandler<javafx.scene.input.MouseEvent> HANDLER) voidsetMouseReleaseHandler(javafx.event.EventHandler<javafx.scene.input.MouseEvent> HANDLER) voidsetOpacityDistribution(eu.hansolo.fx.heatmap.OpacityDistribution OPACITY_DISTRIBUTION) Changing the opacity distribution will affect the smoothing of the heat map.voidsetPressedColor(javafx.scene.paint.Color COLOR) Sets the value of the property pressedColor.voidsetScaleFactor(double FACTOR) Sets the value of the property scaleFactor.voidsetSelectedColor(javafx.scene.paint.Color COLOR) Sets the value of the property selectedColor.voidsetSelectedCountry(eu.hansolo.fx.countries.Country COUNTRY) Sets the value of the property selectedCountry.voidsetSelectionEnabled(boolean ENABLED) Sets the value of the property selectionEnabled.voidsetSpotRadius(double RADIUS) Each event will be visualized by a circle filled with a radial gradient with decreasing opacity from the inside to the outside.voidsetStrokeColor(javafx.scene.paint.Color COLOR) Sets the value of the property strokeColor.voidsetTextColor(javafx.scene.paint.Color COLOR) voidsetWeightedMapConnections(boolean WEIGHTED) voidsetWeightedMapPoints(WeightedMapPoints WEIGHTED) voidsetZoomEnabled(boolean ENABLED) Sets the value of the property zoomEnabled.voidshowLocations(boolean SHOW) javafx.beans.property.ObjectProperty<javafx.scene.paint.Color>javafx.beans.property.BooleanPropertyvoidzoomToCountry(eu.hansolo.fx.countries.Country COUNTRY) voidzoomToRegion(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, widthPropertyMethods inherited from class javafx.scene.Parent
getBaselineOffset, getChildrenUnmodifiable, getManagedChildren, getStylesheets, isNeedsLayout, layout, layoutChildren, lookup, needsLayoutProperty, queryAccessibleAttribute, requestLayout, requestParentLayout, setNeedsLayout, updateBoundsMethods 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, visiblePropertyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface javafx.css.Styleable
getStyleableNode
-
Property Details
-
backgroundColor
public javafx.beans.property.ObjectProperty<javafx.scene.paint.Color> backgroundColorProperty -
fillColor
public javafx.beans.property.ObjectProperty<javafx.scene.paint.Color> fillColorProperty- See Also:
-
strokeColor
public javafx.beans.property.ObjectProperty<javafx.scene.paint.Color> strokeColorProperty- See Also:
-
hoverColor
public javafx.beans.property.ObjectProperty<javafx.scene.paint.Color> hoverColorProperty- See Also:
-
pressedColor
public javafx.beans.property.ObjectProperty<javafx.scene.paint.Color> pressedColorProperty- See Also:
-
selectedColor
public javafx.beans.property.ObjectProperty<javafx.scene.paint.Color> selectedColorProperty- See Also:
-
locationColor
public javafx.beans.property.ObjectProperty<javafx.scene.paint.Color> locationColorProperty- See Also:
-
hoverEnabled
public javafx.beans.property.BooleanProperty hoverEnabledProperty- See Also:
-
selectionEnabled
public javafx.beans.property.BooleanProperty selectionEnabledProperty -
selectedCountry
public javafx.beans.property.ObjectProperty<eu.hansolo.fx.countries.Country> selectedCountryProperty -
zoomEnabled
public javafx.beans.property.BooleanProperty zoomEnabledProperty- See Also:
-
scaleFactor
public javafx.beans.property.DoubleProperty scaleFactorProperty- See Also:
-
heatMapVisible
public javafx.beans.property.BooleanProperty heatMapVisibleProperty- See Also:
-
-
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
-
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:
computeMinWidthin classjavafx.scene.layout.Region
-
computeMinHeight
protected double computeMinHeight(double WIDTH) - Overrides:
computeMinHeightin classjavafx.scene.layout.Region
-
computePrefWidth
protected double computePrefWidth(double HEIGHT) - Overrides:
computePrefWidthin classjavafx.scene.layout.Region
-
computePrefHeight
protected double computePrefHeight(double WIDTH) - Overrides:
computePrefHeightin classjavafx.scene.layout.Region
-
computeMaxWidth
protected double computeMaxWidth(double HEIGHT) - Overrides:
computeMaxWidthin classjavafx.scene.layout.Region
-
computeMaxHeight
protected double computeMaxHeight(double WIDTH) - Overrides:
computeMaxHeightin classjavafx.scene.layout.Region
-
getChildren
public javafx.collections.ObservableList<javafx.scene.Node> getChildren()- Overrides:
getChildrenin classjavafx.scene.Parent
-
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() -
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() -
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() -
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
-
setMapPoints
-
setMapPoints
-
addMapPoints
-
addMapPoints
-
clearMapPoints
public void clearMapPoints() -
getMapConnections
-
setMapConnections
-
setMapConnections
-
addMapConnections
-
addMapConnections
-
clearMapConnections
public void clearMapConnections() -
getConnectionWidth
public double getConnectionWidth() -
setConnectionWidth
public void setConnectionWidth(double WIDTH) -
getWeightedMapPoints
-
setWeightedMapPoints
-
getWeightedMapConnections
public boolean getWeightedMapConnections() -
setWeightedMapConnections
public void setWeightedMapConnections(boolean WEIGHTED) -
getArrowsVisible
public boolean getArrowsVisible() -
setArrowsVisible
public void setArrowsVisible(boolean VISIBLE) -
getMapPointSize
-
setMapPointSize
-
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
-
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
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
- Overrides:
getUserAgentStylesheetin classjavafx.scene.layout.Region
-
getClassCssMetaData
-
getCssMetaData
- Specified by:
getCssMetaDatain interfacejavafx.css.Styleable- Overrides:
getCssMetaDatain classjavafx.scene.layout.Region
-