|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bbn.openmap.omGraphics.geom.BasicGeometry com.bbn.openmap.omGraphics.OMGraphicAdapter com.bbn.openmap.omGraphics.OMAbstractLine
public abstract class OMAbstractLine
The abstract base class of OMPoly and OMLine.
OMLine
,
OMPoly
,
Serialized FormField Summary | |
---|---|
protected OMArrowHead |
arrowhead
The awt object representing the arrowhead. |
protected int |
nsegs
Number of segments to draw (used only for LINETYPE_GREATCIRCLE or LINETYPE_RHUMB lines). |
protected float[][] |
xpoints
X coordinate arrays of the projected points. |
protected float[][] |
ypoints
Y coordinate arrays of the projected points. |
Fields inherited from class com.bbn.openmap.omGraphics.OMGraphicAdapter |
---|
declutterType, displayPaint, edgeMatchesFill, fillPaint, hasLabel, linePaint, matted, mattingPaint, renderType, selected, selectPaint, showEditablePalette, stroke, textureMask |
Fields inherited from class com.bbn.openmap.omGraphics.geom.BasicGeometry |
---|
attributes, lineType, needToRegenerate, shape, visible |
Constructor Summary | |
---|---|
OMAbstractLine()
Construct a default OMAbstractLine. |
|
OMAbstractLine(int rType,
int lType,
int dcType)
Construct an OMAbstractLine. |
|
OMAbstractLine(int rType,
int lType,
int dcType,
java.awt.Color lc,
java.awt.Color fc,
java.awt.Color sc)
Construct an OMAbstractLine. |
Method Summary | |
---|---|
void |
addArrowHead(boolean value)
Turn the ArrowHead on/off. |
void |
addArrowHead(int directionType)
Turn the ArrowHead on. |
void |
addArrowHead(int directionType,
int location)
Turn the ArrowHead on. |
void |
addArrowHead(int directionType,
int location,
int tipWidth,
int arrowLength)
Turn the ArrowHead on. |
java.awt.geom.GeneralPath |
createArrowHeads()
Deprecated. Create an OMArrowHead and set it on the OMAbstractLine instead. |
int |
getArrowDirectionType()
Arrowhead function, to find out the arrowhead direction. |
OMArrowHead |
getArrowHead()
|
int |
getArrowLocation()
Arrowhead function, to find out the arrowhead location. |
int |
getWingLength()
Arrowhead function, to find out the arrowhead length. |
int |
getWingTip()
Arrowhead function, to find out the wing tip width. |
boolean |
hasArrowHead()
|
void |
restore(OMGraphic source)
|
void |
setArrowHead(OMArrowHead omah)
Set the OMArrowHead object on the OMAbstractLine. |
Methods inherited from class com.bbn.openmap.omGraphics.geom.BasicGeometry |
---|
_distance, appendShapeEdge, appendShapeEdge, appendShapeEdge, appendShapeEdge, clearAttributes, contains, createAttributeMap, createBoxShape, createShape, createShape, describeShapeDetail, describeShapeDetail, distanceToEdge, distanceToEdge, draw, draw, fill, fill, getAppObject, getAttribute, getAttributes, getDescription, getLineType, getNeedToRegenerate, getShape, isRenderable, isRenderable, isVisible, putAttribute, removeAttribute, setAppObject, setAttributes, setLineType, setNeedToRegenerate, setShape, setVisible |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.bbn.openmap.omGraphics.OMGeometry |
---|
clearAttributes, contains, distance, distanceToEdge, draw, draw, fill, fill, generate, getAppObject, getAttribute, getAttributes, getDescription, getLineType, getNeedToRegenerate, getShape, isRenderable, isRenderable, isVisible, putAttribute, removeAttribute, render, restore, setAppObject, setAttributes, setLineType, setNeedToRegenerate, setShape, setVisible |
Field Detail |
---|
protected float[][] xpoints
protected float[][] ypoints
protected int nsegs
protected OMArrowHead arrowhead
Constructor Detail |
---|
public OMAbstractLine()
public OMAbstractLine(int rType, int lType, int dcType)
rType
- render typelType
- line typedcType
- declutter typepublic OMAbstractLine(int rType, int lType, int dcType, java.awt.Color lc, java.awt.Color fc, java.awt.Color sc)
rType
- render typelType
- line typedcType
- declutter typelc
- line colorfc
- fill colorsc
- select colorMethod Detail |
---|
public void addArrowHead(boolean value)
value
- on/offpublic void setArrowHead(OMArrowHead omah)
omah
- public OMArrowHead getArrowHead()
public boolean hasArrowHead()
public void addArrowHead(int directionType)
directionType
- which way to point the arrow head.public void addArrowHead(int directionType, int location)
directionType
- which way to point the arrow head.location
- where on the line to put the arrow head - 0 for
the starting point, 100 for the end.public void addArrowHead(int directionType, int location, int tipWidth, int arrowLength)
directionType
- which way to point the arrow head.location
- where on the line to put the arrow head - 0 for
the starting point, 100 for the end.tipWidth
- the width factor for the base of the arrowhead,
on one side of the line. (Default is 5)arrowLength
- the length factor of the arrowhead, from the
tip of the line to the base of the arrowhead. (Default
is 20)public int getWingTip()
public int getWingLength()
public int getArrowLocation()
public int getArrowDirectionType()
public java.awt.geom.GeneralPath createArrowHeads()
public void restore(OMGraphic source)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |