com.googlecode.charts4j
Class Markers

java.lang.Object
  extended by com.googlecode.charts4j.Markers

public final class Markers
extends Object

Static factory class for Marker hierarchy.

Author:
Julien Chastang (julien.c.chastang at gmail dot com)

Method Summary
static Marker newShapeMarker(Shape shape, Color color, int size)
          Static factory method to instantiate new ShapeMarker.
static Marker newShapeMarker(Shape shape, Color color, int size, Priority priority)
          Static factory method to instantiate new ShapeMarker.
static Marker newTextMarker(String text, Color color, int size)
          Static factory method to instantiate new TextMarker.
static Marker newTextMarker(String text, Color color, int size, Priority priority)
          Static factory method to instantiate new TextMarker.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newTextMarker

public static Marker newTextMarker(String text,
                                   Color color,
                                   int size)
Static factory method to instantiate new TextMarker.

Parameters:
text - The text of the marker. Cannot be null.
color - The color of text marker. Cannot be null.
size - The size of text marker. Must be > 0.
Returns:
The text marker.

newShapeMarker

public static Marker newShapeMarker(Shape shape,
                                    Color color,
                                    int size)
Static factory method to instantiate new ShapeMarker.

Parameters:
shape - The shape of the marker (arrows, diamonds, etc.). Cannot be null.
color - The color of the shape marker. Cannot be null.
size - The size of the shape marker. Must be > 0.
Returns:
The shape marker.

newTextMarker

public static Marker newTextMarker(String text,
                                   Color color,
                                   int size,
                                   Priority priority)
Static factory method to instantiate new TextMarker.

Parameters:
text - The text of the marker. Cannot be null.
color - The color of text marker. Cannot be null.
size - The size of text marker. Must be > 0.
priority - The marker priority. Cannot be null.
Returns:
The text marker.

newShapeMarker

public static Marker newShapeMarker(Shape shape,
                                    Color color,
                                    int size,
                                    Priority priority)
Static factory method to instantiate new ShapeMarker.

Parameters:
shape - The shape of the marker. Cannot be null.
color - The color of shape marker. Cannot be null.
size - The size of shape marker. Must be > 0.
priority - The marker priority. Cannot be null.
Returns:
The shape marker