uk.ac.starlink.ttools.plot
Class MarkShape

java.lang.Object
  extended by uk.ac.starlink.ttools.plot.MarkShape

public abstract class MarkShape
extends Object

Defines the abstract shape of a MarkStyle. Instances of this class are factories which can produce a family of MarkStyle objects with a shape which is in some sense the same, but of various sizes and colours.

Since:
9 Jan 2006
Author:
Mark Taylor

Field Summary
static MarkShape CROSS
          Factory for cross-hair markers.
static MarkShape CROXX
          Factory for X-shaped markers.
static MarkShape FILLED_CIRCLE
          Factory for filled circle markers.
static MarkShape FILLED_DIAMOND
          Factory for filled diamond shaped markers.
static MarkShape FILLED_SQUARE
          Factory for filled square markers.
static MarkShape FILLED_TRIANGLE_DOWN
          Factory for filled triangle shaped markers with point at the bottom.
static MarkShape FILLED_TRIANGLE_UP
          Factory for filled triangle shaped markers with point at the top.
static MarkShape OPEN_CIRCLE
          Factory for open circle markers.
static MarkShape OPEN_DIAMOND
          Factory for open diamond shaped markers.
static MarkShape OPEN_SQUARE
          Factory for open square markers.
static MarkShape OPEN_TRIANGLE_DOWN
          Factory for open triangle shaped markers with point at the bottom.
static MarkShape OPEN_TRIANGLE_UP
          Factory for open triangle shaped markers with point at the top.
static MarkShape POINT
          Factory for point-like markers.
 
Constructor Summary
MarkShape(String name)
          Constructor.
 
Method Summary
abstract  MarkStyle getStyle(Color color, int size)
          Factory method which produces a MarkStyle of the shape characteristic of this object with specified colour and nominal size.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

POINT

public static final MarkShape POINT
Factory for point-like markers. The size parameter is ignored.


OPEN_CIRCLE

public static final MarkShape OPEN_CIRCLE
Factory for open circle markers.


FILLED_CIRCLE

public static final MarkShape FILLED_CIRCLE
Factory for filled circle markers.


OPEN_SQUARE

public static final MarkShape OPEN_SQUARE
Factory for open square markers.


FILLED_SQUARE

public static final MarkShape FILLED_SQUARE
Factory for filled square markers.


CROSS

public static final MarkShape CROSS
Factory for cross-hair markers.


CROXX

public static final MarkShape CROXX
Factory for X-shaped markers.


OPEN_DIAMOND

public static final MarkShape OPEN_DIAMOND
Factory for open diamond shaped markers.


FILLED_DIAMOND

public static final MarkShape FILLED_DIAMOND
Factory for filled diamond shaped markers.


OPEN_TRIANGLE_UP

public static final MarkShape OPEN_TRIANGLE_UP
Factory for open triangle shaped markers with point at the top.


OPEN_TRIANGLE_DOWN

public static final MarkShape OPEN_TRIANGLE_DOWN
Factory for open triangle shaped markers with point at the bottom.


FILLED_TRIANGLE_UP

public static final MarkShape FILLED_TRIANGLE_UP
Factory for filled triangle shaped markers with point at the top.


FILLED_TRIANGLE_DOWN

public static final MarkShape FILLED_TRIANGLE_DOWN
Factory for filled triangle shaped markers with point at the bottom.

Constructor Detail

MarkShape

public MarkShape(String name)
Constructor.

Parameters:
name - shape name
Method Detail

getStyle

public abstract MarkStyle getStyle(Color color,
                                   int size)
Factory method which produces a MarkStyle of the shape characteristic of this object with specified colour and nominal size.

Parameters:
color - colour of style
size - nominal size of style - any integer, or at least any integer >0 should give a reasonable image

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009 Central Laboratory of the Research Councils. All Rights Reserved.