org.knime.core.data.property
Class ShapeFactory

java.lang.Object
  extended by org.knime.core.data.property.ShapeFactory

public final class ShapeFactory
extends Object

Abstract class for different drawable shapes.

Author:
Fabian Dill, University of Konstanz

Nested Class Summary
static class ShapeFactory.Shape
          Abstract implementation of a shape.
 
Field Summary
static String ASTERISK
          Name of and key for the asterisk.
static String CIRCLE
          Name of and key for the circle.
static String CROSS
          Name of and key for the cross.
static String DEFAULT
          Name of and key for the default shape.
static String DIAMOND
          Name of and key for the diamond.
static String HORIZONTAL_LINE
          Name of and key for the horizontal line.
static String RECTANGLE
          Name of and key for the rectangle.
static String REVERSE_TRIANGLE
          Name of and key for the reverse triangle.
static String TRIANGLE
          Name of and key for the triangle.
static String VERTICAL_LINE
          Name of and key for the vertical line.
static String X_SHAPE
          Name of and key for the "X".
 
Method Summary
static ShapeFactory.Shape getShape(String name)
           
static Set<ShapeFactory.Shape> getShapes()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RECTANGLE

public static final String RECTANGLE
Name of and key for the rectangle.

See Also:
Constant Field Values

CIRCLE

public static final String CIRCLE
Name of and key for the circle.

See Also:
Constant Field Values

TRIANGLE

public static final String TRIANGLE
Name of and key for the triangle.

See Also:
Constant Field Values

REVERSE_TRIANGLE

public static final String REVERSE_TRIANGLE
Name of and key for the reverse triangle.

See Also:
Constant Field Values

DIAMOND

public static final String DIAMOND
Name of and key for the diamond.

See Also:
Constant Field Values

CROSS

public static final String CROSS
Name of and key for the cross.

See Also:
Constant Field Values

ASTERISK

public static final String ASTERISK
Name of and key for the asterisk.

See Also:
Constant Field Values

X_SHAPE

public static final String X_SHAPE
Name of and key for the "X".

See Also:
Constant Field Values

HORIZONTAL_LINE

public static final String HORIZONTAL_LINE
Name of and key for the horizontal line.

See Also:
Constant Field Values

VERTICAL_LINE

public static final String VERTICAL_LINE
Name of and key for the vertical line.

See Also:
Constant Field Values

DEFAULT

public static final String DEFAULT
Name of and key for the default shape.

See Also:
Constant Field Values
Method Detail

getShapes

public static Set<ShapeFactory.Shape> getShapes()
Returns:
all registered shapes.

getShape

public static ShapeFactory.Shape getShape(String name)
Parameters:
name - the name of the shape (also shape.toString() value).
Returns:
the referring shape or a rectangle if the name couldn't resolved.


Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.