public interface ViewChartPanel extends Observer
Modifier and Type | Method and Description |
---|---|
void |
drawHorizontalAxisTrace(Graphics2D g2,
int x)
Draws a vertical line used to trace the mouse position to the horizontal
axis.
|
void |
drawVerticalAxisTrace(Graphics2D g2,
int y)
Draws a horizontal line used to trace the mouse position to the vertical
axis.
|
JPanel |
getComponent()
This method return the implementation of itself that extends JPanel
|
GroupedCharts |
getOverlayChart() |
boolean |
isHorizontalAxisTrace() |
boolean |
isVerticalAxisTrace() |
void |
setHorizontalAxisTrace(boolean horizontalAxisTrace) |
void |
setOverlayChart(GroupedCharts chartService) |
void |
setVerticalAxisTrace(boolean verticalAxisTrace) |
boolean isHorizontalAxisTrace()
void setHorizontalAxisTrace(boolean horizontalAxisTrace)
boolean isVerticalAxisTrace()
void setVerticalAxisTrace(boolean verticalAxisTrace)
void drawVerticalAxisTrace(Graphics2D g2, int y)
g2
- the graphics device.y
- the y-coordinate of the trace line.void drawHorizontalAxisTrace(Graphics2D g2, int x)
g2
- the graphics device.x
- the x-coordinate of the trace line.GroupedCharts getOverlayChart()
JPanel getComponent()
void setOverlayChart(GroupedCharts chartService)