Class svm_toy
- java.lang.Object
- 
- java.awt.Component
- 
- java.awt.Container
- 
- java.awt.Panel
- 
- java.applet.Applet
- 
- gov.nih.mipav.view.renderer.WildMagic.ProstateFramework.svm_toy
 
 
 
 
 
- 
- All Implemented Interfaces:
- java.awt.image.ImageObserver,- java.awt.MenuContainer,- java.io.Serializable,- javax.accessibility.Accessible
 
 public class svm_toy extends java.applet.AppletCopyright (c) 2000-2014 Chih-Chung Chang and Chih-Jen Lin All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither name of copyright holders nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.- See Also:
- Serialized Form
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description (package private) classsvm_toy.point- 
Nested classes/interfaces inherited from class java.applet.Appletjava.applet.Applet.AccessibleApplet
 
- 
 - 
Field SummaryFields Modifier and Type Field Description (package private) java.awt.Imagebuffer(package private) java.awt.Graphicsbuffer_gc(package private) static java.awt.Color[]colors(package private) bytecurrent_value(package private) static java.lang.StringDEFAULT_PARAM(package private) java.util.Vector<svm_toy.point>point_list(package private) intXLEN(package private) intYLEN
 - 
Constructor SummaryConstructors Constructor Description svm_toy()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static doubleatof(java.lang.String s)private static intatoi(java.lang.String s)(package private) voidbutton_change_clicked()(package private) voidbutton_clear_clicked()(package private) voidbutton_load_clicked()(package private) voidbutton_run_clicked(java.lang.String args)(package private) voidbutton_save_clicked(java.lang.String args)(package private) voidclear_all()(package private) voiddraw_all_points()(package private) voiddraw_point(svm_toy.point p)java.awt.DimensiongetPreferredSize()voidinit()static voidmain(java.lang.String[] argv)voidpaint(java.awt.Graphics g)protected voidprocessMouseEvent(java.awt.event.MouseEvent e)voidsetSize(int w, int h)voidsetSize(java.awt.Dimension d)- 
Methods inherited from class java.applet.Appletdestroy, getAccessibleContext, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, isValidateRoot, newAudioClip, play, play, resize, resize, setStub, showStatus, start, stop
 - 
Methods inherited from class java.awt.Containeradd, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusDownCycle, update, validate, validateTree
 - 
Methods inherited from class java.awt.Componentaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, requestFocusInWindow, reshape, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setMixingCutoutShape, setName, setPreferredSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
 
- 
 
- 
- 
- 
Field Detail- 
DEFAULT_PARAMstatic final java.lang.String DEFAULT_PARAM - See Also:
- Constant Field Values
 
 - 
XLENint XLEN 
 - 
YLENint YLEN 
 - 
bufferjava.awt.Image buffer 
 - 
buffer_gcjava.awt.Graphics buffer_gc 
 - 
colorsstatic final java.awt.Color[] colors 
 - 
point_listjava.util.Vector<svm_toy.point> point_list 
 - 
current_valuebyte current_value 
 
- 
 - 
Method Detail- 
initpublic void init() - Overrides:
- initin class- java.applet.Applet
 
 - 
draw_pointvoid draw_point(svm_toy.point p) 
 - 
clear_allvoid clear_all() 
 - 
draw_all_pointsvoid draw_all_points() 
 - 
button_change_clickedvoid button_change_clicked() 
 - 
atofprivate static double atof(java.lang.String s) 
 - 
atoiprivate static int atoi(java.lang.String s) 
 - 
button_run_clickedvoid button_run_clicked(java.lang.String args) 
 - 
button_clear_clickedvoid button_clear_clicked() 
 - 
button_save_clickedvoid button_save_clicked(java.lang.String args) 
 - 
button_load_clickedvoid button_load_clicked() 
 - 
processMouseEventprotected void processMouseEvent(java.awt.event.MouseEvent e) - Overrides:
- processMouseEventin class- java.awt.Component
 
 - 
paintpublic void paint(java.awt.Graphics g) - Overrides:
- paintin class- java.awt.Container
 
 - 
getPreferredSizepublic java.awt.Dimension getPreferredSize() - Overrides:
- getPreferredSizein class- java.awt.Container
 
 - 
setSizepublic void setSize(java.awt.Dimension d) - Overrides:
- setSizein class- java.awt.Component
 
 - 
setSizepublic void setSize(int w, int h)- Overrides:
- setSizein class- java.awt.Component
 
 - 
mainpublic static void main(java.lang.String[] argv) 
 
- 
 
-