Class DefaultTimelineStyleProvider

java.lang.Object
org.eclipse.nebula.widgets.timeline.jface.DefaultTimelineStyleProvider
All Implemented Interfaces:
ITimelineStyleProvider

public class DefaultTimelineStyleProvider
extends java.lang.Object
implements ITimelineStyleProvider
  • Constructor Summary

    Constructors 
    Constructor Description
    DefaultTimelineStyleProvider​(org.eclipse.jface.resource.ResourceManager resourceManager)  
  • Method Summary

    Modifier and Type Method Description
    org.eclipse.swt.graphics.Color getBackgroundColor()
    Get diagram background color.
    org.eclipse.swt.graphics.Color getColor​(org.eclipse.swt.graphics.RGB rgb)
    Get a color for the given RGB value.
    org.eclipse.swt.graphics.Color getCursorColor()
    Get the color for a non-selected cursor.
    org.eclipse.draw2d.Border getDetailAreaBorder()
    Get the border for the detail area.
    org.eclipse.swt.graphics.Color getGridColor()
    Get the color of the grid.
    int getGridLineStyle()
    Get the line style for the grid.
    org.eclipse.swt.graphics.Color getLaneColor()
    Get the color for the next lane.
    int getLaneHeight()
    Get height for a given lane.
    org.eclipse.draw2d.Border getOverviewAreaBorder()
    Get the border for the overview area.
    org.eclipse.draw2d.geometry.Insets getOverviewInsets()
    Get the insets for the overview area.
    int getOverviewLaneHeight()
    Get height for a given lane in overview.
    int getOverviewSelectionBackgroundAlpha()
    Get the alpha value for the overview selection figure.
    org.eclipse.swt.graphics.Color getOverviewSelectionBackgroundColor()
    Get the background color for the overview selection.
    org.eclipse.draw2d.Border getOverviewSelectionBorder()
    Get the border for the overview selection figure.
    org.eclipse.swt.graphics.Color getSelectedCursorColor()
    Get the color for a selected cursor.
    java.lang.String getTimeLabel​(double timestamp, java.util.concurrent.TimeUnit unit)
    Get a human readable timestamp for a given time.
    org.eclipse.draw2d.Border getTrackBorder​(java.lang.String title)
    Get the border for a track.
    double getZoomFactor()
    Get the multiplier for the zoom factor to be applied on a zoomIn/zoomOut operation.
    void selectEvent​(EventFigure eventFigure)
    Apply styling to select an event figure.
    boolean showGrid()
    Display the grid in the detail area.
    boolean showOverview()
    Display the overview area.
    boolean showTimeAxis()
    Display the time axis below the detail area.
    void unselectEvent​(EventFigure eventFigure)
    Revert styling of an event figure selection.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.eclipse.nebula.widgets.timeline.jface.ITimelineStyleProvider

    dispose