geofasc.swing
public class Ellipse extends AbstractFigure
Ellipse is the component used for visualizing an ellipse figure.
See EllipseModel for more information on how an ellipse figure is
represented. This class is inherited from AbstractFigure.DefaultEllipseModel,
EllipseUI,
BasicEllipseUI,
Serialized FormJComponent.AccessibleJComponentComponent.BaselineResizeBehaviorTOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
Ellipse()
Constructs a new empty
Ellipse with width and height equal
to 0. |
Ellipse(int width,
int height)
Constructs a new
Ellipse with the given size. |
Ellipse(int x,
int y,
int width,
int height)
Constructs a new
Ellipse with the given bounds (size and
location). |
| Modifier and Type | Method and Description |
|---|---|
EllipseModel |
getModel()
Returns the data model of this figure.
|
EllipseUI |
getUI() |
String |
getUIClassID() |
void |
moveFigureHeightBy(int dHeight)
|
void |
moveFigureSizeBy(Dimension dSize)
|
void |
moveFigureSizeBy(int dWidth,
int dHeight)
|
void |
moveFigureWidthBy(int dWidth)
|
void |
setFigureBounds(int x,
int y,
int width,
int height)
|
void |
setFigureBounds(Rectangle bounds)
|
void |
setFigureHeight(int height)
|
void |
setFigureSize(Dimension size)
|
void |
setFigureSize(int width,
int height)
|
void |
setFigureWidth(int width)
|
void |
setModel(EllipseModel model)
Sets the model of this ellipse.
|
void |
setUI(RectangleUI ui)
Sets the look and feel (L&F) object that renders this component.
|
void |
updateUI() |
componentAdded, componentRemoved, getFigureBounds, getFigureBounds, getFigureDirection, getFigureFillColor, getFigureHeight, getFigureLineColor, getFigureLocation, getFigureLocationX, getFigureLocationY, getFigureSize, getFigureWidth, getMinimumSize, getPreferredSize, isFigureFilled, isSelfContainerListener, moveFigureLocationBy, moveFigureLocationBy, moveFigureLocationBy, moveFigureLocationXBy, moveFigureLocationYBy, setFigureDirection, setFigureFillColor, setFigureFilled, setFigureLineColor, setFigureLocation, setFigureLocation, setFigureLocationX, setFigureLocationY, setMaximumSize, setModel, setSelfContainerListener, setUI, stateChanged, turnFigureDirectionBy, turnFigureDirectionTogetAccessibleContext, setUIaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateadd, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validateaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCyclepublic Ellipse()
Ellipse with width and height equal
to 0.public Ellipse(int width,
int height)
Ellipse with the given size.width - the initial width of this ellipseheight - the initial height of this ellipsepublic Ellipse(int x,
int y,
int width,
int height)
Ellipse with the given bounds (size and
location).x - the initial x-location of this ellipsey - the initial y-location of this ellipsewidth - the initial width of this ellipseheight - the initial height of this ellipsepublic EllipseModel getModel()
getModel in class AbstractFigureFigureModelpublic EllipseUI getUI()
getUI in class AbstractFigurepublic String getUIClassID()
getUIClassID in class AbstractFigurepublic void setModel(EllipseModel model)
model - the new modelpublic void setUI(RectangleUI ui)
ui - the new L&F objectpublic void updateUI()
updateUI in class AbstractFigurepublic void moveFigureHeightBy(int dHeight)
public void moveFigureSizeBy(Dimension dSize)
public void moveFigureSizeBy(int dWidth,
int dHeight)
public void moveFigureWidthBy(int dWidth)
public void setFigureBounds(int x,
int y,
int width,
int height)
public void setFigureBounds(Rectangle bounds)
public void setFigureHeight(int height)
public void setFigureSize(Dimension size)
public void setFigureSize(int width,
int height)
public void setFigureWidth(int width)