|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jaxodraw.object.JaxoObject
net.sf.jaxodraw.object.JaxoExtendedObject
net.sf.jaxodraw.object.vertex.JaxoVertex
public abstract class JaxoVertex
A vertex object.
Field Summary |
---|
Fields inherited from class net.sf.jaxodraw.object.JaxoExtendedObject |
---|
SELECT_DX, SELECT_DY, SELECT_P2 |
Fields inherited from class net.sf.jaxodraw.object.JaxoObject |
---|
D_FORMAT, GRAY_SCALE_FORMAT, SELECT_NONE, SELECT_P1 |
Constructor Summary | |
---|---|
JaxoVertex()
|
Method Summary | |
---|---|
JaxoObject |
copy(JaxoVertex temp)
Returns an exact copy of this JaxoVertex. |
protected 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,
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. |
Methods inherited from class net.sf.jaxodraw.object.JaxoExtendedObject |
---|
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, strokeIs |
Methods inherited from class net.sf.jaxodraw.object.JaxoObject |
---|
addPropertyChangeListener, 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, setYPosition |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.awt.Shape |
---|
getBounds |
Constructor Detail |
---|
public JaxoVertex()
Method Detail |
---|
public final int getRotationAngle()
getRotationAngle
in interface JaxoRotationObject
public final void setRotationAngle(int angle)
setRotationAngle
in interface JaxoRotationObject
angle
- 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 JaxoExtendedObject
comp
- The JaxoObject to compare against.
public final void paintVisualAid(JaxoGraphics2D g2)
paintVisualAid
in class JaxoObject
g2
- The graphics context to paint the visual aid.public final void rescaleObject(int orx, int ory, float scale)
rescaleObject
in class JaxoObject
orx
- The x-coordinate of the fixed point.ory
- The y-coordinate of the fixed point.scale
- The scale parameter.protected 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 JaxoExtendedObject
protected void prepareGenericPanel(JaxoObjectEditPanel editPanel, String iconName)
editPanel
- the panel to prepare.iconName
- the name of the icon for the panel.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |