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.VertexDataSet
Nested classes/interfaces inherited from interface mgui.interfaces.xml.XMLObject
XMLObject.XMLEncoding, XMLObject.XMLType
-
Field Summary
Fields Modifier and Type Field Description boolean[]
constraints
java.util.HashMap<java.lang.String,NameMap>
nameMaps
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, 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 PointSet2DInt()
PointSet2DInt(PointSet2D point_set)
-
Method Summary
Modifier and Type Method Description void
draw(java.awt.Graphics2D g, DrawingEngine d)
ColourMap
getColourMap()
Returns the ColourMap associated with the current data column.java.lang.String
getCurrentColumn()
Returns the name of the current data columndouble
getDataMax()
double
getDataMin()
protected edu.uci.ics.jung.visualization.renderers.Renderer.VertexLabel.Position
getLabelPosition()
PointSet2D
getPointSet()
float
getVertexScale()
Returns the scale of this shape's verticesprotected NodeShape
getVertexShape(AbstractGraphNode vertex)
boolean
isInheritingAttribute(Attribute<?> attribute)
Does this child attribute inherit values from a parent shape?boolean
needsRedraw(Attribute<?> a)
Returnstrue
if a change toattribute
will require a redraw of this shape.void
setColourMap(ColourMap cm)
Sets the colour map for the current column.void
setColourMap(ColourMap cm, boolean update)
void
setDataMax(double d)
Sets the data maximum for the current column, and fires an eventvoid
setDataMin(double d)
Sets the data minimum for the current column, and fires an eventprotected void
setIcon()
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, 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, 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, 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
-
Field Details
-
nameMaps
-
constraints
public boolean[] constraints
-
-
Constructor Details
-
PointSet2DInt
public PointSet2DInt() -
PointSet2DInt
-
-
Method Details
-
isInheritingAttribute
Description copied from class:InterfaceShape
Does this child attribute inherit values from a parent shape?- Overrides:
isInheritingAttribute
in classShape2DInt
- Returns:
-
setIcon
protected void setIcon()- Overrides:
setIcon
in classShape2DInt
-
getVertexShape
-
getLabelPosition
protected edu.uci.ics.jung.visualization.renderers.Renderer.VertexLabel.Position getLabelPosition() -
draw
- Overrides:
draw
in classShape2DInt
-
setColourMap
Description copied from class:InterfaceShape
Sets the colour map for the current column.- Overrides:
setColourMap
in classInterfaceShape
-
setColourMap
-
getColourMap
Description copied from class:InterfaceShape
Returns the ColourMap associated with the current data column. If there is no associated colour map, returns the default colour map for this shape.- Overrides:
getColourMap
in classInterfaceShape
- Returns:
-
getCurrentColumn
public java.lang.String getCurrentColumn()Description copied from class:InterfaceShape
Returns the name of the current data column- Overrides:
getCurrentColumn
in classShape2DInt
- Returns:
-
getDataMin
public double getDataMin()- Overrides:
getDataMin
in classInterfaceShape
-
getDataMax
public double getDataMax()- Overrides:
getDataMax
in classInterfaceShape
-
getVertexScale
public float getVertexScale()Description copied from class:InterfaceShape
Returns the scale of this shape's vertices- Overrides:
getVertexScale
in classShape2DInt
- Returns:
-
setDataMin
public void setDataMin(double d)Description copied from class:InterfaceShape
Sets the data minimum for the current column, and fires an event- Overrides:
setDataMin
in classInterfaceShape
-
setDataMax
public void setDataMax(double d)Description copied from class:InterfaceShape
Sets the data maximum for the current column, and fires an event- Overrides:
setDataMax
in classInterfaceShape
-
getPointSet
-
needsRedraw
Description copied from class:InterfaceShape
Returnstrue
if a change toattribute
will require a redraw of this shape.- Overrides:
needsRedraw
in classShape2DInt
- Returns:
-