Package 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
-
-
Field Summary
-
Fields inherited from class gov.nasa.worldwind.render.AbstractAnnotationLayout
pickSupport, stackHandler
-
-
Constructor Summary
Constructors Constructor Description AnnotationFlowLayout()
AnnotationFlowLayout(java.lang.String orientation)
AnnotationFlowLayout(java.lang.String orientation, int hgap, int vgap)
AnnotationFlowLayout(java.lang.String orientation, java.lang.String alignment, int hgap, int vgap)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 gov.nasa.worldwind.render.AbstractAnnotationLayout
drawAnnotation, endDrawAnnotations, getAnnotationSize, getPickSupport, setPickSupport
-
-
-
-
Constructor Detail
-
AnnotationFlowLayout
public AnnotationFlowLayout(java.lang.String orientation, java.lang.String alignment, int hgap, int vgap)
-
AnnotationFlowLayout
public AnnotationFlowLayout(java.lang.String orientation, int hgap, int vgap)
-
AnnotationFlowLayout
public AnnotationFlowLayout(java.lang.String orientation)
-
AnnotationFlowLayout
public AnnotationFlowLayout()
-
-
Method Detail
-
getDefaultAlignment
protected static java.lang.String getDefaultAlignment(java.lang.String orientation)
-
getOrientation
public java.lang.String getOrientation()
-
setOrientation
public void setOrientation(java.lang.String orientation)
-
getAlignment
public java.lang.String getAlignment()
-
setAlignment
public void setAlignment(java.lang.String alignment)
-
getHorizontalGap
public int getHorizontalGap()
-
setHorizontalGap
public void setHorizontalGap(int hgap)
-
getVerticalGap
public int getVerticalGap()
-
setVerticalGap
public void setVerticalGap(int vgap)
-
getPreferredSize
public java.awt.Dimension getPreferredSize(DrawContext dc, java.lang.Iterable<? extends Annotation> annotations)
-
drawAnnotations
public void drawAnnotations(DrawContext dc, java.awt.Rectangle bounds, java.lang.Iterable<? extends Annotation> annotations, double opacity, Position pickPosition)
-
beginDrawAnnotations
public void beginDrawAnnotations(DrawContext dc, java.awt.Rectangle bounds)
- Specified by:
beginDrawAnnotations
in interfaceAnnotationLayoutManager
- Overrides:
beginDrawAnnotations
in classAbstractAnnotationLayout
-
horizontalPreferredSize
protected java.awt.Dimension horizontalPreferredSize(DrawContext dc, java.lang.Iterable<? extends Annotation> annotations)
-
verticalPerferredSize
protected java.awt.Dimension verticalPerferredSize(DrawContext dc, java.lang.Iterable<? extends Annotation> annotations)
-
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)
-
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)
-
beginHorizontal
protected void beginHorizontal(DrawContext dc, java.awt.Rectangle bounds)
-
beginVertical
protected void beginVertical(DrawContext dc, java.awt.Rectangle bounds)
-
-