Package mgui.interfaces.shapes
Class PointSet2DInt
java.lang.Object
mgui.interfaces.AbstractInterfaceObject
mgui.interfaces.shapes.InterfaceShape
mgui.interfaces.shapes.Shape2DInt
mgui.interfaces.shapes.PointSet2DInt
- 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
- Direct Known Subclasses:
Graph2DInt
public class PointSet2DInt extends Shape2DInt
Shape interface for a set of 2D vertices.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
-
Nested Class Summary
Nested classes/interfaces inherited from class mgui.interfaces.shapes.InterfaceShape
InterfaceShape.VertexDataSetNested classes/interfaces inherited from interface mgui.interfaces.xml.XMLObject
XMLObject.XMLEncoding, XMLObject.XMLType -
Field Summary
Fields Modifier and Type Field Description boolean[]constraintsjava.util.HashMap<java.lang.String,NameMap>nameMapsFields inherited from class mgui.interfaces.shapes.Shape2DInt
bounds, centerPt, child3D, drawEngine, idStr, map_idx_to_parent, nodeListener, parentShape, sceneNode, thisShapeFields inherited from class mgui.interfaces.shapes.InterfaceShape
attributes, 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_dirFields inherited from class mgui.interfaces.AbstractInterfaceObject
isDestroyed, tree_nodes -
Constructor Summary
Constructors Constructor Description PointSet2DInt()PointSet2DInt(PointSet2D point_set) -
Method Summary
Modifier and Type Method Description voiddraw(java.awt.Graphics2D g, DrawingEngine d)ColourMapgetColourMap()Returns the ColourMap associated with the current data column.java.lang.StringgetCurrentColumn()Returns the name of the current data columndoublegetDataMax()doublegetDataMin()protected edu.uci.ics.jung.visualization.renderers.Renderer.VertexLabel.PositiongetLabelPosition()PointSet2DgetPointSet()floatgetVertexScale()Returns the scale of this shape's verticesprotected NodeShapegetVertexShape(AbstractGraphNode vertex)booleanisInheritingAttribute(Attribute<?> attribute)Does this child attribute inherit values from a parent shape?booleanneedsRedraw(Attribute<?> a)Returnstrueif a change toattributewill require a redraw of this shape.voidsetColourMap(ColourMap cm)Sets the colour map for the current column.voidsetColourMap(ColourMap cm, boolean update)voidsetDataMax(double d)Sets the data maximum for the current column, and fires an eventvoidsetDataMin(double d)Sets the data minimum for the current column, and fires an eventprotected voidsetIcon()Methods inherited from class mgui.interfaces.shapes.Shape2DInt
addVertexData, addVertexData, addVertexData, addVertexData, attributeUpdated, clone, contains, destroy, destroy, drawShape2D, fireShapeListeners, getAllVertexData, getAlpha, getBounds, getBoundShape, getCenterPoint, getChild3D, getClosestVertex, getClosestVertex3D, getCurrentVertexData, 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, getVertexSelection, getVertexShape, getVertices, getVisibility, handlePopupEvent, hasAlpha, hasAlpha, hasColumn, hasData, hasParentShape, isDataFlavorSupported, isHeritableAttribute, isLabelShape, issueTreeNode, performTransfer, printNodes, removeVertexData, setAlpha, setChild3D, setCurrentColumn, setCurrentColumn, setGeometry, setGraphic2DPopupMenu, setLabelColour, setLabelFont, setLabelScale, setLineStyle, setMapIdxToParent, setParentShape, setShape, setTreeNode, setVertexDataMap, setVertexSelection, setVertexShape, shapeUpdated, showPopupMenu, showVertices, showVertices, toString, updateDataColumns, updateShape, validateNodes, writeShapeToXML, writeXMLMethods 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, 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, setConstraint, setDataMax, setDataMax, 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, writeXMLMethods inherited from class mgui.interfaces.AbstractInterfaceObject
clean, updateTreeNodesMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface mgui.interfaces.util.CleanableObject
cleanMethods inherited from interface mgui.interfaces.shapes.util.ShapeListener
isDestroyed
-
Field Details
-
nameMaps
-
constraints
public boolean[] constraints
-
-
Constructor Details
-
PointSet2DInt
public PointSet2DInt() -
PointSet2DInt
-
-
Method Details
-
isInheritingAttribute
Description copied from class:InterfaceShapeDoes this child attribute inherit values from a parent shape?- Overrides:
isInheritingAttributein classShape2DInt- Returns:
-
setIcon
protected void setIcon()- Overrides:
setIconin classShape2DInt
-
getVertexShape
-
getLabelPosition
protected edu.uci.ics.jung.visualization.renderers.Renderer.VertexLabel.Position getLabelPosition() -
draw
- Overrides:
drawin classShape2DInt
-
setColourMap
Description copied from class:InterfaceShapeSets the colour map for the current column.- Overrides:
setColourMapin classInterfaceShape
-
setColourMap
-
getColourMap
Description copied from class:InterfaceShapeReturns the ColourMap associated with the current data column. If there is no associated colour map, returns the default colour map for this shape.- Overrides:
getColourMapin classInterfaceShape- Returns:
-
getCurrentColumn
public java.lang.String getCurrentColumn()Description copied from class:InterfaceShapeReturns the name of the current data column- Overrides:
getCurrentColumnin classShape2DInt- Returns:
-
getDataMin
public double getDataMin()- Overrides:
getDataMinin classInterfaceShape
-
getDataMax
public double getDataMax()- Overrides:
getDataMaxin classInterfaceShape
-
getVertexScale
public float getVertexScale()Description copied from class:InterfaceShapeReturns the scale of this shape's vertices- Overrides:
getVertexScalein classShape2DInt- Returns:
-
setDataMin
public void setDataMin(double d)Description copied from class:InterfaceShapeSets the data minimum for the current column, and fires an event- Overrides:
setDataMinin classInterfaceShape
-
setDataMax
public void setDataMax(double d)Description copied from class:InterfaceShapeSets the data maximum for the current column, and fires an event- Overrides:
setDataMaxin classInterfaceShape
-
getPointSet
-
needsRedraw
Description copied from class:InterfaceShapeReturnstrueif a change toattributewill require a redraw of this shape.- Overrides:
needsRedrawin classShape2DInt- Returns:
-