Interface Paintable
- All Known Implementing Classes:
ClusterComponent
public interface Paintable
Implemented by visual components of the dendrogram.
- Since:
- 1.0
- Author:
- Lars Behnke, 2013, Michael J. Schnieders
-
Method Summary
Modifier and TypeMethodDescriptionvoid
paint
(Graphics2D g, int xDisplayOffset, int yDisplayOffset, double xDisplayFactor, double yDisplayFactor, boolean decorated) Paints this visual component onto the provided Graphics2D context.
-
Method Details
-
paint
void paint(Graphics2D g, int xDisplayOffset, int yDisplayOffset, double xDisplayFactor, double yDisplayFactor, boolean decorated) Paints this visual component onto the provided Graphics2D context.- Parameters:
g
- the Graphics2D to draw intoxDisplayOffset
- x-axis pixel offset applied to model coordinatesyDisplayOffset
- y-axis pixel offset applied to model coordinatesxDisplayFactor
- scale factor to convert model X to pixelsyDisplayFactor
- scale factor to convert model Y to pixelsdecorated
- if true, draw additional decorations (e.g., distance labels)
-