| Constructor and Description |
|---|
FxMapItem(FxMapModel model,
MapData data,
double percentage) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyLayout()
Applies the layout values set up using the setBounds methods.
|
void |
applyStyle(TreeMapStyle style) |
Rect |
getBounds()
Get the MapItem bounds.
|
MapData |
getData()
Get the MapItem data.
|
protected javafx.scene.Node |
getNode() |
double |
getPercentage()
Get the corresponding data percentage.
|
double |
getSize()
Get the pixel area of the item.
|
double |
getValue()
Get the MapItem' data value.
|
void |
setBackgroundColor(javafx.scene.paint.Color newBackgroundColor)
Sets the background color for the map item.
|
void |
setBorderRadius(double newBorderRadius)
Sets the corder radius value for the map item.
|
void |
setBounds(double x,
double y,
double w,
double h)
Update the MapItem bounds in its parent.
|
void |
setBounds(Rect bounds)
Update the MapItem bounds in its parent.
|
void |
setOverBackgroundColor(javafx.scene.paint.Color newBackgroundOverColor)
Sets the background color for the map item, when the mouse is over the
item.
|
void |
setOverStroke(javafx.scene.paint.Color newStrokeOverColor)
Sets the stroke color for the map item, when the mouse is over the item.
|
void |
setPadding(double newPaddingValue)
Sets the padding value inside the map item.
|
void |
setStroke(javafx.scene.paint.Color newStrokeColor)
Sets the stroke color for the map item.
|
public FxMapItem(FxMapModel model, MapData data, double percentage)
public double getPercentage()
MapItemgetPercentage in interface MapItempublic double getValue()
MapItempublic double getSize()
MapItempublic void setBounds(Rect bounds)
MapItempublic void setBounds(double x,
double y,
double w,
double h)
MapItempublic Rect getBounds()
MapItempublic final void applyStyle(TreeMapStyle style)
style - the style to be applied to the map itempublic void setBackgroundColor(javafx.scene.paint.Color newBackgroundColor)
newBackgroundColor - the new map item background colorpublic void setStroke(javafx.scene.paint.Color newStrokeColor)
newStrokeColor - the new map item stroke colorpublic void setOverBackgroundColor(javafx.scene.paint.Color newBackgroundOverColor)
newBackgroundOverColor - the new map item background over colorpublic void setOverStroke(javafx.scene.paint.Color newStrokeOverColor)
newStrokeOverColor - the new map item stroke over colorpublic void setBorderRadius(double newBorderRadius)
newBorderRadius - the new border radiuspublic void setPadding(double newPaddingValue)
newPaddingValue - the new padding valueprotected javafx.scene.Node getNode()
protected void applyLayout()
Copyright © 2017 H-K. All rights reserved.