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
-
Property Summary
Properties inherited from class javafx.stage.Stage
alwaysOnTop, fullScreenExitHint, fullScreenExitKey, fullScreen, iconified, maxHeight, maximized, maxWidth, minHeight, minWidth, resizable, titleProperties inherited from class javafx.stage.Window
eventDispatcher, focused, forceIntegerRenderScale, height, onCloseRequest, onHidden, onHiding, onShowing, onShown, opacity, outputScaleX, outputScaleY, renderScaleX, renderScaleY, scene, showing, width, x, y -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected javafx.scene.canvas.Canvasprotected doubleprotected doubleprotected doubleprotected javafx.scene.canvas.GraphicsContextprotected doubleprotected final doubleprotected final doubleprotected doubleprotected JITWatchUIprotected longprotected longprotected longprotected longprotected static final javafx.scene.text.Fontprotected longprotected longprotected longprotected longprotected static final javafx.scene.text.Fontprotected doubleprivate booleanprotected static final int[] -
Constructor Summary
ConstructorsConstructorDescriptionAbstractGraphStage(JITWatchUI parent, int width, int height, boolean xAxisTime) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidcontinueLineToEndOfXAxis(double lastX, double lastY, javafx.scene.paint.Color color, double lineWidth) protected voiddrawAxes()protected voidprivate voidprotected voidprivate voidprotected longfindScale(long range) protected doubleprotected longgetStampFromTag(Tag tag) protected doubleprivate longprotected doublenormalise(double value, double min, double max, double size, boolean invert) protected doublenormaliseX(double value) protected doublenormaliseY(double value) abstract voidredraw()protected voidprotected voidMethods 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, toFrontMethods 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 Details
-
canvas
protected javafx.scene.canvas.Canvas canvas -
gc
protected javafx.scene.canvas.GraphicsContext gc -
mainUI
-
graphGapLeft
protected double graphGapLeft -
graphGapRight
protected final double graphGapRight- See Also:
-
graphGapTop
protected final double graphGapTop- See Also:
-
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 Details
-
AbstractGraphStage
-
-
Method Details
-
redraw
public abstract void redraw()- Specified by:
redrawin interfaceIRedrawable
-
baseRedraw
protected void baseRedraw() -
drawAxes
protected void drawAxes() -
getStampFromTag
-
continueLineToEndOfXAxis
protected void continueLineToEndOfXAxis(double lastX, double lastY, javafx.scene.paint.Color color, double lineWidth) -
drawLabel
protected void drawLabel(String text, double xPos, double yPos, javafx.scene.paint.Color backgroundColour) -
drawXAxisTime
protected void drawXAxisTime() -
drawXAxis
private void drawXAxis() -
drawYAxis
private void drawYAxis() -
getApproximateStringWidth
-
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()
-