public class JJComponent
extends javax.swing.JComponent
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
JJComponent(JJPanel parent,
double xx,
double yy,
double w,
double h)
Instantiates a new JJ component.
|
Modifier and Type | Method and Description |
---|---|
void |
addAnimation(JJAnimation anim)
Adds the animation.
|
boolean |
animate()
Animate.
|
double |
getCentreX()
Gets the centre X.
|
double |
getCentreY()
Gets the centre Y.
|
double |
getH()
Gets the h.
|
int |
getHeight() |
double |
getOpacite()
Gets the opacite.
|
double |
getTheta()
Gets the theta.
|
double |
getW()
Gets the w.
|
int |
getWidth() |
int |
getX() |
double |
getXx()
Gets the xx.
|
int |
getY() |
double |
getYy()
Gets the yy.
|
boolean |
isDragable()
Checks if is dragable.
|
boolean |
isSuppressionProgrammee()
Checks if is suppression programmee.
|
void |
setDragable(boolean dragable)
Sets the dragable.
|
void |
setH(double h)
Sets the h.
|
void |
setOpacite(double d)
Sets the opacite.
|
void |
setSuppressionProgrammee(boolean suppressionProgrammee)
Sets the suppression programmee.
|
void |
setTheta(double theta)
Sets the theta.
|
void |
setW(double w)
Sets the w.
|
void |
setXx(double xx)
Sets the xx.
|
void |
setYy(double yy)
Sets the yy.
|
addAncestorListener, 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, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, grabFocus, hide, 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, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
add, 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, validate
action, 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, getAccessibleContext, 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, 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, transferFocusUpCycle
public JJComponent(JJPanel parent, double xx, double yy, double w, double h)
parent
- the parentxx
- the xxyy
- the yyw
- the wh
- the hpublic void addAnimation(JJAnimation anim)
anim
- the animpublic boolean animate()
public double getXx()
public void setXx(double xx)
xx
- the new xxpublic double getYy()
public void setYy(double yy)
yy
- the new yypublic double getW()
public int getHeight()
getHeight
in class javax.swing.JComponent
public int getWidth()
getWidth
in class javax.swing.JComponent
public int getX()
getX
in class javax.swing.JComponent
public int getY()
getY
in class javax.swing.JComponent
public void setW(double w)
w
- the new wpublic double getH()
public void setH(double h)
h
- the new hpublic double getTheta()
public void setTheta(double theta)
theta
- the new thetapublic double getOpacite()
public void setOpacite(double d)
d
- the new opacitepublic boolean isSuppressionProgrammee()
public void setSuppressionProgrammee(boolean suppressionProgrammee)
suppressionProgrammee
- the new suppression programmeepublic boolean isDragable()
public void setDragable(boolean dragable)
dragable
- the new dragablepublic double getCentreX()
public double getCentreY()