com.googlecode.gchart.client
Class GChart.AnnotationLocation

java.lang.Object
  extended by com.googlecode.gchart.client.GChart.AnnotationLocation
Enclosing class:
GChart

public static final class GChart.AnnotationLocation
extends java.lang.Object

Defines the location of a data point's annotation (text label) relative to the location of that point's symbol. The default annotation location is SOUTH. See the "Field Summary" section below for the list of the available annotation locations.

You can further adjust the position of a point's annotation by specifying non-zero positional shifts via the setAnnotationXShift and setAnnotationYShift methods.

See Also:
Point.setAnnotationLocation, Point.setAnnotationXShift, Point.setAnnotationYShift

Field Summary
static GChart.AnnotationLocation CENTER
          Specifies that a point's annotation (label) should be positioned so as to be centered on the symbol used to represent the point.
static GChart.AnnotationLocation CLOSEST_TO_HORIZONTAL_BASELINE
          Specifies that a point's annotation (label) should be placed just above, and centered horizontally on, vertical bars that grow down from a horizontal baseline, and just below, and centered horizontally on, vertical bars that grow up from a horizontal baseline.
static GChart.AnnotationLocation CLOSEST_TO_VERTICAL_BASELINE
          Specifies that a point's annotation (label) should be placed just to the right of, and centered vertically on, horizontal bars that grow left from a vertical baseline, and just to the left of, and centered vertically on, horizontal bars that grow right from a vertical baseline.
static GChart.AnnotationLocation EAST
          Specifies that a point's annotation (label) should be positioned just to the right of, and vertically centered on, the symbol used to represent the point.
static GChart.AnnotationLocation FARTHEST_FROM_HORIZONTAL_BASELINE
          Specifies that a point's annotation (label) should be placed just below, and centered horizontally on, vertical bars that grow down from a horizontal baseline, and just above, and centered horizontally on, vertical bars that grow up from a horizontal baseline.
static GChart.AnnotationLocation FARTHEST_FROM_VERTICAL_BASELINE
          Specifies that a point's annotation (label) should be placed just to the left of, and centered vertically on, horizontal bars that grow left from a vertical baseline, and just to the right of, and centered vertically on, horizontal bars that grow right from a vertical baseline.
static GChart.AnnotationLocation INSIDE_PIE_ARC
          Specifies that a point's annotation (label) should be positioned just inside, and centered on, the arc side of a pie slice.
static GChart.AnnotationLocation NORTH
          Specifies that a point's annotation (label) should be positioned just above, and horizontally centered on, the symbol used to represent the point.
static GChart.AnnotationLocation NORTHEAST
          Specifies that a point's annotation (label) should be positioned just to the right of and above, the symbol used to represent the point.
static GChart.AnnotationLocation NORTHWEST
          Specifies that a point's annotation (label) should be positioned just to the left of and above, the symbol used to represent the point.
static GChart.AnnotationLocation ON_PIE_ARC
          Specifies that a point's annotation (label) should be centered on the center-point of the arc side of a pie slice.
static GChart.AnnotationLocation OUTSIDE_PIE_ARC
          Specifies that a point's annotation (label) should be positioned just outside, and centered on, the arc side of a pie slice.
static GChart.AnnotationLocation SOUTH
          Specifies that a point's annotation (label) should be positioned just below, and horizontally centered on, the symbol used to represent the point.
static GChart.AnnotationLocation SOUTHEAST
          Specifies that a point's annotation (label) should be positioned just to the right of and below, the symbol used to represent the point.
static GChart.AnnotationLocation SOUTHWEST
          Specifies that a point's annotation (label) should be positioned just to the left of and below, the symbol used to represent the point.
static GChart.AnnotationLocation WEST
          Specifies that a point's annotation (label) should be positioned just to the left of, and vertically centered on, the symbol used to represent the point.
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CENTER

public static final GChart.AnnotationLocation CENTER
Specifies that a point's annotation (label) should be positioned so as to be centered on the symbol used to represent the point.

See Also:
setAnnotationLocation

ON_PIE_ARC

public static final GChart.AnnotationLocation ON_PIE_ARC
Specifies that a point's annotation (label) should be centered on the center-point of the arc side of a pie slice.

You can move a pie slice's annotation a specific number of pixels radially away from (or towards) the pie center by passing a positive (or negative) argument to the associated Point's setAnnotationXShift method.

This is pie-friendly synonym for, and when used with non-pie symbol types will behave exactly the same as, AnnotationLocation.CENTER

See Also:
OUTSIDE_PIE_ARC, INSIDE_PIE_ARC, setAnnotationLocation, CENTER

EAST

public static final GChart.AnnotationLocation EAST
Specifies that a point's annotation (label) should be positioned just to the right of, and vertically centered on, the symbol used to represent the point.

See Also:
GChart.Point.setAnnotationLocation(com.googlecode.gchart.client.GChart.AnnotationLocation)

FARTHEST_FROM_VERTICAL_BASELINE

public static final GChart.AnnotationLocation FARTHEST_FROM_VERTICAL_BASELINE
Specifies that a point's annotation (label) should be placed just to the left of, and centered vertically on, horizontal bars that grow left from a vertical baseline, and just to the right of, and centered vertically on, horizontal bars that grow right from a vertical baseline.

