Package uk.ac.starlink.ttools.plot
Class MarkStyles
java.lang.Object
uk.ac.starlink.ttools.plot.MarkStyles
Provides several factory methods for constructing StyleSets
which dispense
MarkStyles.- Since:
- 4 Nov 2005
- Author:
- Mark Taylor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StyleSetdashedLines(String name) Returns a style set which draws black lines with variable dash patterns.static StyleSetReturns a StyleSet based on another one but with a given opaque limit for each of the dispensed styles.static StyleSetfilledShapes(String name, int size, Color color) Returns a style set which gives filled shapes of various kinds.static IconReturns an icon which represents a given marker style set.static StyleSetReturns a style set which draws lines using a default sequence of colours.static StyleSetReturns a style set which draws lines using a given sequence of colours.static StyleSetopenShapes(String name, int size, Color color) Returns a style set which gives line-drawn shapes of various kinds.static StyleSetReturns a style set which gives pixels in a variety of colours.static StyleSetReturns a style set which gives pixels using a given sequence of colours.static StyleSetReturns a style set which gives filled circles of a given size in a variety of colours.
-
Constructor Details
-
MarkStyles
public MarkStyles()
-
-
Method Details
-
points
Returns a style set which gives pixels in a variety of colours.- Parameters:
name- set name- Returns:
- style set providing coloured pixels
-
points
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
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
Returns a style set which gives line-drawn shapes of various kinds.- Parameters:
name- set namesize- approximate radius of markerscolor- color of markers, ornullfor various- Returns:
- style set providing open shapes
-
filledShapes
Returns a style set which gives filled shapes of various kinds.- Parameters:
name- set namesize- approximate radius of markerscolor- color of markers, ornullfor various- Returns:
- style set providing filled shapes
-
faded
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
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
Returns a style set which draws lines using a default sequence of colours.- Parameters:
name- set name- Returns:
- style set providing coloured lines
-
lines
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
Returns a style set which draws black lines with variable dash patterns.- Parameters:
name- set name
-