Go to the documentation of this file.
10 package com.generalrobotix.ui.view.graph;
13 import org.eclipse.swt.graphics.RGB;
26 private static final double LOG10 = Math.log(10);
32 private static final String[]
colorTable_ = {
"green",
"yellow",
"cyan",
"magenta",
"red",
"blue" };
40 tmpcolorCounter_ = tmpcolorCounter_ + index;
149 if (dataKind ==
null) {
522 String _getDataItemNodeName(
DataItem di) {
523 StringBuffer sb =
new StringBuffer(
nodeName_);
539 return sb.toString();
542 String getNodeName() {
563 int eMin = (
int)Math.floor(Math.log(sMin) /
LOG10);
567 boolean found =
false;
570 for (
int i = 1;
i <= 3;
i++) {
571 step = m * Math.pow(10.0, e);
574 char[]
c =
new char[-e + 2];
577 for (
int j = 0; j < -e; j++) {
580 format =
new String(
c);
597 for (
int j = 0; j <
info.length; j++)
RGB getGraphColor(int index)
static final int numColors_
DataSeries addDataItem(DataItem dataItem)
void _setTimeRangeAndPos(double timeRange, double markerPos)
void setLegend(LegendPanel legend)
HashMap< String, DataItemInfo > dataItemInfoMap_
void setDataItemInfo(DataItemInfo dii)
AxisInfo getTimeAxisInfo()
void removeDataSeries(DataSeries ds)
static final String[] colorTable_
static final double MAX_DIV
void _setDataItemInfo(DataItemInfo dii)
void setStyle(DataSeries ds, RGB rgb)
void setGraph(XYLineGraph graph, LegendPanel legend)
static final int NOT_MATCHED
void removeDataItem(DataItem dataItem)
static Activator getDefault()
String getFullAttributeName()
static final int AXIS_LEFT
void addDataSeries(DataSeries ds, AxisInfo xai, AxisInfo yai, RGB rgb, String legend)
void setRange(double base, double extent)
void setRangeAndPos(double timeRange, double markerPos)
DataItemInfo[] getDataItemInfoList()
static final double LOG10
void setAxisInfo(int axis, AxisInfo ai)
TrendGraph(TrendGraphModel model, String node)
static final int AXIS_BOTTOM
void setLegendLabel(DataSeries ds, String legend)
Font getFont(String fontName)
int addDataItem(DataItemInfo di)
void setTimeRangeAndPos(double timeRange, double markerPos)
static final int NOT_SUPPORTED
static final int SUCCEEDED
static DataKind getDataKindFromAttr(String attribute)
boolean _addDataItem(DataItemInfo dataItemInfo)
void _setRange(double base, double extent)
void removeDataItem(DataItemInfo dataItemInfo)
openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Wed Sep 7 2022 02:51:04