Package uk.ac.starlink.ttools.plot
Class BarStyle.Form
java.lang.Object
uk.ac.starlink.ttools.plot.BarStyle.Form
- Enclosing class:
BarStyle
Describes the form of a bar style, that is what each bar looks like.
-
Constructor Details
-
Form
-
-
Method Details
-
drawBar
Draws a bar. The whole region described byx
,y
,width
andheight
is available for drawing in.- Parameters:
g
- graphics contextx
- left X coordinate of region (lowest X value permitted)y
- lower Y coordinate of region (lowest Y value permitted)width
- width of region (x+width is highest X value permitted)height
- height of region (y+height is highest Y value permitted)
-
drawEdge
Draws the edge of a bar. This can be invoked to draw the boundary between one bar and its immediate neighbour; the edge described by the call's parameters is not the edge of the block representing the bar's data, but the edge between the current bar and its neighbour on one side or the other, so it may go up or down from the Y value.The default implementation does nothing, which is correct for many forms.
- Parameters:
g
- graphics contextx
- x position of the edgey1
- one y value of the edgey2
- other y value of the edge
-
isOpaque
public boolean isOpaque()Indicates whether this bar form is as opaque as the colour of the supplied graphics context. If it adjusts the alpha of the supplied colour, it must return false.- Returns:
- true iff alpha is not adjusted
-
toString
-