gov.nasa.worldwind.render
Class AnnotationFlowLayout
java.lang.Object
gov.nasa.worldwind.render.AbstractAnnotationLayout
gov.nasa.worldwind.render.AnnotationFlowLayout
- All Implemented Interfaces:
- AnnotationLayoutManager
public class AnnotationFlowLayout
- extends AbstractAnnotationLayout
|
Method Summary |
protected void |
alignHorizontal(DrawContext dc,
java.awt.Rectangle bounds,
java.awt.Dimension size,
java.lang.String align)
|
protected void |
alignVertical(DrawContext dc,
java.awt.Rectangle bounds,
java.awt.Dimension size,
java.lang.String align)
|
void |
beginDrawAnnotations(DrawContext dc,
java.awt.Rectangle bounds)
|
protected void |
beginHorizontal(DrawContext dc,
java.awt.Rectangle bounds)
|
protected void |
beginVertical(DrawContext dc,
java.awt.Rectangle bounds)
|
void |
drawAnnotations(DrawContext dc,
java.awt.Rectangle bounds,
java.lang.Iterable<? extends Annotation> annotations,
double opacity,
Position pickPosition)
|
protected void |
drawHorizontal(DrawContext dc,
java.awt.Rectangle bounds,
java.lang.Iterable<? extends Annotation> annotations,
double opacity,
Position pickPosition)
|
protected void |
drawVertical(DrawContext dc,
java.awt.Rectangle bounds,
java.lang.Iterable<? extends Annotation> annotations,
double opacity,
Position pickPosition)
|
java.lang.String |
getAlignment()
|
protected static java.lang.String |
getDefaultAlignment(java.lang.String orientation)
|
int |
getHorizontalGap()
|
java.lang.String |
getOrientation()
|
java.awt.Dimension |
getPreferredSize(DrawContext dc,
java.lang.Iterable<? extends Annotation> annotations)
|
int |
getVerticalGap()
|
protected java.awt.Dimension |
horizontalPreferredSize(DrawContext dc,
java.lang.Iterable<? extends Annotation> annotations)
|
void |
setAlignment(java.lang.String alignment)
|
void |
setHorizontalGap(int hgap)
|
void |
setOrientation(java.lang.String orientation)
|
void |
setVerticalGap(int vgap)
|
protected java.awt.Dimension |
verticalPerferredSize(DrawContext dc,
java.lang.Iterable<? extends Annotation> annotations)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnnotationFlowLayout
public AnnotationFlowLayout()
AnnotationFlowLayout
public AnnotationFlowLayout(java.lang.String orientation)
AnnotationFlowLayout
public AnnotationFlowLayout(java.lang.String orientation,
int hgap,
int vgap)
AnnotationFlowLayout
public AnnotationFlowLayout(java.lang.String orientation,
java.lang.String alignment,
int hgap,
int vgap)
alignHorizontal
protected void alignHorizontal(DrawContext dc,
java.awt.Rectangle bounds,
java.awt.Dimension size,
java.lang.String align)
alignVertical
protected void alignVertical(DrawContext dc,
java.awt.Rectangle bounds,
java.awt.Dimension size,
java.lang.String align)
beginDrawAnnotations
public void beginDrawAnnotations(DrawContext dc,
java.awt.Rectangle bounds)
- Specified by:
beginDrawAnnotations in interface AnnotationLayoutManager- Overrides:
beginDrawAnnotations in class AbstractAnnotationLayout
beginHorizontal
protected void beginHorizontal(DrawContext dc,
java.awt.Rectangle bounds)
beginVertical
protected void beginVertical(DrawContext dc,
java.awt.Rectangle bounds)
drawAnnotations
public void drawAnnotations(DrawContext dc,
java.awt.Rectangle bounds,
java.lang.Iterable<? extends Annotation> annotations,
double opacity,
Position pickPosition)
drawHorizontal
protected void drawHorizontal(DrawContext dc,
java.awt.Rectangle bounds,
java.lang.Iterable<? extends Annotation> annotations,
double opacity,
Position pickPosition)
drawVertical
protected void drawVertical(DrawContext dc,
java.awt.Rectangle bounds,
java.lang.Iterable<? extends Annotation> annotations,
double opacity,
Position pickPosition)
getAlignment
public java.lang.String getAlignment()
getDefaultAlignment
protected static java.lang.String getDefaultAlignment(java.lang.String orientation)
getHorizontalGap
public int getHorizontalGap()
getOrientation
public java.lang.String getOrientation()
getPreferredSize
public java.awt.Dimension getPreferredSize(DrawContext dc,
java.lang.Iterable<? extends Annotation> annotations)
getVerticalGap
public int getVerticalGap()
horizontalPreferredSize
protected java.awt.Dimension horizontalPreferredSize(DrawContext dc,
java.lang.Iterable<? extends Annotation> annotations)
setAlignment
public void setAlignment(java.lang.String alignment)
setHorizontalGap
public void setHorizontalGap(int hgap)
setOrientation
public void setOrientation(java.lang.String orientation)
setVerticalGap
public void setVerticalGap(int vgap)
verticalPerferredSize
protected java.awt.Dimension verticalPerferredSize(DrawContext dc,
java.lang.Iterable<? extends Annotation> annotations)