public class LineStyle extends Object implements Style
Constructor and Description |
---|
LineStyle(Color color,
Stroke stroke,
boolean antialias)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
LineTracer |
createLineTracer(Graphics g,
Rectangle bounds,
int nwork,
boolean isPixel)
Convenience method to return a line tracer that will use this style.
|
boolean |
equals(Object o) |
boolean |
getAntialias()
Indicates whether the line will be antialiased in suitable
(bitmapped) contexts.
|
Color |
getColor()
Returns the line colour.
|
Icon |
getLegendIcon()
Returns an icon suitable for displaying in a legend for this style.
|
Stroke |
getStroke()
Returns the object used to stroke the line.
|
int |
hashCode() |
public Color getColor()
public Stroke getStroke()
public boolean getAntialias()
public Icon getLegendIcon()
Style
getLegendIcon
in interface Style
public LineTracer createLineTracer(Graphics g, Rectangle bounds, int nwork, boolean isPixel)
g
- graphics contextbounds
- clip boundsnwork
- workspace array sizeisPixel
- if true graphics context is considered pixellisedCopyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.