Package uk.ac.starlink.ttools.plot
Class MarkStyles
- java.lang.Object
-
- uk.ac.starlink.ttools.plot.MarkStyles
-
public class MarkStyles extends java.lang.Object
Provides several factory methods for constructing StyleSets which dispenseMarkStyle
s.- Since:
- 4 Nov 2005
- Author:
- Mark Taylor
-
-
Constructor Summary
Constructors Constructor Description MarkStyles()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StyleSet
dashedLines(java.lang.String name)
Returns a style set which draws black lines with variable dash patterns.static StyleSet
faded(java.lang.String name, StyleSet base, int opaqueLimit)
Returns a StyleSet based on another one but with a given opaque limit for each of the dispensed styles.static StyleSet
filledShapes(java.lang.String name, int size, java.awt.Color color)
Returns a style set which gives filled shapes of various kinds.static javax.swing.Icon
getIcon(StyleSet styleSet)
Returns an icon which represents a given marker style set.static StyleSet
lines(java.lang.String name)
Returns a style set which draws lines using a default sequence of colours.static StyleSet
lines(java.lang.String name, java.awt.Color[] colors)
Returns a style set which draws lines using a given sequence of colours.static StyleSet
openShapes(java.lang.String name, int size, java.awt.Color color)
Returns a style set which gives line-drawn shapes of various kinds.static StyleSet
points(java.lang.String name)
Returns a style set which gives pixels in a variety of colours.static StyleSet
points(java.lang.String name, java.awt.Color[] colors)
Returns a style set which gives pixels using a given sequence of colours.static StyleSet
spots(java.lang.String name, int size)
Returns a style set which gives filled circles of a given size in a variety of colours.
-
-
-
Method Detail
-
points
public static StyleSet points(java.lang.String name)
Returns a style set which gives pixels in a variety of colours.- Parameters:
name
- set name- Returns:
- style set providing coloured pixels
-
points
public static StyleSet points(java.lang.String name, java.awt.Color[] colors)
Returns a style set which gives pixels using a given sequence of colours.- Parameters:
name
- set namecolors
- colour sequence- Returns:
- style set providing coloured pixels
-
spots
public static StyleSet spots(java.lang.String name, int size)
Returns a style set which gives filled circles of a given size in a variety of colours.- Parameters:
name
- set namesize
- approximate radius of markers- Returns:
- style set providing coloured spots
-
openShapes
public static StyleSet openShapes(java.lang.String name, int size, java.awt.Color color)
Returns a style set which gives line-drawn shapes of various kinds.- Parameters:
name
- set namesize
- approximate radius of markerscolor
- color of markers, or null for various- Returns:
- style set providing open shapes
-
filledShapes
public static StyleSet filledShapes(java.lang.String name, int size, java.awt.Color color)
Returns a style set which gives filled shapes of various kinds.- Parameters:
name
- set namesize
- approximate radius of markerscolor
- color of markers, or null for various- Returns:
- style set providing filled shapes
-
faded
public static StyleSet faded(java.lang.String name, StyleSet base, int opaqueLimit)
Returns a StyleSet based on another one but with a given opaque limit for each of the dispensed styles.- Parameters:
name
- name of the returned style setbase
- style set on which the returns will be basedopaqueLimit
- initial opaque limit of styles dispensed by the return- Returns:
- new style set
-
getIcon
public static javax.swing.Icon getIcon(StyleSet styleSet)
Returns an icon which represents a given marker style set. It consists of a row of example legends corresponding to the set.- Parameters:
styleSet
- style set- Returns:
- icon for
styles
-
lines
public static StyleSet lines(java.lang.String name)
Returns a style set which draws lines using a default sequence of colours.- Parameters:
name
- set name- Returns:
- style set providing coloured lines
-
lines
public static StyleSet lines(java.lang.String name, java.awt.Color[] colors)
Returns a style set which draws lines using a given sequence of colours.- Parameters:
name
- set namecolors
- colour sequence- Returns:
- style set providing coloured lines
-
dashedLines
public static StyleSet dashedLines(java.lang.String name)
Returns a style set which draws black lines with variable dash patterns.- Parameters:
name
- set name
-
-