public interface DrawContext
Modifier and Type | Method and Description |
---|---|
int |
getBarWidth()
Gets the width (in pixels) of the bars.
|
java.awt.Rectangle |
getBounds()
Gets the bounds of the graph.
|
DataContext |
getDataContext()
Gets the data context.
|
Defaults |
getDefaults()
Gets the environment defaults such as default colors etc.
|
Settings |
getSettings()
Gets the settings of the study (as configured by the user).
|
boolean |
isSelected()
Indicates if the study is currently selected by the user.
|
java.awt.geom.Point2D |
translate(Coordinate coord)
Translates a 'real' date and value into a point on the graph.
|
java.awt.geom.Point2D |
translate(long time,
double value)
Translates a 'real' date and value into a point on the graph.
|
int |
translateTime(long time)
Translates the given time into an x coordinate on the graph.
|
int |
translateValue(double value)
Translates the given value into a y coordinate on the graph.
|
java.awt.geom.Point2D translate(long time, double value)
time
- milliseconds since 1970value
- real value (y coordinate)java.awt.geom.Point2D translate(Coordinate coord)
coord
- real coordinate (time and value)int translateTime(long time)
time
- milliseconds since 1970int translateValue(double value)
value
- real y coordinate valuejava.awt.Rectangle getBounds()
int getBarWidth()
boolean isSelected()
DataContext getDataContext()
Settings getSettings()
Defaults getDefaults()