public class Link extends MapOb
DECLUTTER_ANYWHERE, DECLUTTER_LOCALLY, DEFAULT_SPACING, handler, lat, lon, name, origXLabelOffset, origYLabelOffset, x, xOffset, y, yOffset
ADD_GRAPHIC_MASK, APP_OBJECT, BASIC_STROKE, CHANGE_APPEARANCE, clear, DECIMAL_DEGREES, DECLUTTERTYPE_LINE, DECLUTTERTYPE_MOVE, DECLUTTERTYPE_NONE, DECLUTTERTYPE_SPACE, DEFAULT_ROTATIONANGLE, DELETE_GRAPHIC_MASK, DESELECT_GRAPHIC_MASK, DESELECTALL_GRAPHIC_MASK, GRAPHICTYPE_ARC, GRAPHICTYPE_BITMAP, GRAPHICTYPE_CIRCLE, GRAPHICTYPE_ELLIPSE, GRAPHICTYPE_GRAPHIC, GRAPHICTYPE_GRID, GRAPHICTYPE_LINE, GRAPHICTYPE_POINT, GRAPHICTYPE_POLY, GRAPHICTYPE_RASTER, GRAPHICTYPE_RECTANGLE, GRAPHICTYPE_TEXT, INDEX, INFOLINE, LABEL, LINETYPE_GREATCIRCLE, LINETYPE_RHUMB, LINETYPE_STRAIGHT, LINETYPE_UNKNOWN, LOWER_GRAPHIC_MASK, LOWER_TO_BOTTOM_GRAPHIC_MASK, NO_ROTATE, OMGRAPHIC_ELT, OMGRAPHIC_TYPE_ATTR, RADIANS, RAISE_GRAPHIC_MASK, RAISE_TO_TOP_GRAPHIC_MASK, REMOVABLE, RENDERTYPE_LATLON, RENDERTYPE_OFFSET, RENDERTYPE_UNKNOWN, RENDERTYPE_XY, SELECT_GRAPHIC_MASK, SORT_GRAPHICS_MASK, TOOLTIP, UPDATE_GRAPHIC_MASK, UPDATED
Constructor and Description |
---|
Link()
Creates a new instance of MapOb
|
Link(edu.stanford.smi.protege.model.Instance instance)
Constructor of Link object from Protege instance
|
Link(java.lang.String name,
MapOb mo1,
MapOb mo2,
java.lang.String lcolor,
edu.stanford.smi.protege.model.Instance line)
Constructor of Link object from two MapObs
|
Modifier and Type | Method and Description |
---|---|
static Link |
createLink(java.lang.String label,
java.lang.String lcolor,
edu.stanford.smi.protege.model.Instance line,
java.util.Collection<edu.stanford.smi.protege.model.Instance> mapob)
Factory method for creating Link object from string parameters
|
java.lang.String |
getColor() |
MapOb |
getMo1() |
MapOb |
getMo2() |
float |
getWidth() |
void |
mapFromProtege(edu.stanford.smi.protege.model.Instance instance)
Rewrite information from Protege Instance to this object.
|
void |
updateLink()
Method to update line if one of Map object moved
|
addLinkToMe, bearingsDeg, bearingsDeg, bearingsDeg, bearingsRad, coordFromProtege, createMapOb, distanceNM, distanceNM, distanceNM, getDeg, getDegMin, getDescription, getDescriptionInstance, getInstance, getLatitude, getLatitudeDM, getLinksToMe, getLongitude, getLongitudeDM, getPlayground, getToolTip, getWhoTows, hideLabel, mapToProtege, offTow, position, removeLinkToMe, setDescription, setDescriptionInstance, setGraphicLocations, setLabelText, setLocation, setToolTip, setWhoTows, showLabel
setGraphicLocations, setGraphicLocations
convertCoordinateString, distance, generate, generate, getDeclutterLimit, getDetails, getHorizontalLabelBuffer, getLabel, getLocationHandler, getLocationMarker, getName, isAllowDecluttering, isShowLocation, isShowName, main, render, renderLocation, renderName, setAllowDecluttering, setDeclutterLimit, setDetails, setHorizontalLabelBuffer, setLabel, setLocation, setLocation, setLocation, setLocation, setLocationHandler, setLocationMarker, setLocationPaint, setName, setShowLocation, setShowName, showDetails
clone, deselect, getDeclutterType, getDisplayColor, getDisplayPaint, getEdgeMatchesFill, getFillColor, getFillPaint, getHasLabel, getLineColor, getLinePaint, getMattingPaint, getRenderType, getSelectColor, getSelectPaint, getShowEditablePalette, getStroke, getTextureMask, hasLineTypeChoice, isClear, isMatted, isSelected, normalizeDistanceForLineWidth, regenerate, renderLabel, restore, select, setDeclutterType, setFillColor, setFillPaint, setGraphicsColor, setGraphicsForEdge, setGraphicsForFill, setLabelLocation, setLabelLocation, setLabelLocation, setLabelLocation, setLabelLocation, setLineColor, setLinePaint, setMatted, setMattingPaint, setRenderType, setSelectColor, setSelected, setSelectPaint, setShowEditablePalette, setStroke, setTextureMask, shouldRenderEdge, shouldRenderFill
appendShapeEdge, appendShapeEdge, appendShapeEdge, appendShapeEdge, clearAttributes, contains, createBoxShape, createShape, createShape, describeShapeDetail, describeShapeDetail, distanceToEdge, distanceToEdge, draw, draw, fill, fill, getAppObject, getAttribute, getAttributes, getLineType, getNeedToRegenerate, getShape, isRenderable, isRenderable, isVisible, putAttribute, removeAttribute, setAppObject, setAttributes, setLineType, setNeedToRegenerate, setShape, setVisible
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clearAttributes, contains, distanceToEdge, draw, draw, fill, fill, getAppObject, getAttribute, getAttributes, getLineType, getNeedToRegenerate, getShape, isRenderable, isRenderable, isVisible, putAttribute, removeAttribute, setAppObject, setAttributes, setLineType, setNeedToRegenerate, setShape, setVisible
public Link()
public Link(edu.stanford.smi.protege.model.Instance instance) throws java.lang.Exception
instance
- - Protege Instancejava.lang.Exception
- -public Link(java.lang.String name, MapOb mo1, MapOb mo2, java.lang.String lcolor, edu.stanford.smi.protege.model.Instance line) throws java.lang.Exception
name
- name of Link objectmo1
- first MapObmo2
- second MapOblcolor
- line color ("AARRGGBB") (optional)line
- instance of Line (optional)java.lang.Exception
- throwspublic static Link createLink(java.lang.String label, java.lang.String lcolor, edu.stanford.smi.protege.model.Instance line, java.util.Collection<edu.stanford.smi.protege.model.Instance> mapob) throws java.lang.Exception
label
- - name of Link objectlcolor
- - line color in form "AARRGGBB"line
- - instance of class Linemapob
- - collection of instances of class MapObjava.lang.Exception
- -public void mapFromProtege(edu.stanford.smi.protege.model.Instance instance)
mapFromProtege
in interface Protegian
mapFromProtege
in class MapOb
instance
- - Protege Instancepublic void updateLink()
public MapOb getMo1()
public MapOb getMo2()
public java.lang.String getColor()
public float getWidth()