/// <summary> /// Configures the specified component appropriate for the look and feel. /// </summary> public void installUI(JComponent @c) { }
/// <summary> /// Returns the specified component's minimum size appropriate for /// the look and feel. /// </summary> public Dimension getMinimumSize(JComponent @c) { return(default(Dimension)); }
/// <summary> /// Returns the specified component's preferred size appropriate for /// the look and feel. /// </summary> public Dimension getPreferredSize(JComponent @c) { return(default(Dimension)); }
/// <summary> /// Returns the <code>i</code>th <code>Accessible</code> child of the object. /// </summary> public Accessible getAccessibleChild(JComponent @c, int @i) { return(default(Accessible)); }
/// <summary> /// Returns the number of accessible children in the object. /// </summary> public int getAccessibleChildrenCount(JComponent @c) { return(default(int)); }
/// <summary> /// Returns <code>true</code> if the specified <i>x,y</i> location is /// contained within the look and feel's defined shape of the specified /// component. /// </summary> public bool contains(JComponent @c, int @x, int @y) { return(default(bool)); }
/// <summary> /// Returns an instance of the UI delegate for the specified component. /// </summary> public ComponentUI createUI(JComponent @c) { return(default(ComponentUI)); }
public static ComponentUI createUI(JComponent paramJComponent) { return(new CostOSCommandToggleButtonUI()); }
/// <summary> /// Notifies this UI delegate that it's time to paint the specified /// component. /// </summary> public void update(Graphics @g, JComponent @c) { }
public virtual void paint(Graphics paramGraphics, JComponent paramJComponent) { if (!(this.commandButton is CostOSRibbonApplicationMenuPopupPanel.JCommandAppMenuButton)) { base.paint(paramGraphics, paramJComponent); return; } int i = 16; paramGraphics.Font = FlamingoUtilities.getFont(this.commandButton, new string[] { "Ribbon.font", "Button.font", "Panel.font" }); this.layoutInfo = this.layoutManager.getLayoutInfo(this.commandButton, paramGraphics); this.commandButton.putClientProperty("icon.bounds", this.layoutInfo.iconRect); if (PaintingBackground) { paintButtonBackground(paramGraphics, new Rectangle(0, 0, this.commandButton.Width, this.commandButton.Height)); } if (this.layoutInfo.iconRect != null) { paintButtonIcon(paramGraphics, this.layoutInfo.iconRect); } if (this.layoutInfo.popupActionRect.Width > 0.0D) { paintPopupActionIcon(paramGraphics, this.layoutInfo.popupActionRect); } FontMetrics fontMetrics = paramGraphics.FontMetrics; bool @bool = this.commandButton.Enabled; if (this.commandButton is JCommandButton) { JCommandButton jCommandButton = (JCommandButton)this.commandButton; @bool = this.layoutInfo.isTextInActionArea ? jCommandButton.ActionModel.Enabled : jCommandButton.PopupModel.Enabled; } paramGraphics.Color = getForegroundColor(@bool); if (this.layoutInfo.textLayoutInfoList != null) { foreach (CommandButtonLayoutManager.TextLayoutInfo textLayoutInfo in this.layoutInfo.textLayoutInfoList) { if (textLayoutInfo.text != null) { BasicGraphicsUtils.drawString(paramGraphics, textLayoutInfo.text, -1, textLayoutInfo.textRect.x - i, textLayoutInfo.textRect.y + fontMetrics.Ascent); } } } if (@bool) { paramGraphics.Color = FlamingoUtilities.getColor(Color.gray, new string[] { "Label.disabledForeground" }); } else { paramGraphics.Color = FlamingoUtilities.getColor(Color.gray, new string[] { "Label.disabledForeground" }).brighter(); } if (this.layoutInfo.extraTextLayoutInfoList != null) { foreach (CommandButtonLayoutManager.TextLayoutInfo textLayoutInfo in this.layoutInfo.extraTextLayoutInfoList) { if (textLayoutInfo.text != null) { BasicGraphicsUtils.drawString(paramGraphics, textLayoutInfo.text, -1, textLayoutInfo.textRect.x, textLayoutInfo.textRect.y + fontMetrics.Ascent); } } } if (PaintingSeparators && this.layoutInfo.separatorArea != null) { if (this.layoutInfo.separatorOrientation == CommandButtonLayoutManager.CommandButtonSeparatorOrientation.HORIZONTAL) { paintButtonHorizontalSeparator(paramGraphics, this.layoutInfo.separatorArea); } else { paintButtonVerticalSeparator(paramGraphics, this.layoutInfo.separatorArea); } } }
public static ComponentUI createUI(JComponent paramJComponent) { return new CostOSRootPaneUI((JRootPane)paramJComponent); }
public static ComponentUI createUI(JComponent paramJComponent) { return(new CostOSRibbonBandUI()); }
public static ComponentUI createUI(JComponent paramJComponent) { return new BasicPopupPanelUI(); }
public static ComponentUI createUI(JComponent paramJComponent) { return(new CostOSApplicationMenuCommandButtonPanelUI()); }