Tabnine Logo
Chart.getMaximumViewport
Code IndexAdd Tabnine to your IDE (free)

How to use
getMaximumViewport
method
in
lecho.lib.hellocharts.view.Chart

Best Java code snippets using lecho.lib.hellocharts.view.Chart.getMaximumViewport (Showing top 3 results out of 315)

origin: NightscoutFoundation/xDrip

public Viewport advanceViewport(Chart chart, Chart previewChart, float hours) {
  viewport = new Viewport(previewChart.getMaximumViewport());
  viewport.inset((float) ((86400000 / hours) / FUZZER), 0);
  double distance_to_move = ((new Date().getTime()) / FUZZER) - viewport.left - (((viewport.right - viewport.left) / 2));
  viewport.offset((float) distance_to_move, 0);
  return viewport;
}
origin: jamorham/xDrip-plus

public Viewport advanceViewport(Chart chart, Chart previewChart) {
  viewport = new Viewport(previewChart.getMaximumViewport());
  viewport.inset((float) ((86400000 / 2.5) / FUZZER), 0);
  double distance_to_move = ((new Date().getTime())/ FUZZER) - viewport.left - (((viewport.right - viewport.left) /2));
  viewport.offset((float) distance_to_move, 0);
  return viewport;
}
origin: jamorham/xDrip-plus

public Viewport advanceViewport(Chart chart, Chart previewChart, float hours) {
  viewport = new Viewport(previewChart.getMaximumViewport());
  viewport.inset((float) ((86400000 / hours) / FUZZER), 0);
  double distance_to_move = ((new Date().getTime()) / FUZZER) - viewport.left - (((viewport.right - viewport.left) / 2));
  viewport.offset((float) distance_to_move, 0);
  return viewport;
}
lecho.lib.hellocharts.viewChartgetMaximumViewport

Javadoc

Returns maximum viewport for this chart. Don't modify it directly, use #setMaximumViewport(Viewport)instead.

Popular methods of Chart

  • animationDataFinished
    Called when data animation finished.
  • animationDataUpdate
    Updates chart data with given scale. Called during chart data animation update.
  • callTouchListener
  • getChartComputator
  • getChartData
    Returns generic chart data. For specific class call get*ChartData method from data provider implemen
  • getChartRenderer
  • setCurrentViewport
    Sets current viewport. Note. viewport have to be set after chartData has been set.

Popular in Java

  • Making http post requests using okhttp
  • runOnUiThread (Activity)
  • getSharedPreferences (Context)
  • getSystemService (Context)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now