Package mgui.interfaces.shapes
Class Vector2DInt
java.lang.Object
mgui.interfaces.AbstractInterfaceObject
mgui.interfaces.shapes.InterfaceShape
mgui.interfaces.shapes.Shape2DInt
mgui.interfaces.shapes.Vector2DInt
- All Implemented Interfaces:
java.awt.datatransfer.Transferable
,java.lang.Cloneable
,java.lang.Comparable<InterfaceShape>
,AttributeListener
,AttributeObject
,InterfaceObject
,PersistentObject
,VariableObject
,PopupMenuObject
,NamedObject
,InterfaceQueryObject
,InterfaceShapeQueryObject
,ShapeListener
,VertexDataColumnListener
,InterfaceTransferable
,TreeObject
,CleanableObject
,XMLObject
,IconObject
public class Vector2DInt extends Shape2DInt
-
Nested Class Summary
Nested classes/interfaces inherited from class mgui.interfaces.shapes.InterfaceShape
InterfaceShape.VertexDataSet
Nested classes/interfaces inherited from interface mgui.interfaces.xml.XMLObject
XMLObject.XMLEncoding, XMLObject.XMLType
-
Field Summary
Fields inherited from class mgui.interfaces.shapes.Shape2DInt
bounds, centerPt, child3D, drawEngine, idStr, map_idx_to_parent, nodeListener, parentShape, sceneNode, thisShape
Fields inherited from class mgui.interfaces.shapes.InterfaceShape
attributes, constraints, data_columns, icon, ID, is_auxiliary, is_registered, isDrawable, isImageShape, isLight, isOverridden, last_column_added, last_column_changed, last_column_removed, linked_colour_maps, loader_options, notifyListeners, overrideAttr, parent_set, selected_nodes, shapeListeners, vertex_data, writer_options, xml_current_column, xml_current_loader, xml_current_shape, xml_current_shape_options, xml_current_type, xml_current_url, xml_is_vertex_data, xml_root_dir
Fields inherited from class mgui.interfaces.AbstractInterfaceObject
isDestroyed, tree_nodes
-
Constructor Summary
Constructors Constructor Description Vector2DInt()
Vector2DInt(Vector2D vector)
-
Method Summary
Modifier and Type Method Description void
attributeUpdated(AttributeEvent e)
Responds to a change in a specific attribute by notifying this ShapeInt's shape listeners with anAttributeModified
shape event.void
draw(java.awt.Graphics2D g, DrawingEngine d)
java.util.ArrayList<MguiNumber>
getCurrentVertexData()
Retrieves the currently selected vertex-wise data column.java.awt.Color
getDataLineColour()
float
getDataLineHeight()
float
getDataLineOffset()
double
getDataMax()
double
getDataMin()
float
getEndRatio()
float
getStartRatio()
Vector2D
getVector()
void
setArrowScale(float scale)
void
setDataLineColour(java.awt.Color c)
void
setDataLineHeight(float height)
void
setDataLineOffset(float offset)
void
setEndRatio(float ratio)
void
setStartPtScale(float scale)
void
setStartRatio(float ratio)
Methods inherited from class mgui.interfaces.shapes.Shape2DInt
addVertexData, addVertexData, addVertexData, addVertexData, clone, contains, destroy, destroy, drawShape2D, fireShapeListeners, getAllVertexData, getAlpha, getBounds, getBoundShape, getCenterPoint, getChild3D, getClosestVertex, getClosestVertex3D, getCurrentColumn, getDatumAtVertex, getDimensions, getDTD, getExtBounds, getGeometry, getGeometryInstance, getLabelColour, getLabelFont, getLabelScale, getLineColour, getLineStyle, getLinkedVertexData, getLinkedVertexDatum, getLocalName, getMapIdxToParent, getModifiedAttribute, getNonLinkedDataColumns, getParentAttribute, getParentShape, getPopupMenu, getPopupMenu, getProximity, getShape, getShape3D, getShape3DInt, getShape3DInt, getShortXML, getTransferData, getTransferDataFlavors, getTreeLabel, getVertex, getVertexColour, getVertexCount, getVertexData, getVertexDataColumn, getVertexDataColumnNames, getVertexDataColumns, getVertexDataMap, getVertexScale, getVertexSelection, getVertexShape, getVertices, getVisibility, handlePopupEvent, hasAlpha, hasAlpha, hasColumn, hasData, hasParentShape, isDataFlavorSupported, isHeritableAttribute, isInheritingAttribute, isLabelShape, issueTreeNode, needsRedraw, performTransfer, printNodes, removeVertexData, setAlpha, setChild3D, setCurrentColumn, setCurrentColumn, setGeometry, setGraphic2DPopupMenu, setIcon, setLabelColour, setLabelFont, setLabelScale, setLineStyle, setMapIdxToParent, setParentShape, setShape, setTreeNode, setVertexDataMap, setVertexSelection, setVertexShape, shapeUpdated, showPopupMenu, showVertices, showVertices, toString, updateDataColumns, updateShape, validateNodes, writeShapeToXML, writeXML
Methods inherited from class mgui.interfaces.shapes.InterfaceShape
_init, addDataLink, addShapeListener, addVertexData, addVertexData, addVertexData, addVertexData, addVertexData, cleanTreeNodes, compareTo, copyAttributes, finalizeAfterXML, fireShapeModified, fromVariable, getAttribute, getAttributes, getAttributeValue, getByReferenceUrls, getColourMap, getColourMap, getConstraint, getConstraints, getCurrentDataColumn, getDataLink, getDatumAtVertex, getDefaultColourMap, getFileLoader, getFileWriter, getFullName, getID, getInheritedAttribute, getInheritedAttributes, getInheritedAttributeValue, getLastColumnAdded, getLastColumnChanged, getLastColumnRemoved, getLegalName, getLoaderOptions, getModel, getName, getNameMap, getNameMap, getObjectIcon, getParentSet, getSourceURL, getUnit, getUrlReference, getVariables, getVariableType, getVariableValue, getVariableValues, getVertexData, getVertexDataColumnCount, getWriterOptions, getXML, getXML, getXML, getXMLSchema, handleXMLElementEnd, handleXMLElementStart, handleXMLString, hasAttribute, inheritAttributesFromParent, isAuxiliaryShape, isAuxiliaryShape, isDestroyed, isDrawable, isImageShape, isLegalName, isLight, isSelectable, isVisible, newVertexData, queryObject, queryShapeAtVertex, register, removeColourMap, removeDataLink, removeNameMap, removeShapeListener, renameVertexDataColumn, setAttribute, setAttributes, setColourMap, setColourMap, setConstraint, setDataMax, setDataMax, setDataMax, setDataMin, setDataMin, setDataMin, setDatumAtVertex, setDatumAtVertex, setDatumAtVertex, setDatumAtVertex, setDefaultColourMap, setDefaultColourMap, setFileLoader, setFileLoader, setFileWriter, setID, setLoaderOptions, setName, setNameMap, setOverride, setParentSet, setSelectable, setUnit, setUrlReference, setVariableValues, setVariableValues, setVertexData, setVertexData, setVertexData, setVisible, setWriterOptions, setXMLRoot, show2D, show2D, show3D, show3D, showData, showData, supportsVariableType, toVariable, unsetOverride, vertexDataColumnChanged, vertexDataColumnColourMapChanged, writeXML, writeXML
Methods inherited from class mgui.interfaces.AbstractInterfaceObject
clean, updateTreeNodes
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface mgui.interfaces.util.CleanableObject
clean
Methods inherited from interface mgui.interfaces.shapes.util.ShapeListener
isDestroyed
-
Constructor Details
-
Vector2DInt
public Vector2DInt() -
Vector2DInt
-
-
Method Details
-
getVector
-
setStartRatio
public void setStartRatio(float ratio) -
setEndRatio
public void setEndRatio(float ratio) -
getStartRatio
public float getStartRatio() -
getEndRatio
public float getEndRatio() -
getDataLineColour
public java.awt.Color getDataLineColour() -
setDataLineColour
public void setDataLineColour(java.awt.Color c) -
getDataLineOffset
public float getDataLineOffset() -
setDataLineOffset
public void setDataLineOffset(float offset) -
getDataLineHeight
public float getDataLineHeight() -
setDataLineHeight
public void setDataLineHeight(float height) -
attributeUpdated
Description copied from class:Shape2DInt
Responds to a change in a specific attribute by notifying this ShapeInt's shape listeners with anAttributeModified
shape event. If overriding, this super method should be called AFTER the special handling has been performed.- Specified by:
attributeUpdated
in interfaceAttributeListener
- Overrides:
attributeUpdated
in classShape2DInt
-
setArrowScale
public void setArrowScale(float scale) -
setStartPtScale
public void setStartPtScale(float scale) -
draw
- Overrides:
draw
in classShape2DInt
-
getCurrentVertexData
Description copied from class:InterfaceShape
Retrieves the currently selected vertex-wise data column.- Overrides:
getCurrentVertexData
in classShape2DInt
-
getDataMin
public double getDataMin()- Overrides:
getDataMin
in classInterfaceShape
-
getDataMax
public double getDataMax()- Overrides:
getDataMax
in classInterfaceShape
-