Package org.apache.pivot.wtk
Interface Visual
-
- All Known Subinterfaces:
Button.DataRenderer
,ConstrainedVisual
,FileBrowser.Skin
,ListView.ItemRenderer
,Renderer
,Skin
,Spinner.ItemRenderer
,TableView.CellRenderer
,TableView.HeaderDataRenderer
,TreeView.NodeRenderer
,VFSBrowser.Skin
,Window.Skin
- All Known Implementing Classes:
Accordion
,AccordionHeaderDataRenderer
,ActivityIndicator
,ActivityIndicatorSkin
,Alert
,AreaChartView
,BarChartView
,Border
,BorderSkin
,BoxPane
,BoxPaneSkin
,Button
,ButtonDataRenderer
,ButtonSkin
,Calendar
,CalendarButton
,CalendarButtonDataRenderer
,CalendarButtonSkin
,CalendarSkin
,CardPane
,CardPaneSkin
,ChartView
,ChartViewSkin
,Checkbox
,CheckboxSkin
,ColorChooser
,ColorChooserButton
,ColorChooserButtonSkin
,ColorChooserButtonSkin.ColorChooserPopup
,ColorChooserButtonSkin.ColorChooserPopupSkin
,ColorChooserSkin
,Component
,ComponentSkin
,Container
,ContainerSkin
,Dialog
,DialView
,Display
,DisplaySkin
,Drawing
,Expander
,ExpanderSkin
,FileBrowser
,FileBrowserSheet
,FileBrowserSkin
,FillPane
,FillPaneSkin
,FlowPane
,FlowPaneSkin
,Form
,Frame
,Gauge
,GridPane
,GridPane.Filler
,GridPaneFillerSkin
,GridPaneSkin
,HighLowChartView
,HistogramView
,HyperlinkButton
,Image
,ImageView
,ImageViewSkin
,Label
,LabelSkin
,LineChartView
,LinkButton
,LinkButtonDataRenderer
,LinkButtonSkin
,ListButton
,ListButtonColorItemRenderer
,ListButtonDataRenderer
,ListButtonSkin
,ListView
,ListViewColorItemRenderer
,ListViewColorItemRenderer.ColorBadge
,ListViewItemEditor
,ListViewItemRenderer
,Menu
,Menu.Item
,MenuBar
,MenuBar.Item
,MenuBarItemDataRenderer
,MenuBarItemSkin
,MenuButton
,MenuButtonDataRenderer
,MenuButtonSkin
,MenuItemDataRenderer
,MenuItemSkin
,MenuPopup
,Meter
,MeterView
,Movie
,MovieView
,MovieViewSkin
,NumberRuler
,NumberRulerSkin
,Palette
,Panel
,PanelSkin
,Panorama
,Picture
,PieChartView
,PolarChartView
,Prompt
,PushButton
,PushButtonSkin
,RadioButton
,RadioButtonSkin
,Rollup
,RollupSkin
,Ruler
,RulerSkin
,ScrollBar
,ScrollPane
,ScrollPane.Corner
,ScrollPaneSkin
,Separator
,SeparatorSkin
,Sheet
,SingleValueChartView
,Slider
,SliderSkin
,SpiderWebView
,Spinner
,SpinnerItemRenderer
,SplitPane
,StackPane
,StackPaneSkin
,SuggestionPopup
,TablePane
,TablePane.Filler
,TablePaneFillerSkin
,TablePaneSkin
,TableView
,TableViewBooleanCellRenderer
,TableViewCellRenderer
,TableViewCheckboxCellRenderer
,TableViewDateCellRenderer
,TableViewFileSizeCellRenderer
,TableViewHeader
,TableViewHeaderDataRenderer
,TableViewImageCellRenderer
,TableViewMultiCellRenderer
,TableViewNumberCellRenderer
,TableViewRowEditor
,TableViewTextAreaCellRenderer
,TableViewTriStateCellRenderer
,TabPane
,TabPaneSkin
,TerraAccordionSkin
,TerraAccordionSkin.PanelHeader
,TerraAccordionSkin.PanelHeaderSkin
,TerraActivityIndicatorSkin
,TerraAlertSkin
,TerraBorderSkin
,TerraCalendarButtonSkin
,TerraCalendarSkin
,TerraCalendarSkin.DateButton
,TerraCalendarSkin.DateButtonSkin
,TerraCalendarSkin.MonthSpinnerItemRenderer
,TerraCheckboxSkin
,TerraColorChooserButtonSkin
,TerraColorChooserSkin
,TerraDialogSkin
,TerraExpanderSkin
,TerraExpanderSkin.ButtonImage
,TerraExpanderSkin.CollapseImage
,TerraExpanderSkin.ExpandImage
,TerraExpanderSkin.ShadeButton
,TerraExpanderSkin.ShadeButtonSkin
,TerraFileBrowserSheetSkin
,TerraFileBrowserSkin
,TerraFileBrowserSkin.DriveRenderer
,TerraFileBrowserSkin.FileRenderer
,TerraFileBrowserSkin.ListButtonDriveRenderer
,TerraFileBrowserSkin.ListButtonFileRenderer
,TerraFileBrowserSkin.ListViewDriveRenderer
,TerraFileBrowserSkin.ListViewFileRenderer
,TerraFileBrowserSkin.TableViewFileRenderer
,TerraFormSkin
,TerraFrameSkin
,TerraFrameSkin.ButtonImage
,TerraFrameSkin.CloseImage
,TerraFrameSkin.FrameButton
,TerraFrameSkin.FrameButtonSkin
,TerraFrameSkin.MaximizeImage
,TerraFrameSkin.MinimizeImage
,TerraFrameSkin.ResizeImage
,TerraFrameSkin.RestoreImage
,TerraGaugeSkin
,TerraGridPaneSkin
,TerraLabelSkin
,TerraLinkButtonSkin
,TerraListButtonSkin
,TerraListViewSkin
,TerraMenuBarItemSkin
,TerraMenuBarSkin
,TerraMenuButtonSkin
,TerraMenuItemSkin
,TerraMenuItemSkin.CheckmarkImage
,TerraMenuPopupSkin
,TerraMenuSkin
,TerraMeterSkin
,TerraPaletteSkin
,TerraPaletteSkin.CloseImage
,TerraPaletteSkin.ResizeImage
,TerraPanoramaSkin
,TerraPanoramaSkin.EastButtonImage
,TerraPanoramaSkin.NorthButtonImage
,TerraPanoramaSkin.ScrollButton
,TerraPanoramaSkin.ScrollButtonImage
,TerraPanoramaSkin.ScrollButtonSkin
,TerraPanoramaSkin.SouthButtonImage
,TerraPanoramaSkin.WestButtonImage
,TerraPromptSkin
,TerraPushButtonSkin
,TerraRadioButtonSkin
,TerraRollupSkin
,TerraRollupSkin.RollupButton
,TerraRollupSkin.RollupButtonSkin
,TerraScrollBarSkin
,TerraScrollBarSkin.Handle
,TerraScrollBarSkin.HandleSkin
,TerraScrollBarSkin.ScrollButton
,TerraScrollBarSkin.ScrollButtonImage
,TerraScrollBarSkin.ScrollButtonSkin
,TerraScrollBarSkin.ScrollDownImage
,TerraScrollBarSkin.ScrollUpImage
,TerraScrollPaneCornerSkin
,TerraScrollPaneSkin
,TerraSeparatorSkin
,TerraSheetSkin
,TerraSheetSkin.ResizeImage
,TerraSliderSkin
,TerraSliderSkin.Thumb
,TerraSliderSkin.ThumbSkin
,TerraSpinnerSkin
,TerraSpinnerSkin.SpinButton
,TerraSpinnerSkin.SpinButtonImage
,TerraSpinnerSkin.SpinButtonSkin
,TerraSpinnerSkin.SpinDownImage
,TerraSpinnerSkin.SpinnerContent
,TerraSpinnerSkin.SpinnerContentSkin
,TerraSpinnerSkin.SpinUpImage
,TerraSplitPaneSkin
,TerraSplitPaneSkin.Splitter
,TerraSplitPaneSkin.SplitterShadow
,TerraSplitPaneSkin.SplitterShadowSkin
,TerraSplitPaneSkin.SplitterSkin
,TerraSuggestionPopupSkin
,TerraTablePaneSkin
,TerraTableViewHeaderSkin
,TerraTableViewSkin
,TerraTabPaneSkin
,TerraTabPaneSkin.TabButton
,TerraTabPaneSkin.TabButtonSkin
,TerraTextAreaSkin
,TerraTextInputSkin
,TerraTextPaneSkin
,TerraTooltipSkin
,TerraTreeViewSkin
,TerraVFSBrowserSheetSkin
,TerraVFSBrowserSkin
,TerraVFSBrowserSkin.DriveRenderer
,TerraVFSBrowserSkin.FileRenderer
,TerraVFSBrowserSkin.ListButtonDriveRenderer
,TerraVFSBrowserSkin.ListButtonFileRenderer
,TerraVFSBrowserSkin.ListViewDriveRenderer
,TerraVFSBrowserSkin.ListViewFileRenderer
,TerraVFSBrowserSkin.TableViewFileRenderer
,TextArea
,TextAreaSkin
,TextInput
,TextPane
,TextPaneSkin
,ThermometerView
,Tooltip
,TreeView
,TreeViewNodeEditor
,TreeViewNodeRenderer
,VerticalButtonDataRenderer
,VFSBrowser
,VFSBrowserSheet
,VFSBrowserSkin
,Viewport
,Window
,WindowSkin
public interface Visual
Interface representing a "visual". A visual is an object that can be drawn to the screen or other output device.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description int
getBaseline()
Returns the visual's baseline.int
getHeight()
Returns the visual's height.default Dimensions
getSize()
Default method to return the visual's complete size via aDimensions
object.int
getWidth()
Returns the visual's width.void
paint(java.awt.Graphics2D graphics)
Paints the visual.
-
-
-
Method Detail
-
getWidth
int getWidth()
Returns the visual's width.- Returns:
- Current width of this visual.
-
getHeight
int getHeight()
Returns the visual's height.- Returns:
- Current height of this visual.
-
getSize
default Dimensions getSize()
Default method to return the visual's complete size via aDimensions
object. Note that if the width and height calculations for a particular object are lengthy and could be better done together rather than separately, that component should be free to override this default implementation.- Returns:
- The visual's complete size.
-
getBaseline
int getBaseline()
Returns the visual's baseline.- Returns:
- The baseline relative to the origin of the visual, or
-1
if this visual does not have a baseline.
-
paint
void paint(java.awt.Graphics2D graphics)
Paints the visual.- Parameters:
graphics
- The graphics context in which to paint the visual.
-
-