public abstract class JaxoVertex extends JaxoExtendedObject implements JaxoRotationObject
SELECT_DX, SELECT_DY, SELECT_P2D_FORMAT, GRAY_SCALE_FORMAT, SELECT_NONE, SELECT_P1| Constructor and Description |
|---|
JaxoVertex() |
| Modifier and Type | Method and Description |
|---|---|
JaxoObject |
copy(JaxoVertex temp)
Returns an exact copy of this JaxoVertex.
|
protected java.awt.geom.Point2D |
getLaTexCenter(float scaleFactor,
int canvasHeight)
Returns a center point which is used by the latexCommand method.
|
protected float |
getLaTexRadius(float scaleFactor)
Returns a radius which is used by the latexCommand method.
|
int |
getRotationAngle()
Returns the rotation angle of this vertex.
|
boolean |
isCopy(JaxoObject comp)
Determines if this JaxoObject is a copy of the specified one.
|
void |
paintVisualAid(JaxoGraphics2D g2)
Paints a visual aid for the user during dragging
(moving or resizing) of this JaxoObject.
|
protected void |
prepareGenericPanel(JaxoObjectEditPanel editPanel,
java.lang.String iconName)
Prepares a simple edit panel to edit coordinates and color.
|
void |
rescaleObject(int orx,
int ory,
float scale)
Rescale this JaxoObject by the scale factor scale,
keeping the point (orx, ory) fixed.
|
void |
setPreferences()
Applies default values to this JaxoObject.
|
void |
setRotationAngle(int angle)
Sets the rotation angle of this vertex, this only acts on P2.
|
canBeSelected, copyFrom, getGrabbedHandle, getHeight, getPointCount, getRadius, getRelh, getRelSize, getRelw, getSize, getStroke, getStrokeWidth, getWidth, getX, getX2, getY, getY2, latexWidth, moveBy, paintHandles, resetStroke, setLocation, setRadius, setRelativeHeight, setRelativeWidth, setRelWAndH, setState, setStroke, setStrokeWidth, setX, setX2, setY, setY2, smallestDistanceTo, strokeIsaddPropertyChangeListener, contains, contains, contains, contains, copy, copyFrom, firePropertyChange, getBounds2D, getBoundsWithHandles, getColor, getGeneralPath, getLaTexLocation, getName, getPathIterator, getPathIterator, getPoints, getX, getY, intersects, intersects, isAround, isMarked, latexCommand, paint, prepareEditPanel, propertyChange, removePropertyChangeListener, setAsMarked, setColor, setLocation, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setPointCount, setPoints, setTransient, setX, setXPosition, setY, setYPositionpublic final int getRotationAngle()
getRotationAngle in interface JaxoRotationObjectpublic final void setRotationAngle(int angle)
setRotationAngle in interface JaxoRotationObjectangle - The rotation angle of this vertex (in degrees).public final JaxoObject copy(JaxoVertex temp)
temp - An instance of the vertex to copy to.public boolean isCopy(JaxoObject comp)
isCopy in class JaxoExtendedObjectcomp - The JaxoObject to compare against.public final void paintVisualAid(JaxoGraphics2D g2)
paintVisualAid in class JaxoObjectg2 - The graphics context to paint the visual aid.public final void rescaleObject(int orx,
int ory,
float scale)
rescaleObject in class JaxoObjectorx - The x-coordinate of the fixed point.ory - The y-coordinate of the fixed point.scale - The scale parameter.protected java.awt.geom.Point2D getLaTexCenter(float scaleFactor,
int canvasHeight)
scaleFactor - A scale factor.canvasHeight - The height of the current canvas.protected float getLaTexRadius(float scaleFactor)
scaleFactor - A scale factor.public void setPreferences()
preferences.setPreferences in class JaxoExtendedObjectprotected void prepareGenericPanel(JaxoObjectEditPanel editPanel, java.lang.String iconName)
editPanel - the panel to prepare.iconName - the name of the icon for the panel.Licensed under GPL. For more information, see http://jaxodraw.sourceforge.net/license.html or the LICENSE file in the jaxodraw distribution.