com.sas.visuals
Class BasicColorsCanvas
com.sas.visuals.BasicColorsCanvas
All Implemented Interfaces: com.sas.awt.print.PrintableInterface, VisualInterface , com.sas.beans.PropertyChangeSource, com.sas.beans.VetoableChangeSource, com.sas.ComponentInterface, com.sas.LinkPropertiesInterface, com.sas.ModelInterface, com.sas.ViewInterface, MultipleValueEventSourceInterface , java.awt.image.ImageObserver , java.awt.MenuContainer , java.beans.PropertyChangeListener , java.io.ObjectInputValidation , java.io.Serializable , java.util.EventListener , javax.accessibility.Accessible
public class BasicColorsCanvas
The BasicColorsPanel is a panel to be displayed in an instance of
ColorDialog or ColorCustomizer. It provides the interface which allows the user to create
a com.sas.awt.Color object.
See Also: Serialized Form
Methods inherited from class com.sas.awt.CanvasVisualComponent
addLink , addPropertyChangeListener , addVetoableChangeListener , anyPropertyChangeListeners , attachModel , attachView , clone , computePreferredSize , detachModel , detachView , dumpComponent , firePropertyChange , firePropertyChange , fireVetoableChange , getBackgroundColor , getBorder , getComponentDescription , getComponentSupportInfo , getEventMethod , getEventValues , getFont , getForegroundColor , getHeight , getHorizontalPosition , getLinkInfo , getModelInterface , getPageBounds , getPrePainter , getPrintOptionsPanel , getRequiredInterfaces , getVerticalPosition , getViewInterfaceSupportInfo , getVisualInterfaceSupportInfo , getWidth , initialize , initializeComponent , isDesignTime , isEnabled , isFocus , isLinked , isTransparent , isVisible , pageExists , print , printFinalize , printInitialize , propertyChange , queryLinks , queryLinks , refresh , removeAllLinks , removeInterfaceTraps , removeLink , removePropertyChangeListener , removeVetoableChangeListener , setBackgroundColor , setBorder , setBounds , setComponentDescription , setComponentSupportInfo , setDefaultValues , setEnabled , setFocus , setFont , setForegroundColor , setHeight , setHorizontalPosition , setLinkInfo , setModelInterface , setPreferredSize , setPrePainter , setRequiredInterfaces , setTransparent , setVerticalPosition , setViewInterfaceSupportInfo , setVisible , setVisualInterfaceSupportInfo , setWidth , superGetFont , superGetMinimumSize , superGetPreferredSize , superIsEnabled , superIsVisible , superPaint , superSetBounds , superSetEnabled , superSetFont , superSetVisible , superUpdate , supportsListenerInterface , supportsRequiredInterfaces , trapInterfaceEvents , update , validateObject
_Color
protected java.awt.Color _Color
_SystemColor
protected java.awt.Color _SystemColor
colorList
public com.sas.models.ColorList colorList
cnl
public com.sas.models.ColorNameList cnl
cnlNoSysCol
public com.sas.models.ColorNameList cnlNoSysCol
BASIC_COLORS
protected static final java.lang.String BASIC_COLORS
See Also: Constant Field Values
BOX_HEIGHT
protected static final int BOX_HEIGHT
See Also: Constant Field Values
BOX_WIDTH
protected static final int BOX_WIDTH
See Also: Constant Field Values
GAP
protected static final int GAP
See Also: Constant Field Values
NUM_COLUMNS
protected static final int NUM_COLUMNS
See Also: Constant Field Values
NUM_BASIC_ROWS
protected static final int NUM_BASIC_ROWS
See Also: Constant Field Values
NUM_CUSTOM_ROWS
protected static final int NUM_CUSTOM_ROWS
See Also: Constant Field Values
_selectedIdx
protected int _selectedIdx
_maxFilledIdx
protected static int _maxFilledIdx
_ColorPalette
protected Color [] _ColorPalette
BasicColorsCanvas
public BasicColorsCanvas ()
commonInit
public void commonInit ()
getPreferredSize
public java.awt.Dimension getPreferredSize ()
Specified by: getPreferredSize
in interface VisualInterface
Overrides: getPreferredSize
in class CanvasVisualComponent
See Also: VisualInterface.getPreferredSize()
getMinimumSize
public java.awt.Dimension getMinimumSize ()
Description copied from class: Canvas
Returns the minimum size of the component. This method is
overriden in order to return our own size of 5,5.
Specified by: getMinimumSize
in interface VisualInterface
Overrides: getMinimumSize
in class Canvas
Returns: minimum size See Also: VisualInterface.getMinimumSize()
paint
public void paint (java.awt.Graphics g)
Overrides: paint
in class CanvasVisualComponent
See Also: VisualInterfaceSupport.paint(com.sas.ComponentInterface, com.sas.awt.VisualInterface, java.awt.Component, java.awt.Graphics)
Palette2Coord
public java.awt.Point Palette2Coord (int pal)
Coord2BasicPalette
public int Coord2BasicPalette (java.awt.Point coordinate)
setCurrentColor
public void setCurrentColor (java.awt.Color c)
getCurrentColor
public java.awt.Color getCurrentColor ()
processMouseEvent
protected void processMouseEvent (java.awt.event.MouseEvent e)
Overrides: processMouseEvent
in class java.awt.Component
Copyright © 2009 SAS Institute Inc. All Rights Reserved.