This another name for AnnotationLocation.EAST. Its sole purpose is to clarify/document the behavior of this location type when used in conjunction with curves that employ the HBAR_BASELINE_* family of symbol types.

See Also:
setAnnotationLocation, SymbolType.HBAR_BASELINE_CENTER

NORTH

public static final GChart.AnnotationLocation NORTH
Specifies that a point's annotation (label) should be positioned just above, and horizontally centered on, the symbol used to represent the point.

See Also:
setAnnotationLocation

CLOSEST_TO_HORIZONTAL_BASELINE

public static final GChart.AnnotationLocation CLOSEST_TO_HORIZONTAL_BASELINE
Specifies that a point's annotation (label) should be placed just above, and centered horizontally on, vertical bars that grow down from a horizontal baseline, and just below, and centered horizontally on, vertical bars that grow up from a horizontal baseline.

This another name for AnnotationLocation.NORTH. Its sole purpose is to clarify/document the behavior of this location type when used in conjunction with curves that employ VBAR_BASELINE_* symbol types.

See Also:
setAnnotationLocation, SymbolType.VBAR_BASELINE_CENTER

INSIDE_PIE_ARC

public static final GChart.AnnotationLocation INSIDE_PIE_ARC
Specifies that a point's annotation (label) should be positioned just inside, and centered on, the arc side of a pie slice.

You can move a pie slice's annotation a specific number of pixels radially away from (or towards) the pie center by passing a positive (or negative) argument to the associated Point's setAnnotationXShift method.

This is pie-friendly synonym for, and when used with non-pie symbol types will behave exactly the same as, AnnotationLocation.NORTH

See Also:
OUTSIDE_PIE_ARC, ON_PIE_ARC, setAnnotationLocation, NORTH

NORTHEAST

public static final GChart.AnnotationLocation NORTHEAST
Specifies that a point's annotation (label) should be positioned just to the right of and above, the symbol used to represent the point.

See Also:
GChart.Point.setAnnotationLocation(com.googlecode.gchart.client.GChart.AnnotationLocation)

NORTHWEST

public static final GChart.AnnotationLocation NORTHWEST
Specifies that a point's annotation (label) should be positioned just to the left of and above, the symbol used to represent the point.

See Also:
GChart.Point.setAnnotationLocation(com.googlecode.gchart.client.GChart.AnnotationLocation)

SOUTH

public static final GChart.AnnotationLocation SOUTH
Specifies that a point's annotation (label) should be positioned just below, and horizontally centered on, the symbol used to represent the point.

See Also:
setAnnotationLocation

FARTHEST_FROM_HORIZONTAL_BASELINE

public static final GChart.AnnotationLocation FARTHEST_FROM_HORIZONTAL_BASELINE
Specifies that a point's annotation (label) should be placed just below, and centered horizontally on, vertical bars that grow down from a horizontal baseline, and just above, and centered horizontally on, vertical bars that grow up from a horizontal baseline.

This another name for AnnotationLocation.SOUTH. Its sole purpose is to clarify/document the behavior of this location type when used in conjunction with curves that employ VBAR_BASELINE_* symbol types.

See Also:
setAnnotationLocation, SymbolType.VBAR_BASELINE_CENTER

OUTSIDE_PIE_ARC

public static final GChart.AnnotationLocation OUTSIDE_PIE_ARC
Specifies that a point's annotation (label) should be positioned just outside, and centered on, the arc side of a pie slice.

You can move a pie slice's annotation a specific number of pixels radially away from (or towards) the pie center by passing a positive (or negative) argument to the associated Point's setAnnotationXShift method.

This is pie-friendly synonym for, and when used with non-pie symbol types will behave exactly the same as, AnnotationLocation.SOUTH

See Also:
INSIDE_PIE_ARC, ON_PIE_ARC, setAnnotationLocation, setAnnotationXShift, SOUTH

SOUTHEAST

public static final GChart.AnnotationLocation SOUTHEAST
Specifies that a point's annotation (label) should be positioned just to the right of and below, the symbol used to represent the point.

See Also:
setAnnotationLocation

SOUTHWEST

public static final GChart.AnnotationLocation SOUTHWEST
Specifies that a point's annotation (label) should be positioned just to the left of and below, the symbol used to represent the point.

See Also:
setAnnotationLocation

WEST

public static final GChart.AnnotationLocation WEST
Specifies that a point's annotation (label) should be positioned just to the left of, and vertically centered on, the symbol used to represent the point.

See Also:
setAnnotationLocation

CLOSEST_TO_VERTICAL_BASELINE

public static final GChart.AnnotationLocation CLOSEST_TO_VERTICAL_BASELINE
Specifies that a point's annotation (label) should be placed just to the right of, and centered vertically on, horizontal bars that grow left from a vertical baseline, and just to the left of, and centered vertically on, horizontal bars that grow right from a vertical baseline.

This another name for AnnotationLocation.WEST. Its sole purpose is to clarify/document the behavior of this location type when used in conjunction with curves that employ the HBAR_BASELINE_* symbol types.

See Also:
setAnnotationLocation, SymbolType.HBAR_BASELINE_CENTER


Copyright © 2007 John C. Gunther. All Rights Reserved.