|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jfig.objects.FigBaseobject jfig.objects.FigEllipse
FIG ellipse/circle object.
Field Summary | |
(package private) java.awt.Point |
center
|
(package private) FigRenderer |
renderer
|
(package private) java.awt.Point |
size
|
Fields inherited from class jfig.objects.FigBaseobject |
attribs, bbox, comment, debug, painter, printer, sc_bbox, sc_bbox_timestamp, selected, showPoints, syncRedrawFlag, timestamp, trafo, visible, x, y |
Constructor Summary | |
FigEllipse(java.awt.Point p1,
java.awt.Point p2,
FigAttribs attribs,
FigTrafo2D trafo)
Basic FigEllipse constructor, center Point p1. |
Method Summary | |
void |
appendPoint(java.awt.Point wp)
No, we cannot append, insert, or delete a Point in a rectangle. |
boolean |
canRotate(double angle_in_rad)
|
FigObject |
copy()
build a copy of this FigEllipse object. |
void |
createRenderer()
|
java.awt.Point |
deletePoint(java.awt.Point wp)
delete the Point with specified coords from our Point list. |
java.awt.Point |
getCenterPoint()
|
java.awt.Point[] |
getMovePointNeighbors(java.awt.Point wp)
getMovePointNeighbors( Point wp ): find the nearest Point of the rectangle and return an array with the opposite corner, to allow the main editor correct rubberbanding. |
java.awt.Point |
getNearestPoint(java.awt.Point wp)
return the point of this object nearest to Point wp, if any. |
java.awt.Point[] |
getNeighborPoints(java.awt.Point wp)
get the two neighbor Points for the specified Point wp from our Point list. |
java.awt.Point[] |
getPoints()
return a list of all Points of this objects. |
java.awt.Point |
getRadiusPoint()
|
void |
insertPoint(java.awt.Point wp,
java.awt.Point wpnew)
insert a Point wp into our Point list after Point wprev. |
boolean |
isClosed()
return true if this object is 'closed' (polygon vs. |
double |
minDistance(java.awt.Point wp)
return the minimum distance of any points (edges,corners) of this object and the Point wp. |
void |
mirrorX(int mirror_x,
int mirror_y)
mirrorX(): |
void |
mirrorY(int mirror_x,
int mirror_y)
mirrorY(): |
void |
move(int dx,
int dy)
method stub for the move() method |
void |
movePoint(java.awt.Point wp,
java.awt.Point wpnew)
move the Point wp to position wpnew. |
void |
paint(java.awt.Graphics g)
paint() this object. |
void |
rebuild()
rebuild (=re-initialize) this object given its current points, attributes, transformation, and the global Java2D enable status. |
void |
rotate(java.awt.Point anchor,
double angle_in_rad)
Try to rotate a FigEllipse, as best as we currently can. |
void |
setAttributes(FigAttribs attribs)
set object attributes |
void |
setCenterAndRadius(java.awt.Point p1,
java.awt.Point p2)
|
void |
setFillColor(java.awt.Color c)
set a new fill color |
void |
setFillStyle(int shade_or_pattern)
set the fill style to one of the predefined FIG values, where -1 implies NO_FILL, a value between 0..40 selects the corresponding shade/tint, and values >= 41 select one of the FIG fill patterns. |
void |
setLayer(int _layer)
set the layer (depth) for this polyline; the FIG format allows values in the range [1..1000] with 1 being the topmost layer. |
void |
setLineColor(java.awt.Color c)
set a new line color |
void |
setLineStyle(int fig_line_style)
set the line style to one of the predefined FIG styles, e.g. |
void |
setLineWidth(int fig_line_width)
set the line width to one of the predefined FIG widths, e.g. |
void |
setPoints(java.awt.Point[] pp)
set PointList (if any), world-coordinates. |
void |
setTrafo(FigTrafo2D trafo)
set transformation |
boolean |
supportsPointOps()
yes, we support the point operations (actually, only movePoint). |
java.lang.String |
toString()
debug object information |
(package private) void |
update_bbox()
|
void |
update(FigAttribs new_attribs)
update(): get the new text attribs and recalculate the bbox. |
Methods inherited from class jfig.objects.FigBaseobject |
build_sc_bbox, clonePoints, deselect, get_sc_bbox, getAttributes, getBbox, getComment, getLayer, getPosition, getSyncRedrawFlag, getText, getTimestamp, getTrafo, initialize, isSelected, isShowPoints, isVisible, isVisible, keyPressed, manhattan, message, minDistanceEuclid, numPoints, paint, paintSave, reset_debug, scale, select, set_debug, setComment, setConsole, setObjectPainter, setSyncRedrawFlag, setText, setVisible, showPoints, updateAttributes, writeAsResource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
FigRenderer renderer
java.awt.Point center
java.awt.Point size
Constructor Detail |
public FigEllipse(java.awt.Point p1, java.awt.Point p2, FigAttribs attribs, FigTrafo2D trafo)
Method Detail |
public void createRenderer()
public void setAttributes(FigAttribs attribs)
FigBaseobject
setAttributes
in interface FigObject
setAttributes
in class FigBaseobject
public java.awt.Point getCenterPoint()
public java.awt.Point getRadiusPoint()
public void setTrafo(FigTrafo2D trafo)
FigBaseobject
setTrafo
in interface FigObject
setTrafo
in class FigBaseobject
public void setCenterAndRadius(java.awt.Point p1, java.awt.Point p2)
public void rebuild()
FigObject
rebuild
in interface FigObject
rebuild
in class FigBaseobject
public java.awt.Point[] getPoints()
FigBaseobject
getPoints
in interface FigObject
getPoints
in class FigBaseobject
public void setPoints(java.awt.Point[] pp)
FigObject
setPoints
in interface FigObject
setPoints
in class FigBaseobject
public boolean supportsPointOps()
supportsPointOps
in interface FigObject
supportsPointOps
in class FigBaseobject
public boolean isClosed()
FigObject
isClosed
in interface FigObject
isClosed
in class FigBaseobject
public void appendPoint(java.awt.Point wp)
(To support these operations, we might convert the FigRectangle automatically into a polygon. But currently I don't want this.)
appendPoint
in interface FigObject
appendPoint
in class FigBaseobject
public java.awt.Point deletePoint(java.awt.Point wp)
FigBaseobject
deletePoint
in interface FigObject
deletePoint
in class FigBaseobject
public void insertPoint(java.awt.Point wp, java.awt.Point wpnew)
FigBaseobject
insertPoint
in interface FigObject
insertPoint
in class FigBaseobject
public java.awt.Point[] getMovePointNeighbors(java.awt.Point wp)
getMovePointNeighbors
in interface FigObject
getMovePointNeighbors
in class FigBaseobject
public void movePoint(java.awt.Point wp, java.awt.Point wpnew)
movePoint
in interface FigObject
movePoint
in class FigBaseobject
public java.awt.Point getNearestPoint(java.awt.Point wp)
FigBaseobject
getNearestPoint
in interface FigObject
getNearestPoint
in class FigBaseobject
public java.awt.Point[] getNeighborPoints(java.awt.Point wp)
FigBaseobject
getNeighborPoints
in interface FigObject
getNeighborPoints
in class FigBaseobject
void update_bbox()
public void paint(java.awt.Graphics g)
FigBaseobject
paint
in interface FigObject
paint
in class FigBaseobject
public void move(int dx, int dy)
FigBaseobject
move
in interface FigObject
move
in class FigBaseobject
public FigObject copy()
copy
in interface FigObject
copy
in class FigBaseobject
public void mirrorX(int mirror_x, int mirror_y)
mirrorX
in interface FigObject
mirrorX
in class FigBaseobject
public void mirrorY(int mirror_x, int mirror_y)
mirrorY
in interface FigObject
mirrorY
in class FigBaseobject
public void update(FigAttribs new_attribs)
update
in interface FigObject
update
in class FigBaseobject
public boolean canRotate(double angle_in_rad)
canRotate
in interface FigObject
canRotate
in class FigBaseobject
public void rotate(java.awt.Point anchor, double angle_in_rad)
rotate
in interface FigObject
rotate
in class FigBaseobject
public void setLayer(int _layer)
polyline.setLayer( newLayer );
editor.removeFromObjectList( polyline );
editor.insertIntoObjectList( polyline );
public void setLineColor(java.awt.Color c)
public void setLineWidth(int fig_line_width)
public void setLineStyle(int fig_line_style)
public void setFillColor(java.awt.Color c)
public void setFillStyle(int shade_or_pattern)
public double minDistance(java.awt.Point wp)
minDistance
in interface FigObject
minDistance
in class FigBaseobject
public java.lang.String toString()
toString
in interface FigObject
toString
in class FigBaseobject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |