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
  • Property Summary

    Properties inherited from class javafx.stage.Stage

    alwaysOnTop, fullScreenExitHint, fullScreenExitKey, fullScreen, iconified, maxHeight, maximized, maxWidth, minHeight, minWidth, resizable, title

    Properties 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

    Fields
    Modifier and Type
    Field
    Description
    protected javafx.scene.canvas.Canvas
     
    protected double
     
    protected double
     
    protected double
     
    protected javafx.scene.canvas.GraphicsContext
     
    protected double
     
    protected final double
     
    protected final double
     
    protected double
     
    protected JITWatchUI
     
    protected long
     
    protected long
     
    protected long
     
    protected long
     
    protected static final javafx.scene.text.Font
     
    protected long
     
    protected long
     
    protected long
     
    protected long
     
    protected static final javafx.scene.text.Font
     
    protected double
     
    private boolean
     
    protected static final int[]
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    AbstractGraphStage(JITWatchUI parent, int width, int height, boolean xAxisTime)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    protected void
    continueLineToEndOfXAxis(double lastX, double lastY, javafx.scene.paint.Color color, double lineWidth)
     
    protected void
     
    protected void
    drawLabel(String text, double xPos, double yPos, javafx.scene.paint.Color backgroundColour)
     
    private void
     
    protected void
     
    private void
     
    protected long
    findScale(long range)
     
    protected double
     
    protected long
     
    protected double
     
    private long
     
    protected double
    normalise(double value, double min, double max, double size, boolean invert)
     
    protected double
    normaliseX(double value)
     
    protected double
    normaliseY(double value)
     
    abstract void
     
    protected void
     
    protected void
     

    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

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • 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:
    • 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

      public AbstractGraphStage(JITWatchUI parent, int width, int height, boolean xAxisTime)
  • Method Details

    • redraw

      public abstract void redraw()
      Specified by:
      redraw in interface IRedrawable
    • 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(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(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()