/** * Sets the color of marks used to draw nodes. * @param markColor mark color. */ public void setMarkColor(Color markColor) { _markColor = markColor; repaint(); }
/** * Sets the visibility (drawing or no drawing) of nodes. * @param drawNodes true, to draw nodes; false, otherwise. * The default is true. */ public void setNodesVisible(boolean drawNodes) { if (_drawNodes!=drawNodes) { _drawNodes = drawNodes; repaint(); } }
/** * Sets the visibility (drawing or no drawing) of subdivided tris. * @param drawSubTris true, to draw subdivided tris; false, otherwise. * The default is false. */ public void setSubTrisVisible(boolean drawSubTris) { if (_drawSubTris!=drawSubTris) { _drawSubTris = drawSubTris; repaint(); } }
/** * Sets the map from triangle edges to weights. * If set, this map overrides the tri line color. * @param triEdgeWeights a map from triangle edges to weights. */ public void setTriEdgeWeights(Map<TriMesh.Edge,Float> triEdgeWeights) { _triEdgeWeights = triEdgeWeights; _triEdgeColors = null; repaint(); }
/** * Sets the visibility (drawing or no drawing) of poly bounds. * @param drawPolyBounds true, to draw poly bounds; false, otherwise. * The default is false. */ public void setPolyBoundsVisible(boolean drawPolyBounds) { if (_drawPolyBounds!=drawPolyBounds) { _drawPolyBounds = drawPolyBounds; repaint(); } }
/** * Sets the color of lines used to draw edges of triangles and polygons. * @param lineColor the line color. */ public void setLineColor(Color lineColor) { _triLineColor = lineColor; _polyLineColor = lineColor; repaint(); }
/** * Sets the color of lines used to draw edges of triangles. * @param lineColor the line color. */ public void setTriColor(Color lineColor) { _triLineColor = lineColor; repaint(); }
/** * Sets the visibility (drawing or no drawing) of tris. * @param drawTris true, to draw tris; false, otherwise. * The default is true. */ public void setTrisVisible(boolean drawTris) { if (_drawTris!=drawTris) { _drawTris = drawTris; repaint(); } }
/** * Sets the visibility (drawing or no drawing) of polygons. * @param drawPolys true, to draw polygons; false, otherwise. * The default is false. */ public void setPolysVisible(boolean drawPolys) { if (_drawPolys!=drawPolys) { _drawPolys = drawPolys; repaint(); } }
/** * Sets the visibility (drawing or no drawing) of tri bounds. * @param drawTriBounds true, to draw tri bounds; false, otherwise. * The default is false. */ public void setTriBoundsVisible(boolean drawTriBounds) { if (_drawTriBounds!=drawTriBounds) { _drawTriBounds = drawTriBounds; repaint(); } }
/** * Sets the color of lines used to draw edges of polygons. * @param lineColor the line color. */ public void setPolyColor(Color lineColor) { _polyLineColor = lineColor; repaint(); }
/** * Sets the width of lines used to draw edges of triangles. * @param lineWidth line width in pixels (or points, as for a font). */ public void setLineWidth(int lineWidth) { _lineWidth = lineWidth; updateBestProjectors(); repaint(); }
/** * Sets the orientation of mesh (x,y) axes. * @param orientation the orientation. */ public void setOrientation(Orientation orientation) { if (_orientation!=orientation) { _orientation = orientation; updateBestProjectors(); repaint(); } }
/** * Sets the width of marks used to draw nodes. * @param markWidth mark width in pixels (or points, as for a font). */ public void setMarkWidth(int markWidth) { _markWidth = markWidth; updateBestProjectors(); repaint(); }
/** * Sets the tri mesh rendered by this view. * @param mesh the tri mesh. */ public void setMesh(TriMesh mesh) { _mesh = mesh; updateMinMax(); updateBestProjectors(); repaint(); }