Package org.apache.pivot.wtk
Interface ConstrainedVisual
-
- All Superinterfaces:
Visual
- All Known Subinterfaces:
Button.DataRenderer
,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
,Expander
,ExpanderSkin
,FileBrowser
,FileBrowserSheet
,FileBrowserSkin
,FillPane
,FillPaneSkin
,FlowPane
,FlowPaneSkin
,Form
,Frame
,Gauge
,GridPane
,GridPane.Filler
,GridPaneFillerSkin
,GridPaneSkin
,HighLowChartView
,HistogramView
,HyperlinkButton
,ImageView
,ImageViewSkin
,Label
,LabelSkin
,LineChartView
,LinkButton
,LinkButtonDataRenderer
,LinkButtonSkin
,ListButton
,ListButtonColorItemRenderer
,ListButtonDataRenderer
,ListButtonSkin
,ListView
,ListViewColorItemRenderer
,ListViewItemEditor
,ListViewItemRenderer
,Menu
,Menu.Item
,MenuBar
,MenuBar.Item
,MenuBarItemDataRenderer
,MenuBarItemSkin
,MenuButton
,MenuButtonDataRenderer
,MenuButtonSkin
,MenuItemDataRenderer
,MenuItemSkin
,MenuPopup
,Meter
,MeterView
,MovieView
,MovieViewSkin
,NumberRuler
,NumberRulerSkin
,Palette
,Panel
,PanelSkin
,Panorama
,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.ShadeButton
,TerraExpanderSkin.ShadeButtonSkin
,TerraFileBrowserSheetSkin
,TerraFileBrowserSkin
,TerraFileBrowserSkin.DriveRenderer
,TerraFileBrowserSkin.FileRenderer
,TerraFileBrowserSkin.ListButtonDriveRenderer
,TerraFileBrowserSkin.ListButtonFileRenderer
,TerraFileBrowserSkin.ListViewDriveRenderer
,TerraFileBrowserSkin.ListViewFileRenderer
,TerraFileBrowserSkin.TableViewFileRenderer
,TerraFormSkin
,TerraFrameSkin
,TerraFrameSkin.FrameButton
,TerraFrameSkin.FrameButtonSkin
,TerraGaugeSkin
,TerraGridPaneSkin
,TerraLabelSkin
,TerraLinkButtonSkin
,TerraListButtonSkin
,TerraListViewSkin
,TerraMenuBarItemSkin
,TerraMenuBarSkin
,TerraMenuButtonSkin
,TerraMenuItemSkin
,TerraMenuPopupSkin
,TerraMenuSkin
,TerraMeterSkin
,TerraPaletteSkin
,TerraPanoramaSkin
,TerraPanoramaSkin.ScrollButton
,TerraPanoramaSkin.ScrollButtonSkin
,TerraPromptSkin
,TerraPushButtonSkin
,TerraRadioButtonSkin
,TerraRollupSkin
,TerraRollupSkin.RollupButton
,TerraRollupSkin.RollupButtonSkin
,TerraScrollBarSkin
,TerraScrollBarSkin.Handle
,TerraScrollBarSkin.HandleSkin
,TerraScrollBarSkin.ScrollButton
,TerraScrollBarSkin.ScrollButtonSkin
,TerraScrollPaneCornerSkin
,TerraScrollPaneSkin
,TerraSeparatorSkin
,TerraSheetSkin
,TerraSliderSkin
,TerraSliderSkin.Thumb
,TerraSliderSkin.ThumbSkin
,TerraSpinnerSkin
,TerraSpinnerSkin.SpinButton
,TerraSpinnerSkin.SpinButtonSkin
,TerraSpinnerSkin.SpinnerContent
,TerraSpinnerSkin.SpinnerContentSkin
,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 ConstrainedVisual extends Visual
Interface representing a visual that is used in layout.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description int
getBaseline(int width, int height)
Returns the baseline for a given width and height.int
getPreferredHeight(int width)
Returns the visual's preferred height given the provided width constraint.Dimensions
getPreferredSize()
Returns the visual's unconstrained preferred size.int
getPreferredWidth(int height)
Returns the visual's preferred width given the provided height constraint.void
setSize(int width, int height)
Sets the visual's render size.default void
setSize(Dimensions size)
Default method to set the visual size via aDimensions
value.
-
-
-
Method Detail
-
setSize
void setSize(int width, int height)
Sets the visual's render size.- Parameters:
width
- The visual's new width.height
- The visual's new height.
-
setSize
default void setSize(Dimensions size)
Default method to set the visual size via aDimensions
value.- Parameters:
size
- The complete size of this visual.
-
getPreferredWidth
int getPreferredWidth(int height)
Returns the visual's preferred width given the provided height constraint.- Parameters:
height
- The height by which to constrain the preferred width, or-1
for no constraint.- Returns:
- The preferred width given the height constraint.
-
getPreferredHeight
int getPreferredHeight(int width)
Returns the visual's preferred height given the provided width constraint.- Parameters:
width
- The width by which to constrain the preferred height, or-1
for no constraint.- Returns:
- The preferred height given the width constraint.
-
getPreferredSize
Dimensions getPreferredSize()
Returns the visual's unconstrained preferred size.- Returns:
- The unconstrained preferred size for this component.
-
getBaseline
int getBaseline(int width, int height)
Returns the baseline for a given width and height.- Parameters:
width
- Constrained width to compute the baseline for.height
- Constrained height to compute the baseline for.- Returns:
- The baseline relative to the origin of this visual, or
-1
if this visual does not have a baseline.
-
-