|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
com.imagero.swing.shape.JShape
JShape. Non-rectangular JComponent.
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
protected ShapeUnit[] |
shapeUnits
|
| Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
JShape()
|
|
JShape(java.awt.Shape shape)
|
|
JShape(ShapeUnit shapeUnit)
|
|
JShape(ShapeUnit[] shapeUnits)
|
|
| Method Summary | |
void |
addMouseListener(java.awt.event.MouseListener l,
int index)
|
void |
addMouseMotionListener(java.awt.event.MouseMotionListener l,
int index)
|
void |
addShapeUnit(ShapeUnit shapeUnit)
|
protected void |
createClip()
create clip Shape for this component |
float |
getAlpha()
|
java.awt.Shape |
getClip()
get clip area for drawing this component |
ShapeUnit |
getDefaultShapeUnit()
|
protected com.imagero.swing.shape.JShape.Dispatcher |
getDispatcher()
|
java.awt.Dimension |
getPreferredSize()
|
double |
getScaleX()
|
double |
getScaleY()
|
ShapeUnit |
getShapeUnit(int index)
|
protected ShapeUnit |
getShapeUnitAt(int x,
int y)
|
int |
getShapeUnitCount()
|
double |
getShearX()
|
double |
getShearY()
|
javax.swing.plaf.ComponentUI |
getUI()
|
java.lang.String |
getUIClassID()
|
boolean |
isOpaque()
|
static void |
main(java.lang.String[] args)
|
void |
normalize()
|
protected void |
paintChildren(java.awt.Graphics g)
|
void |
removeMouseListener(java.awt.event.MouseListener l,
int index)
|
void |
removeMouseMotionListener(java.awt.event.MouseMotionListener l,
int index)
|
ShapeUnit |
removeShapeUnit(int index)
|
ShapeUnit |
removeShapeUnit(ShapeUnit shapeUnit)
|
void |
resetTransform()
|
void |
rotate(double angle)
|
void |
scale(double scaleX,
double scaleY)
|
void |
setAlpha(float alpha)
|
void |
setRotate(double angle)
|
void |
setScale(double scaleX,
double scaleY)
|
protected void |
setShapeUnit(ShapeUnit shapeUnit,
int index)
|
protected void |
setShapeUnits(ShapeUnit[] shapeUnits)
|
void |
setShear(double shearX,
double shearY)
|
void |
setUI(ShapeUI ui)
|
void |
shear(double shearX,
double shearY)
|
void |
updateUI()
|
| Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected ShapeUnit[] shapeUnits
| Constructor Detail |
public JShape()
public JShape(java.awt.Shape shape)
public JShape(ShapeUnit shapeUnit)
public JShape(ShapeUnit[] shapeUnits)
| Method Detail |
public double getShearX()
public double getShearY()
public double getScaleX()
public double getScaleY()
protected void setShapeUnits(ShapeUnit[] shapeUnits)
public void addShapeUnit(ShapeUnit shapeUnit)
public ShapeUnit removeShapeUnit(ShapeUnit shapeUnit)
public ShapeUnit removeShapeUnit(int index)
protected void setShapeUnit(ShapeUnit shapeUnit,
int index)
public void normalize()
protected void createClip()
public java.awt.Shape getClip()
protected void paintChildren(java.awt.Graphics g)
public java.lang.String getUIClassID()
public void setUI(ShapeUI ui)
public javax.swing.plaf.ComponentUI getUI()
public ShapeUnit getDefaultShapeUnit()
public int getShapeUnitCount()
public ShapeUnit getShapeUnit(int index)
public void updateUI()
public float getAlpha()
public void setAlpha(float alpha)
public boolean isOpaque()
public void resetTransform()
public void setRotate(double angle)
public void rotate(double angle)
public void setShear(double shearX,
double shearY)
public void shear(double shearX,
double shearY)
public void setScale(double scaleX,
double scaleY)
public void scale(double scaleX,
double scaleY)
public java.awt.Dimension getPreferredSize()
protected com.imagero.swing.shape.JShape.Dispatcher getDispatcher()
public void addMouseListener(java.awt.event.MouseListener l,
int index)
public void removeMouseListener(java.awt.event.MouseListener l,
int index)
public void addMouseMotionListener(java.awt.event.MouseMotionListener l,
int index)
public void removeMouseMotionListener(java.awt.event.MouseMotionListener l,
int index)
protected ShapeUnit getShapeUnitAt(int x,
int y)
public static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||