Class LineStyle
java.lang.Object
uk.ac.starlink.ttools.plot2.layer.LineStyle
- All Implemented Interfaces:
Style
- Direct Known Subclasses:
AuxLineStyle,FunctionPlotter.FunctionStyle,Stats1Plotter.StatsStyle
Plotting style for continuous lines.
- Since:
- 13 Jun 2013
- Author:
- Mark Taylor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateLineTracer(Graphics g, Rectangle bounds, int nwork, boolean isPixel) Convenience method to return a line tracer that will use this style.booleanbooleanIndicates whether the line will be antialiased in suitable (bitmapped) contexts.getColor()Returns the line colour.Returns an icon suitable for displaying in a legend for this style.Returns the object used to stroke the line.inthashCode()
-
Constructor Details
-
LineStyle
Constructor.- Parameters:
color- line colourstroke- line strokeantialias- whether line is to be antialiased (only likely to make a difference on bitmapped paper)
-
-
Method Details
-
getColor
Returns the line colour.- Returns:
- colour
-
getStroke
Returns the object used to stroke the line.- Returns:
- stroke
-
getAntialias
public boolean getAntialias()Indicates whether the line will be antialiased in suitable (bitmapped) contexts.- Returns:
- true for antialiasing
-
getLegendIcon
Description copied from interface:StyleReturns an icon suitable for displaying in a legend for this style.- Specified by:
getLegendIconin interfaceStyle
-
createLineTracer
Convenience method to return a line tracer that will use this style.- Parameters:
g- graphics contextbounds- clip boundsnwork- workspace array sizeisPixel- if true graphics context is considered pixellised- Returns:
- new line tracer
-
equals
-
hashCode
public int hashCode()
-