Class AbstractGraphStage
- java.lang.Object
-
- javafx.stage.Window
-
- javafx.stage.Stage
-
- org.adoptopenjdk.jitwatch.ui.graphing.AbstractGraphStage
-
- All Implemented Interfaces:
javafx.event.EventTarget,IRedrawable
- Direct Known Subclasses:
CodeCacheStage,HistoStage,TimeLineStage
public abstract class AbstractGraphStage extends javafx.stage.Stage implements IRedrawable
-
-
Field Summary
Fields Modifier and Type Field Description protected javafx.scene.canvas.Canvascanvasprotected doublechartHeightprotected doublechartWidthprotected doubleendOfXAxisprotected javafx.scene.canvas.GraphicsContextgcprotected doublegraphGapLeftprotected doublegraphGapRightprotected doublegraphGapTopprotected doubleheightprotected JITWatchUImainUIprotected longmaxXprotected longmaxXQprotected longmaxYprotected longmaxYQprotected static javafx.scene.text.FontMEMBER_FONTprotected longminXprotected longminXQprotected longminYprotected longminYQprotected static javafx.scene.text.FontSTANDARD_FONTprotected doublewidthprivate booleanxAxisTimeprotected static int[]Y_SCALE
-
Constructor Summary
Constructors Constructor Description AbstractGraphStage(JITWatchUI parent, int width, int height, boolean xAxisTime)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidbaseRedraw()protected voidcontinueLineToEndOfXAxis(double lastX, double lastY, javafx.scene.paint.Color color, double lineWidth)protected voiddrawAxes()protected voiddrawLabel(java.lang.String text, double xPos, double yPos, javafx.scene.paint.Color backgroundColour)private voiddrawXAxis()protected voiddrawXAxisTime()private voiddrawYAxis()protected longfindScale(long range)protected doublegetApproximateStringWidth(java.lang.String text)protected longgetStampFromTag(Tag tag)protected doublegetStringHeight()private longgetXStepTime()protected doublenormalise(double value, double min, double max, double size, boolean invert)protected doublenormaliseX(double value)protected doublenormaliseY(double value)abstract voidredraw()protected voidsetStrokeForAxis()protected voidsetStrokeForText()-
Methods inherited from class javafx.stage.Stage
alwaysOnTopProperty, close, fullScreenExitHintProperty, fullScreenExitKeyProperty, fullScreenProperty, getFullScreenExitHint, getFullScreenExitKeyCombination, getIcons, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getModality, getOwner, getStyle, getTitle, iconifiedProperty, initModality, initOwner, initStyle, isAlwaysOnTop, isFullScreen, isIconified, isMaximized, isResizable, maxHeightProperty, maximizedProperty, maxWidthProperty, minHeightProperty, minWidthProperty, resizableProperty, setAlwaysOnTop, setFullScreen, setFullScreenExitHint, setFullScreenExitKeyCombination, setIconified, setMaxHeight, setMaximized, setMaxWidth, setMinHeight, setMinWidth, setResizable, setScene, setTitle, show, showAndWait, titleProperty, toBack, toFront
-
Methods inherited from class javafx.stage.Window
addEventFilter, addEventHandler, buildEventDispatchChain, centerOnScreen, eventDispatcherProperty, fireEvent, focusedProperty, forceIntegerRenderScaleProperty, getEventDispatcher, getHeight, getOnCloseRequest, getOnHidden, getOnHiding, getOnShowing, getOnShown, getOpacity, getOutputScaleX, getOutputScaleY, getProperties, getRenderScaleX, getRenderScaleY, getScene, getUserData, getWidth, getWindows, getX, getY, hasProperties, heightProperty, hide, isFocused, isForceIntegerRenderScale, isShowing, onCloseRequestProperty, onHiddenProperty, onHidingProperty, onShowingProperty, onShownProperty, opacityProperty, outputScaleXProperty, outputScaleYProperty, removeEventFilter, removeEventHandler, renderScaleXProperty, renderScaleYProperty, requestFocus, sceneProperty, setEventDispatcher, setEventHandler, setForceIntegerRenderScale, setHeight, setOnCloseRequest, setOnHidden, setOnHiding, setOnShowing, setOnShown, setOpacity, setRenderScaleX, setRenderScaleY, setUserData, setWidth, setX, setY, showingProperty, sizeToScene, widthProperty, xProperty, yProperty
-
-
-
-
Field Detail
-
canvas
protected javafx.scene.canvas.Canvas canvas
-
gc
protected javafx.scene.canvas.GraphicsContext gc
-
mainUI
protected JITWatchUI mainUI
-
graphGapLeft
protected double graphGapLeft
-
graphGapRight
protected final double graphGapRight
- See Also:
- Constant Field Values
-
graphGapTop
protected final double graphGapTop
- See Also:
- Constant Field Values
-
Y_SCALE
protected static final int[] Y_SCALE
-
width
protected double width
-
height
protected double height
-
chartWidth
protected double chartWidth
-
chartHeight
protected double chartHeight
-
minX
protected long minX
-
maxX
protected long maxX
-
minY
protected long minY
-
maxY
protected long maxY
-
minXQ
protected long minXQ
-
maxXQ
protected long maxXQ
-
minYQ
protected long minYQ
-
maxYQ
protected long maxYQ
-
endOfXAxis
protected double endOfXAxis
-
xAxisTime
private boolean xAxisTime
-
STANDARD_FONT
protected static final javafx.scene.text.Font STANDARD_FONT
-
MEMBER_FONT
protected static final javafx.scene.text.Font MEMBER_FONT
-
-
Constructor Detail
-
AbstractGraphStage
public AbstractGraphStage(JITWatchUI parent, int width, int height, boolean xAxisTime)
-
-
Method Detail
-
redraw
public abstract void redraw()
- Specified by:
redrawin interfaceIRedrawable
-
baseRedraw
protected void baseRedraw()
-
drawAxes
protected void drawAxes()
-
getStampFromTag
protected long getStampFromTag(Tag tag)
-
continueLineToEndOfXAxis
protected void continueLineToEndOfXAxis(double lastX, double lastY, javafx.scene.paint.Color color, double lineWidth)
-
drawLabel
protected void drawLabel(java.lang.String text, double xPos, double yPos, javafx.scene.paint.Color backgroundColour)
-
drawXAxisTime
protected void drawXAxisTime()
-
drawXAxis
private void drawXAxis()
-
drawYAxis
private void drawYAxis()
-
getApproximateStringWidth
protected double getApproximateStringWidth(java.lang.String text)
-
getStringHeight
protected double getStringHeight()
-
getXStepTime
private long getXStepTime()
-
findScale
protected long findScale(long range)
-
normaliseX
protected double normaliseX(double value)
-
normaliseY
protected double normaliseY(double value)
-
normalise
protected double normalise(double value, double min, double max, double size, boolean invert)
-
setStrokeForAxis
protected void setStrokeForAxis()
-
setStrokeForText
protected void setStrokeForText()
-
-