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