|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.plot2.layer.LineStyle
public class LineStyle
Plotting style for continuous lines.
Constructor Summary | |
---|---|
LineStyle(Color color,
Stroke stroke,
boolean antialias)
Constructor. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LineStyle(Color color, Stroke stroke, boolean antialias)
color
- line colourstroke
- line strokeantialias
- whether line is to be antialiased
(only likely to make a difference on bitmapped paper)Method Detail |
---|
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 pixellised
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |